-
Notifications
You must be signed in to change notification settings - Fork 93
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
feat: allow migrate from HelmChart v1beta1 to v1beta2 if Helm --take-ownership is set #5046
Open
nvanthao
wants to merge
9
commits into
main
Choose a base branch
from
gerard/f-helm-migrate
base: main
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.
+31
−16
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ff10091
allow migrate to v1beta2 if Helm --take-ownership is set
nvanthao 6d08383
use Helm from PR with --take-ownership flag
nvanthao 00d0c62
update apko and melange config
nvanthao 3865ebe
revert melange config
nvanthao 5b3adee
revert apko config
nvanthao 2ebd087
Revert "revert melange config"
nvanthao 9abd94a
update from code review
nvanthao 00baba0
update melange config for Helm
nvanthao 31f12b9
update melange config for Helm
nvanthao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -13,7 +13,6 @@ contents: | |
- busybox | ||
- curl | ||
- git | ||
- helm | ||
- kustomize | ||
- py3-dateutil | ||
- py3-magic | ||
|
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -2,6 +2,16 @@ FROM golang:1.23-alpine AS dlv-builder | |
|
||
RUN go install github.com/go-delve/delve/cmd/[email protected] | ||
|
||
# Install helm from PR 13439 that will support --take-ownership flag | ||
# Revert this to the latest helm release when that PR is merged | ||
FROM golang:1.23-alpine AS helm-builder | ||
|
||
RUN apk add --no-cache git make bash | ||
RUN git clone --depth 1 -b dev-v3 https://github.com/helm/helm.git && \ | ||
cd helm && \ | ||
GOARCH=arm64 make && \ | ||
chmod a+x bin/helm | ||
|
||
FROM golang:1.23-alpine | ||
|
||
RUN apk add --no-cache ca-certificates s3cmd curl git make bash | ||
|
@@ -26,20 +36,10 @@ RUN curl -fsSL -o kustomize.tar.gz "${KUSTOMIZE5_URL}" \ | |
&& chmod a+x kustomize \ | ||
&& mv kustomize /usr/local/bin/kustomize | ||
|
||
# Install helm v3 | ||
ENV HELM3_VERSION=3.16.2 | ||
ENV HELM3_URL=https://get.helm.sh/helm-v${HELM3_VERSION}-linux-arm64.tar.gz | ||
ENV HELM3_SHA256SUM=1888301aeb7d08a03b6d9f4d2b73dcd09b89c41577e80e3455c113629fc657a4 | ||
RUN cd /tmp && curl -fsSL -o helm.tar.gz "${HELM3_URL}" \ | ||
&& echo "${HELM3_SHA256SUM} helm.tar.gz" | sha256sum -c - \ | ||
&& tar -xzvf helm.tar.gz \ | ||
&& chmod a+x linux-arm64/helm \ | ||
&& mv linux-arm64/helm /usr/local/bin/helm \ | ||
&& rm -rf helm.tar.gz linux-arm64 | ||
|
||
WORKDIR /replicatedhq/kots | ||
|
||
COPY --from=dlv-builder /go/bin/dlv /dlv | ||
COPY --from=helm-builder /go/helm/bin/helm /usr/local/bin/helm | ||
COPY ./bin/kotsadm /kotsadm | ||
COPY ./bin/kots /kots | ||
|
||
|
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you'll also need to remove the helm binary from the apko file: https://github.com/replicatedhq/kots/blob/main/deploy/apko.yaml.tmpl#L16