Skip to content

Commit

Permalink
#302 imagePullSecrets support to Policy Decision Point chart
Browse files Browse the repository at this point in the history
  • Loading branch information
jaebchoi committed Oct 9, 2024
1 parent 4bd3f61 commit 4b414ee
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ helm install policy-decision-point oci://ghcr.io/boozallen/aissemble-policy-deci
**Note**: *the version should match the aiSSEMBLE project version.*

# Properties
| Property | Description | Required Override | Default |
|-------------------------------|---------------------------------------------|-------------------|------------------------------------------------------------------------------------|
| app.name | Sets label for app.kubernetes.io/name | No | Chart.Name (aissemble-policy-decision-point-chart) |
| app.version | Sets label for app.kubernetes.io/version | No | Chart.AppVersion (aiSSEMBLE project version) |
| hostname | The hostname for the application | No | policy-decision-point |
| image.name | The image name | Yes | boozallen/aissemble-policy-decision-point |
| image.imagePullPolicy | The image pull policy | No | Always (ensures local docker image is pulled, rather than from Nexus repo) |
| image.dockerRepo | The image docker repository | No | ghcr.io/ |
| image.tag | The image tag | No | Chart.AppVersion |
| service.spec.ports | The service spec ports | No | - name: rest-api <br/>&emsp;&emsp;port: 8080 <br/>&emsp;&emsp;targetPort: 8080 |
| deployment.ports | The deployment ports | No | - name: http-1 <br/>&emsp;&emsp;containerPort: 8080 <br/>&emsp;&emsp;protocol: TCP |
| deployment.restartPolicy | The deployment restart policy | No | Always |
| Property | Description | Required Override | Default |
|------------------------------|--------------------------------------------------------------------|-------------------|------------------------------------------------------------------------------------|
| app.name | Sets label for app.kubernetes.io/name | No | Chart.Name (aissemble-policy-decision-point-chart) |
| app.version | Sets label for app.kubernetes.io/version | No | Chart.AppVersion (aiSSEMBLE project version) |
| hostname | The hostname for the application | No | policy-decision-point |
| image.name | The image name | Yes | boozallen/aissemble-policy-decision-point |
| image.imagePullPolicy | The image pull policy | No | Always (ensures local docker image is pulled, rather than from Nexus repo) |
| image.dockerRepo | The image docker repository | No | ghcr.io/ |
| image.tag | The image tag | No | Chart.AppVersion |
| service.spec.ports | The service spec ports | No | - name: rest-api <br/>&emsp;&emsp;port: 8080 <br/>&emsp;&emsp;targetPort: 8080 |
| deployment.ports | The deployment ports | No | - name: http-1 <br/>&emsp;&emsp;containerPort: 8080 <br/>&emsp;&emsp;protocol: TCP |
| deployment.restartPolicy | The deployment restart policy | No | Always |
| deployment.imagePullSecrets | The secrets to use for pulling any of the images used by this Pod. | No | [] |

# Migration from aiSSEMBLE v1 Helm Charts
If you are migrating from the v1 version of the policy decision point chart, use the tables below to apply any existing customizations from the old chart to the new v2 chart.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ spec:
{{- toYaml . | nindent 12}}
{{- end }}
serviceAccountName: {{ .Values.deployment.serviceAccountName }}
{{- if .Values.deployment.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.deployment.imagePullSecrets | nindent 8 }}
{{- end }}
automountServiceAccountToken: {{ .Values.deployment.automountServiceAccountToken | default false }}
{{- with .Values.deployment.volumes }}
volumes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ tests:
name: test
containerPort: 8081
protocol: test
imagePullSecrets:
- name: regcred
asserts:
- equal:
path: spec.template.spec.containers[0].ports.name
Expand All @@ -43,4 +45,9 @@ tests:
value: 8081
- equal:
path: spec.template.spec.containers[0].ports.protocol
value: test
value: test
- contains:
path: spec.template.spec.imagePullSecrets
any: true
content:
name: regcred
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ deployment:
- name: http-1
containerPort: 8080
protocol: TCP
restartPolicy: Always
restartPolicy: Always
imagePullSecrets: []

0 comments on commit 4b414ee

Please sign in to comment.