Skip to content

Commit 4153580

Browse files
fix app-proxy cm and add script to adopt CRDs (#15)
* fix app-proxy cm
1 parent 64fec2d commit 4153580

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

charts/gitops-runtime/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: v0.0.1
33
description: A Helm chart for Codefresh gitops runtime
44
name: gitops-runtime
5-
version: 0.2.0-alpha-7
5+
version: 0.2.0-alpha-8
66
home: https://github.com/codefresh-io/gitops-runtime-helm
77
keywords:
88
- codefresh

charts/gitops-runtime/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# gitops-runtime
22

3-
![Version: 0.2.0-alpha-7](https://img.shields.io/badge/Version-0.2.0--alpha--7-informational?style=flat-square) ![AppVersion: v0.0.1](https://img.shields.io/badge/AppVersion-v0.0.1-informational?style=flat-square)
3+
![Version: 0.2.0-alpha-8](https://img.shields.io/badge/Version-0.2.0--alpha--8-informational?style=flat-square) ![AppVersion: v0.0.1](https://img.shields.io/badge/AppVersion-v0.0.1-informational?style=flat-square)
44

55
A Helm chart for Codefresh gitops runtime
66

charts/gitops-runtime/templates/_components/cap-app-proxy/_config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ data:
1818
enrichmentConcurrencyCmKey: {{ $enrichmentValues.config.concurrencyCmKey }}
1919
enrichmentServiceAccountName: {{ $enrichmentValues.serviceAccount.name }}
2020
enrichmentPodGcStrategy: {{ $enrichmentValues.config.podGcStrategy }}
21-
enrichmentTtlAfterCompletionInSeconds: {{ $enrichmentValues.config.ttlAfterCompletionInSeconds }}
22-
enrichmentTtlActiveInSeconds: {{ $enrichmentValues.config.ttlActiveInSeconds }}
23-
enrichmentClientHeartbeatIntervalInSeconds: {{ $enrichmentValues.config.clientHeartbeatIntervalInSeconds }}
21+
enrichmentTtlAfterCompletionInSeconds: {{ $enrichmentValues.config.ttlAfterCompletionInSeconds | quote }}
22+
enrichmentTtlActiveInSeconds: {{ $enrichmentValues.config.ttlActiveInSeconds | quote }}
23+
enrichmentClientHeartbeatIntervalInSeconds: {{ $enrichmentValues.config.clientHeartbeatIntervalInSeconds | quote }}
2424
{{- end }}
2525
{{- end }}

charts/gitops-runtime/tests/app-proxy-image-enrichemnt_test.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ tests:
4242
value: test
4343
- equal:
4444
path: data.enrichmentTtlAfterCompletionInSeconds
45-
value: 1
45+
value: "1"
4646
- equal:
4747
path: data.enrichmentTtlActiveInSeconds
48-
value: 1
48+
value: "1"
4949
- equal:
5050
path: data.enrichmentClientHeartbeatIntervalInSeconds
51-
value: 1
51+
value: "1"
5252
- equal:
5353
path: data.enrichmentServiceAccountName
5454
value: test

scripts/adopt-crds.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
RELEASE=$1
3+
NAMESPACE=$2
4+
kubectl label --overwrite crds $(kubectl get crd | grep argoproj.io | awk '{print $1}' | xargs) app.kubernetes.io/managed-by=Helm
5+
kubectl annotate --overwrite crds $(kubectl get crd | grep argoproj.io | awk '{print $1}' | xargs) meta.helm.sh/release-name=$RELEASE
6+
kubectl annotate --overwrite crds $(kubectl get crd | grep argoproj.io | awk '{print $1}' | xargs) meta.helm.sh/release-namespace=$NAMESPACE
7+

0 commit comments

Comments
 (0)