Skip to content

Commit f1eef18

Browse files
committed
udpate chart version to same as app verison from argocd-agent ref
Signed-off-by: Anand Kumar Singh <anandrkskd@gmail.com>
1 parent 89ebb2d commit f1eef18

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

helm-chart/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ The scripts in this directory automate the process of:
3939
2. Reads commit and ref from `config.yaml`
4040
3. Initializes and updates the `sources/argocd-agent` submodule
4141
4. Copies the helm chart to an output directory named `{commit}-{ref}`
42-
5. Updates `Chart.yaml` with RedHat-specific metadata
42+
5. Updates `Chart.yaml` with RedHat-specific metadata:
43+
- Sets description to "RedHat Argo CD Agent for connecting managed clusters to a Principal"
44+
- Adds annotation `charts.openshift.io/name` = "RedHat Argo CD Agent - Agent Component"
45+
- Sets version to the ref value from `config.yaml` (e.g., `v0.5.1`)
4346
6. Updates `values.yaml` with production image repository:
4447
- Image repository: `registry.redhat.io/openshift-gitops-1/argocd-agent-rhel8`
4548
- Image tag: Provided as argument, should be similar to what is present on the catalog. e.g. v1.18.1, v1.18.1-2
@@ -77,7 +80,10 @@ The scripts in this directory automate the process of:
7780
1. Reads commit and ref from `config.yaml`
7881
2. Initializes and updates the `sources/argocd-agent` submodule
7982
3. Copies the helm chart to an output directory named `{commit}-{ref}-stage`
80-
4. Updates `Chart.yaml` with RedHat-specific metadata
83+
4. Updates `Chart.yaml` with RedHat-specific metadata:
84+
- Sets description to "RedHat Argo CD Agent for connecting managed clusters to a Principal"
85+
- Adds annotation `charts.openshift.io/name` = "RedHat Argo CD Agent - Agent Component"
86+
- Sets version to the ref value from `config.yaml` (e.g., `v0.5.1`)
8187
5. Updates `values.yaml` with stage image repository:
8288
- Image repository: `quay.io/redhat-user-workloads/rh-openshift-gitops-tenant/argocd-agent-rhel8`
8389
- Image tag: Provided as argument

helm-chart/publish-stage.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ TEMP_VALUES_YAML="${HELM_CHART_OUTPUT_DIR}/values.yaml"
164164
info "Updating Chart.yaml in the copy..."
165165
"${YQ}" eval '.description = "RedHat Argo CD Agent for connecting managed clusters to a Principal"' -i "${TEMP_CHART_YAML}"
166166
"${YQ}" eval '.annotations."charts.openshift.io/name" = "RedHat Argo CD Agent - Agent Component"' -i "${TEMP_CHART_YAML}"
167+
"${YQ}" eval ".version = \"${ARGOCD_AGENT_REF}\"" -i "${TEMP_CHART_YAML}"
167168

168169
info "Chart.yaml updated successfully"
169170

helm-chart/publish.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ TEMP_VALUES_YAML="${HELM_CHART_OUTPUT_DIR}/values.yaml"
162162
info "Updating Chart.yaml in the copy..."
163163
"${YQ}" eval '.description = "RedHat Argo CD Agent for connecting managed clusters to a Principal"' -i "${TEMP_CHART_YAML}"
164164
"${YQ}" eval '.annotations."charts.openshift.io/name" = "RedHat Argo CD Agent - Agent Component"' -i "${TEMP_CHART_YAML}"
165+
"${YQ}" eval ".version = \"${ARGOCD_AGENT_REF}\"" -i "${TEMP_CHART_YAML}"
165166

166167
info "Chart.yaml updated successfully"
167168

0 commit comments

Comments
 (0)