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

Make ChartMuseum CI version configurable #5119

Merged
merged 4 commits into from
Jul 26, 2022

Conversation

antgamdia
Copy link
Contributor

Description of the change

While working on the e2e tests I noticed we had a hardcoded CharMuseum version, this PR is extracting the version into a separate variable so that we can properly update it.

Benefits

CM cersion management will be aligned with the rest of the CI component's

Possible drawbacks

N/A

Applicable issues

Additional information

N/A

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
@netlify
Copy link

netlify bot commented Jul 25, 2022

Deploy Preview for kubeapps-dev canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 9cb2f4c
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/62dfbdd6f80bc7000824936b

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
@@ -27,6 +27,9 @@ parameters:
OLM_VERSION:
type: "string"
default: "v0.21.2"
CHARTMUSEUM_VERSION:
type: "string"
default: "3.9.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm also updating from 2.14.2 to 3.9.0 here, but I'll roll the changes back if the PR fails.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems that it worked 😄

@@ -17,6 +17,7 @@ TEST_TIMEOUT_MINUTES=${5:-"4"}
DEX_IP=${6:-"172.18.0.2"}
ADDITIONAL_CLUSTER_IP=${7:-"172.18.0.3"}
KAPP_CONTROLLER_VERSION=${8:-"v0.32.0"}
CM_VERSION=${9:-"2.14.2"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
CM_VERSION=${9:-"2.14.2"}
CHARTMUSEUM_VERSION=${9:-"3.9.0"}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggesting to change the variable name just for future readability.

@@ -38,6 +39,7 @@ fi
info "Root dir: ${ROOT_DIR}"
info "Use multicluster+OIDC: ${USE_MULTICLUSTER_OIDC_ENV}"
info "OLM version: ${OLM_VERSION}"
info "ChartMuseum version: ${CM_VERSION}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
info "ChartMuseum version: ${CM_VERSION}"
info "ChartMuseum version: ${CHARTMUSEUM_VERSION}"

@@ -324,7 +328,7 @@ fi
installOrUpgradeKubeapps "${ROOT_DIR}/chart/kubeapps"
info "Waiting for Kubeapps components to be ready (local chart)..."
k8s_wait_for_deployment kubeapps kubeapps-ci
installChartmuseum admin password
installChartmuseum admin password "${CM_VERSION}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
installChartmuseum admin password "${CM_VERSION}"
installChartmuseum admin password "${CHARTMUSEUM_VERSION}"

Copy link
Collaborator

@ppbaena ppbaena left a comment

Choose a reason for hiding this comment

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

LGTM. Nice to add flexibility to select the version.

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
@antgamdia antgamdia merged commit b6ce88b into vmware-tanzu:main Jul 26, 2022
@antgamdia antgamdia deleted the configurable-cm-version branch July 26, 2022 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make ChartMuseum CI version configurable
4 participants