-
Notifications
You must be signed in to change notification settings - Fork 67
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
install istio with helm #18
base: master
Are you sure you want to change the base?
Conversation
memory: 128Mi | ||
env: | ||
- name: WATCH_NAMESPACE | ||
value: "hango-system" |
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.
变量可以提取到values中
serviceAccountName: istio-operator | ||
containers: | ||
- name: istio-operator | ||
image: docker.io/istio/operator:1.10.2 |
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.
image 可以提取到values中
stages: | ||
- package | ||
|
||
before_script: | ||
- CHART_VERSION="${CI_COMMIT_TAG:-v0.0.0-r$CI_PIPELINE_ID}" | ||
|
||
variables: | ||
NAMESPACE: istio | ||
RELEASE_NAME: istio | ||
|
||
helm_package: | ||
stage: package | ||
variables: | ||
REPO_NAME: cloudnative | ||
KUBECONFIG_YAML: $KUBECONFIG_DEV | ||
script: | ||
- mkdir -p target | ||
- helm package --version="$CHART_VERSION" -d target . || exit 1 | ||
- echo "$CHART_VERSION" | ||
- | | ||
# helm upgrade -n $NAMESPACE $RELEASE_NAME . --install --create-namespace --dry-run | ||
|
||
REPO_ADDR="$(jq -r '.repo//empty'<<<"$ONLINE_CHART_REPO")" | ||
USERNAME="$(jq -r '.username//empty'<<<"$ONLINE_CHART_REPO")" | ||
PASSWORD="$(jq -r '.password//empty'<<<"$ONLINE_CHART_REPO")" | ||
|
||
helm repo add --insecure-skip-tls-verify --username="$USERNAME" \ | ||
--password="$PASSWORD" "$REPO_NAME" "$REPO_ADDR/chartrepo/$REPO_NAME" --force-update | ||
helm push --insecure target/$(cd target; ls | grep tgz) "$REPO_NAME" || exit 1 | ||
- | | ||
REPO_ADDR="$(jq -r '.repo//empty'<<<"$ONLINE_CHART_REPO")" | ||
USERNAME="$(jq -r '.username//empty'<<<"$ONLINE_CHART_REPO")" | ||
PASSWORD="$(jq -r '.password//empty'<<<"$ONLINE_CHART_REPO")" | ||
|
||
helm repo add --insecure-skip-tls-verify --username="$USERNAME" \ | ||
--password="$PASSWORD" "$REPO_NAME" "$REPO_ADDR/chartrepo/$REPO_NAME" --force-update | ||
helm push --insecure target/$(cd target; ls | grep tgz) "$REPO_NAME" || exit 1 | ||
|
||
only: | ||
- develop | ||
- tags | ||
|
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.
I think this is unnecessary for this PR
Description
Please provide a description of this PR
Affects
To help us figure out who should review this PR, please put an X in all the areas that this PR affects.