Skip to content

Commit

Permalink
fix: modified commands
Browse files Browse the repository at this point in the history
Signed-off-by: Griffin <prakritimandal611@gmail.com>
  • Loading branch information
prakrit55 committed Feb 29, 2024
1 parent f3db117 commit 223bfd8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 39 deletions.
13 changes: 0 additions & 13 deletions .github/scripts/metrics-replace-annotation.sh

This file was deleted.

22 changes: 0 additions & 22 deletions .github/scripts/operator-replace-annotation.sh

This file was deleted.

7 changes: 5 additions & 2 deletions lifecycle-operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ lint:

##command to update chart/templates and docs
.PHONY: update-helmcharts
update-helmcharts:
update-helmcharts: generate manifests
kustomize build config/crd > chart/templates/operator-crd.yaml
./../.github/scripts/operator-replace-annotation.sh
awk '/env: fake/ { print " cert-manager.io/inject-ca-from: '\''{{ .Release.Namespace }}/keptn-certs'\''"; print " {{- include \"common.annotations\" (dict \"context\" .) }}"; next } { print }' chart/templates/operator-crd.yaml > temp_file && mv temp_file chart/templates/operator-crd.yaml
awk '/putAnnotation: operator/ && !found { found=1; next } 1' chart/templates/operator-crd.yaml > chart/templates/temp && mv chart/templates/temp chart/templates/operator-crd.yaml
awk '/putAnnotation: operator/{print " {{- with .Values.global.caInjectionAnnotations }}"; print " {{- toYaml . | nindent 4 }}"; print " {{- end }}"; print " {{- include \"common.annotations\" ( dict \"context\" . ) }}"; next} 1' chart/templates/operator-crd.yaml > temp_file && mv temp_file chart/templates/operator-crd.yaml
awk '/putLabels: newLabel/{print "{{- include \"common.labels.standard\" (dict \"context\" .) | nindent 4 }}"; next} 1' chart/templates/operator-crd.yaml > temp_file && mv temp_file chart/templates/operator-crd.yaml
7 changes: 5 additions & 2 deletions metrics-operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ lint:

##command to update chart/templates and docs
.PHONY: update-helmcharts
update-helmcharts:
update-helmcharts: generate manifests
kustomize build config/crd > chart/templates/metricsOperator-crd.yaml
./../.github/scripts/metrics-replace-annotation.sh
awk '/putAnnotation: metrics-operator/{print " {{- with .Values.global.caInjectionAnnotations }}"; print " {{- toYaml . | nindent 4 }}"; print " {{- end }}"; print " {{- include \"common.annotations\" ( dict \"context\" . ) }}"; next} 1' chart/templates/metricsOperator-crd.yaml > temp_file && mv temp_file chart/templates/metricsOperator-crd.yaml
awk '/env: fake/ {print " cert-manager.io/inject-ca-from: '\''{{ .Release.Namespace }}/keptn-certs'\''"; next} 1' chart/templates/metricsOperator-crd.yaml > temp_file && mv temp_file chart/templates/metricsOperator-crd.yaml
awk '/putLabels: newLabel/ {print "{{- include \"common.labels.standard\" (dict \"context\" .) | nindent 4 }}"; next} 1' chart/templates/metricsOperator-crd.yaml > temp_file && mv temp_file chart/templates/metricsOperator-crd.yaml

0 comments on commit 223bfd8

Please sign in to comment.