-
Notifications
You must be signed in to change notification settings - Fork 71
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
fix: allow version pass to avoid latest install always #8517
Conversation
Signed-off-by: Amro Misbah <amromisba7@gmail.com>
@@ -2,10 +2,10 @@ | |||
set -eo pipefail | |||
JANS_FQDN=$1 | |||
JANS_PERSISTENCE=$2 | |||
JANS_CI_CD_RUN=$3 | |||
JANS_VERSION=$3 |
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.
@misba7 What's the default JANS_VERSION
?
@@ -242,7 +239,7 @@ auth-server: | |||
EOF | |||
sudo helm repo add janssen https://docs.jans.io/charts | |||
sudo helm repo update | |||
sudo helm install janssen janssen/janssen -n jans -f override.yaml --kubeconfig="$KUBECONFIG" "$HELM_DEVELOPMENT_REPO" | |||
sudo helm install janssen janssen/janssen -n jans -f override.yaml --kubeconfig="$KUBECONFIG" --version="$JANS_VERSION" |
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.
@misba7 have we handle empty $JANS_VERSION
?
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.
empty JANS_VERSION installs latest, which was the default behavior.
I added the variable to be able to override it as needed.
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.
did you mean command like helm install --version=
(empty JANS_VERSION) also work?
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.
ignore my last comment, i have tested it. The --version= <other-ops>
is working while --version <other-ops>
is not.
DryRun Security SummaryThe changes in the Expand for full summarySummary: The code changes in the From an application security perspective, these changes are generally positive, as they provide more Files Changed:
Code AnalysisWe ran Riskiness🟢 Risk threshold not exceeded. |
closes #8513