Modify values.yml to match expected format
When system application-apply, the script will download
containers and upload them to the local registry.
(This process includes repository re-written with
system parameter configuration)
Current in values.yaml of snmp armada app, only
stx-snmp container configuration matched to the
expected pattern. So that the script downloaded
only stx-snmp container but no other two containers.
This fix modifies the format in values.xml to
match the expected pattern (No value changes for
repositories nor tags)
Test Plan:
PASS: Apply snmp-armada-app and confirm the followings:
- Status becomes "applied"
- All 3 containers download from configured repository
- All 3 containers are in the local repository
Closes-bug: 1952654
Signed-off-by: Takamasa Takenaka <takamasa.takenaka@windriver.com>
Change-Id: I8b742a2e211717b343f459443b15e947e5c6bd92
This commit is contained in:
@@ -29,8 +29,8 @@ spec:
|
|||||||
effect: "NoSchedule"
|
effect: "NoSchedule"
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.snmp.image.repository }}:{{ .Values.snmp.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.snmp.pull_policy }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 161
|
- containerPort: 161
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
@@ -63,9 +63,9 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: snmpd-etc-volume
|
- name: snmpd-etc-volume
|
||||||
mountPath: /etc/snmp
|
mountPath: /etc/snmp
|
||||||
- name: {{ .Values.image.subagent_name }}
|
- name: {{ .Values.subagent.name }}
|
||||||
image: "{{ .Values.image.repository_subagent }}:{{ .Values.image.tag_subagent }}"
|
image: "{{ .Values.subagent.image.repository }}:{{ .Values.subagent.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy_subagent }}
|
imagePullPolicy: {{ .Values.subagent.pull_policy }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: snmpd-fm-volume
|
- name: snmpd-fm-volume
|
||||||
mountPath: /etc/fm/
|
mountPath: /etc/fm/
|
||||||
@@ -105,9 +105,9 @@ spec:
|
|||||||
# timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
|
# timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
|
||||||
# successThreshold: {{ .Values.readinessProbe.successThreshold }}
|
# successThreshold: {{ .Values.readinessProbe.successThreshold }}
|
||||||
# failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
|
# failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
|
||||||
- name: {{ .Values.image.trap_subagent_name }}
|
- name: {{ .Values.trap_subagent.name }}
|
||||||
image: "{{ .Values.image.repository_trap_subagent }}:{{ .Values.image.tag_trap_subagent }}"
|
image: "{{ .Values.trap_subagent.image.repository }}:{{ .Values.trap_subagent.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy_trap_subagent }}
|
imagePullPolicy: {{ .Values.trap_subagent.pull_policy }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 162
|
- containerPort: 162
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|||||||
@@ -4,18 +4,27 @@
|
|||||||
|
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
|
snmp:
|
||||||
|
image:
|
||||||
|
repository: docker.io/starlingx/stx-snmp
|
||||||
|
tag: stx.6.0-v1.0.1
|
||||||
|
pull_policy: IfNotPresent
|
||||||
|
|
||||||
|
subagent:
|
||||||
|
name: sub-agent
|
||||||
|
image:
|
||||||
|
repository: docker.io/starlingx/stx-fm-subagent
|
||||||
|
tag: stx.6.0-v1.0.3
|
||||||
|
pull_policy: IfNotPresent
|
||||||
|
|
||||||
|
trap_subagent:
|
||||||
|
name: trap-subagent
|
||||||
|
image:
|
||||||
|
repository: docker.io/starlingx/stx-fm-trap-subagent
|
||||||
|
tag: stx.6.0-v1.0.2
|
||||||
|
pull_policy: IfNotPresent
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: docker.io/starlingx/stx-snmp
|
|
||||||
tag: stx.6.0-v1.0.1
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
subagent_name: sub-agent
|
|
||||||
repository_subagent: docker.io/starlingx/stx-fm-subagent
|
|
||||||
tag_subagent: stx.6.0-v1.0.3
|
|
||||||
pullPolicy_subagent: IfNotPresent
|
|
||||||
trap_subagent_name: trap-subagent
|
|
||||||
repository_trap_subagent: docker.io/starlingx/stx-fm-trap-subagent
|
|
||||||
tag_trap_subagent: stx.6.0-v1.0.2
|
|
||||||
pullPolicy_trap_subagent: IfNotPresent
|
|
||||||
debug: ''
|
debug: ''
|
||||||
|
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user