-
Notifications
You must be signed in to change notification settings - Fork 115
Gangams/arc k8s related scripts, charts and doc updates #450
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
fa1a7c2
checksum annotations
ganga1980 2f0f706
script update for chart from mcr
ganga1980 4054aa7
chart updates
ganga1980 d6de307
update chart version to match with chart release
ganga1980 ae039ad
script updates
ganga1980 197df35
latest chart updates
ganga1980 daa12d9
version updates for chart release
ganga1980 9a10cf6
script updates
ganga1980 a4bc73b
script updates
ganga1980 a6e0128
doc updates
ganga1980 ba0d578
doc updates
ganga1980 06b3366
update comments
ganga1980 f93b626
fix bug in ps script
ganga1980 060538e
fix bug in ps script
ganga1980 831e030
minor update
ganga1980 cca61d6
release process updates
ganga1980 f8889a3
use consistent name across scripts
ganga1980 06f018b
use consistent names
ganga1980 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 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
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 |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| #!/bin/bash | ||
| # working directory of this script should be charts/azuremonitor-containers | ||
|
|
||
| # this repo used without extension public preview release | ||
| export PROD_REPO_PATH="public/azuremonitor/containerinsights/preview/azuremonitor-containers" | ||
|
|
||
| # note: this repo registered in arc k8s extension for prod group1 regions. | ||
| export EXTENSION_PROD_REPO_PATH="public/azuremonitor/containerinsights/prod1/preview/azuremonitor-containers" | ||
|
|
||
| export HELM_EXPERIMENTAL_OCI=1 | ||
|
|
||
| for ARGUMENT in "$@" | ||
| do | ||
| KEY=$(echo $ARGUMENT | cut -f1 -d=) | ||
| VALUE=$(echo $ARGUMENT | cut -f2 -d=) | ||
|
|
||
| case "$KEY" in | ||
| CIACR) CIACR=$VALUE ;; | ||
| CICHARTVERSION) CHARTVERSION=$VALUE ;; | ||
| *) | ||
| esac | ||
| done | ||
|
|
||
| echo "CI ARC K8S ACR: ${CIACR}" | ||
| echo "CI HELM CHART VERSION: ${CHARTVERSION}" | ||
|
|
||
| echo "start: read appid and appsecret" | ||
| ACR_APP_ID=$(cat ~/acrappid) | ||
| ACR_APP_SECRET=$(cat ~/acrappsecret) | ||
| echo "end: read appid and appsecret" | ||
|
|
||
| ACR=${CIACR} | ||
|
|
||
| echo "login to acr:${ACR} using helm" | ||
| helm registry login $ACR --username $ACR_APP_ID --password $ACR_APP_SECRET | ||
|
|
||
| echo "login to acr:${ACR} completed: ${ACR}" | ||
|
|
||
| echo "start: push the chart version: ${CHARTVERSION} to acr repo: ${ACR}" | ||
|
|
||
| echo "save the chart locally with acr full path: ${ACR}/${EXTENSION_PROD_REPO_PATH}:${CHARTVERSION}" | ||
| helm chart save . ${ACR}/${EXTENSION_PROD_REPO_PATH}:${CHARTVERSION} | ||
|
|
||
| echo "save the chart locally with acr full path: ${ACR}/${PROD_REPO_PATH}:${CHARTVERSION}" | ||
| helm chart save . ${ACR}/${PROD_REPO_PATH}:${CHARTVERSION} | ||
|
|
||
| echo "pushing the helm chart to ACR: ${ACR}/${EXTENSION_PROD_REPO_PATH}:${CHARTVERSION}" | ||
| helm chart push ${ACR}/${EXTENSION_PROD_REPO_PATH}:${CHARTVERSION} | ||
|
|
||
| echo "pushing the helm chart to ACR: ${ACR}/${PROD_REPO_PATH}:${CHARTVERSION}" | ||
| helm chart push ${ACR}/${PROD_REPO_PATH}:${CHARTVERSION} | ||
|
|
||
| echo "end: push the chart version: ${CHARTVERSION} to acr repo: ${ACR}" |
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
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
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
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.