Skip to content

Commit

Permalink
chore: set unchangeable tag in rendered (#768)
Browse files Browse the repository at this point in the history
* chore: update versioning

* chore: update version rendering
  • Loading branch information
ajasnosz authored Jul 26, 2023
1 parent c534cf8 commit 112f7e0
Show file tree
Hide file tree
Showing 95 changed files with 237 additions and 235 deletions.
2 changes: 2 additions & 0 deletions render_manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ for test_case in "${TEST_CASES[@]}"; do
VALUES_FILE="$DIR/values_${test_case}.yaml"
MANIFEST_DIR="$DIR/manifests/tests_${test_case}"
helm template --values "${VALUES_FILE}" --output-dir "${MANIFEST_DIR}" -n default charts/splunk-connect-for-snmp
APPVERSION=`sed -nr 's/appVersion: "(.+)"/\1/p' charts/splunk-connect-for-snmp/Chart.yaml` #Find current app version
sed -i '' -e 's/'"$APPVERSION"'/CURRENT-VERSION/g' $(find rendered/ -type f) #Replace version with default var
rm -rf "${MANIFEST_DIR}"/splunk-connect-for-snmp/charts
done
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-scheduler
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
data:
config.yaml: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-scheduler
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
data:
inventory.csv: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-scheduler
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
data:
config.yaml: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-inventory
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
ttlSecondsAfterFinished: 300
Expand All @@ -21,7 +21,7 @@ spec:
spec:
containers:
- name: splunk-connect-for-snmp-inventory
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:1.9.1"
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:CURRENT-VERSION"
imagePullPolicy: Always
args:
["inventory"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-scheduler
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
Expand All @@ -35,7 +35,7 @@ spec:
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:1.9.1"
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:CURRENT-VERSION"
imagePullPolicy: Always
args:
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-scheduler
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
minAvailable: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ kind: ServiceAccount
metadata:
name: release-name-splunk-connect-for-snmp-user
labels:
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-sim
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
minAvailable: 80%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ kind: Pod
metadata:
name: "release-name-splunk-connect-for-snmp-trap-test-connection"
labels:
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
annotations:
"helm.sh/hook": test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-trap
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 2
Expand All @@ -35,7 +35,7 @@ spec:
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:1.9.1"
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:CURRENT-VERSION"
imagePullPolicy: Always
args:
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-trap
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
minAvailable: 80%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-trap
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
annotations:
metallb.universe.tf/allow-shared-ip: "splunk-connect"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-worker
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
minAvailable: 80%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-worker-poller
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 2
Expand All @@ -35,7 +35,7 @@ spec:
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:1.9.1"
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:CURRENT-VERSION"
imagePullPolicy: Always
args:
[
Expand All @@ -47,7 +47,7 @@ spec:
- name: REDIS_URL
value: redis://release-name-redis-headless:6379/1
- name: SC4SNMP_VERSION
value: 1.9.1
value: CURRENT-VERSION
- name: CELERY_BROKER_URL
value: redis://release-name-redis-headless:6379/0
- name: MONGO_URI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-worker-sender
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
Expand All @@ -35,7 +35,7 @@ spec:
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:1.9.1"
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:CURRENT-VERSION"
imagePullPolicy: Always
args:
[
Expand All @@ -47,7 +47,7 @@ spec:
- name: REDIS_URL
value: redis://release-name-redis-headless:6379/1
- name: SC4SNMP_VERSION
value: 1.9.1
value: CURRENT-VERSION
- name: CELERY_BROKER_URL
value: redis://release-name-redis-headless:6379/0
- name: MONGO_URI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-worker-trap
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 2
Expand All @@ -35,7 +35,7 @@ spec:
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:1.9.1"
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:CURRENT-VERSION"
imagePullPolicy: Always
args:
[
Expand All @@ -47,7 +47,7 @@ spec:
- name: REDIS_URL
value: redis://release-name-redis-headless:6379/1
- name: SC4SNMP_VERSION
value: 1.9.1
value: CURRENT-VERSION
- name: CELERY_BROKER_URL
value: redis://release-name-redis-headless:6379/0
- name: MONGO_URI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-scheduler
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
data:
config.yaml: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-scheduler
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
data:
inventory.csv: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-scheduler
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
data:
config.yaml: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-inventory
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
ttlSecondsAfterFinished: 300
Expand All @@ -21,7 +21,7 @@ spec:
spec:
containers:
- name: splunk-connect-for-snmp-inventory
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:1.9.1"
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:CURRENT-VERSION"
imagePullPolicy: Always
args:
["inventory"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-scheduler
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
Expand All @@ -35,7 +35,7 @@ spec:
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:1.9.1"
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:CURRENT-VERSION"
imagePullPolicy: Always
args:
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-scheduler
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
minAvailable: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ kind: ServiceAccount
metadata:
name: release-name-splunk-connect-for-snmp-user
labels:
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-sim
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
minAvailable: 80%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ kind: Pod
metadata:
name: "release-name-splunk-connect-for-snmp-trap-test-connection"
labels:
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
annotations:
"helm.sh/hook": test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
app.kubernetes.io/name: splunk-connect-for-snmp-trap
app.kubernetes.io/instance: release-name
helm.sh/chart: splunk-connect-for-snmp-1.9.1
app.kubernetes.io/version: "1.9.1"
helm.sh/chart: splunk-connect-for-snmp-CURRENT-VERSION
app.kubernetes.io/version: "CURRENT-VERSION"
app.kubernetes.io/managed-by: Helm
spec:
selector:
Expand All @@ -34,7 +34,7 @@ spec:
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:1.9.1"
image: "ghcr.io/splunk/splunk-connect-for-snmp/container:CURRENT-VERSION"
imagePullPolicy: Always
args:
[
Expand Down
Loading

0 comments on commit 112f7e0

Please sign in to comment.