Skip to content

Commit

Permalink
[artifactory-ha] Add Annotations to Primary Artifactory Service and R…
Browse files Browse the repository at this point in the history
…esources to Nginx Deployment (#1862)
  • Loading branch information
yellowplane13 authored Oct 30, 2024
1 parent 5134ac5 commit f43e0fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ metadata:
{{- with .Values.artifactory.primary.labels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- with .Values.artifactory.primary.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
# Statically setting service type to ClusterIP since this is an internal only service
type: ClusterIP
Expand Down
2 changes: 2 additions & 0 deletions stable/artifactory-ha/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ spec:
volumeMounts:
- mountPath: {{ .Values.nginx.persistence.mountPath | quote }}
name: nginx-volume
resources:
{{ toYaml .Values.initContainers.resources | indent 10 }}
containers:
- name: {{ .Values.nginx.name }}
image: {{ include "artifactory-ha.getImageInfoByValue" (list . "nginx") }}
Expand Down
1 change: 1 addition & 0 deletions stable/artifactory-ha/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,7 @@ artifactory:
## preStartCommand specific to the primary node, to be run after artifactory.preStartCommand
# preStartCommand:
labels: {}
annotations: {}
persistence:
## Set existingClaim to true or false
## If true, you must prepare a PVC with the name e.g `volume-myrelease-artifactory-ha-primary-0`
Expand Down

0 comments on commit f43e0fe

Please sign in to comment.