Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ update to pkgs.k8s.io #1015

Closed
wants to merge 4 commits into from
Closed

✨ update to pkgs.k8s.io #1015

wants to merge 4 commits into from

Conversation

kranurag7
Copy link
Contributor

@kranurag7 kranurag7 commented Oct 20, 2023

this commit updates deps from apt.kuberentes.io to pkgs.k8s.io

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1013

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squash commits
  • include documentation
  • add unit tests

@kranurag7 kranurag7 requested a review from batistein October 20, 2023 13:18
- curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
- echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
- curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.27/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
- echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.27/deb/ /" | sudo tee /etc/apt/sources.list.d/kubernetes.list
- apt-get update
- apt-get install -y kubelet=$KUBERNETES_VERSION-00 kubeadm=$KUBERNETES_VERSION-00 kubectl=$KUBERNETES_VERSION-00 bash-completion && apt-mark hold kubelet kubectl kubeadm && systemctl enable kubelet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be changed to -1.1 in all files

@janiskemper janiskemper requested a review from batistein October 23, 2023 06:44
- curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
- echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
- curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.27/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
- echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.27/deb/ /" | sudo tee /etc/apt/sources.list.d/kubernetes.list
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we need to add a dynamic way to set the kubernetes version.
Please use the following approach: export KUBERNETES_TRIMMED=$(echo ${KUBERNETES_VERSION} | sed 's/......//') the sed command needs to be changed so that it trim the kubernetes version from v1.27.3->v1.27`

this commit updates deps from apt.kuberentes.io to pkgs.k8s.io

Signed-off-by: Anurag <81210977+kranurag7@users.noreply.github.com>
In the last commit I forgot to update the new versioning format and
this commit fixes that.

Signed-off-by: Anurag <81210977+kranurag7@users.noreply.github.com>
Signed-off-by: Anurag <81210977+kranurag7@users.noreply.github.com>
This commit used TRIMMED_KUBERNETES_VERSION as an env variable to
download packages. This way we can update with ease.

Signed-off-by: Anurag <81210977+kranurag7@users.noreply.github.com>
@guettli
Copy link
Collaborator

guettli commented Dec 6, 2023

Thank you Anurag for this PR.

We will upgrade to 1.28

New PR: #1073

@guettli guettli closed this Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use of new package repositories
3 participants