- Notifications
You must be signed in to change notification settings - Fork18
build: upgrade kubectl#82
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
masontikhonov wants to merge6 commits intomasterChoose a base branch fromCR-30789-security-cf-deploy-kubernetes-patch-secure-vers
base:master
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
+18 −75
Open
Changes fromall commits
Commits
Show all changes
6 commits Select commitHold shift + click to select a range
5fec814 build: upgrade kubectl
masontikhonov10ac438 build: keep 2 latest kubectl
masontikhonovc956559 build: optimize Dockerfile
masontikhonov4a9121e docs: add comments to Dockerfile
masontikhonov2e0db18 refactor: optimize Dockerfile
masontikhonov960c5a2 build: upgrade Debian
masontikhonovFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
63 changes: 14 additions & 49 deletionsDockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,53 +1,18 @@ | ||
| FROM debian:trixie-20251103-slim AS prod | ||
| ARG TARGETPLATFORM | ||
| RUN /sbin/useradd --home /home/cfu --shell /bin/bash cfu | ||
| COPY --chown=cfu --chmod=775 cf-deploy-kubernetes.sh /cf-deploy-kubernetes | ||
| COPY --chown=cfu --chmod=775 template.sh /template.sh | ||
| COPY --from=busybox:1.37.0-glibc /bin/busybox /usr/bin/busybox | ||
| RUN busybox --install | ||
| # ⚠️ We support 3 most recent minor versions: https://kubernetes.io/releases/ | ||
| # Please update `./cf-deploy-kubernetes.sh` accordingly. | ||
| ADD --chown=cfu --chmod=775 https://dl.k8s.io/release/v1.34.1/bin/${TARGETPLATFORM}/kubectl /usr/local/bin/kubectl1.34 | ||
| ADD --chown=cfu --chmod=775 https://dl.k8s.io/release/v1.33.5/bin/${TARGETPLATFORM}/kubectl /usr/local/bin/kubectl1.33 | ||
| ADD --chown=cfu --chmod=775 https://dl.k8s.io/release/v1.32.9/bin/${TARGETPLATFORM}/kubectl /usr/local/bin/kubectl1.32 | ||
| # ⚠️ Defaults to the latest version. Please update with new versions as needed. | ||
| RUN ln -s /usr/local/bin/kubectl1.34 /usr/local/bin/kubectl | ||
| WORKDIR / | ||
| USER cfu | ||
| CMD ["bash"] |
28 changes: 3 additions & 25 deletionscf-deploy-kubernetes.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionservice.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| version:17.0.0 |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.