| 
 | 1 | +apiVersion: apps/v1  | 
 | 2 | +kind: Deployment  | 
 | 3 | +metadata:  | 
 | 4 | +  name: {{ include "stac-manager.fullname" . }}  | 
 | 5 | +  labels:  | 
 | 6 | +    {{- include "stac-manager.labels" . | nindent 4 }}  | 
 | 7 | +spec:  | 
 | 8 | +  {{- if not .Values.autoscaling.enabled }}  | 
 | 9 | +  replicas: {{ .Values.replicaCount }}  | 
 | 10 | +  {{- end }}  | 
 | 11 | +  selector:  | 
 | 12 | +    matchLabels:  | 
 | 13 | +      {{- include "stac-manager.selectorLabels" . | nindent 6 }}  | 
 | 14 | +  template:  | 
 | 15 | +    metadata:  | 
 | 16 | +      {{- with .Values.podAnnotations }}  | 
 | 17 | +      annotations:  | 
 | 18 | +        {{- toYaml . | nindent 8 }}  | 
 | 19 | +      {{- end }}  | 
 | 20 | +      labels:  | 
 | 21 | +        {{- include "stac-manager.labels" . | nindent 8 }}  | 
 | 22 | +        {{- with .Values.podLabels }}  | 
 | 23 | +        {{- toYaml . | nindent 8 }}  | 
 | 24 | +        {{- end }}  | 
 | 25 | +    spec:  | 
 | 26 | +      {{- with .Values.imagePullSecrets }}  | 
 | 27 | +      imagePullSecrets:  | 
 | 28 | +        {{- toYaml . | nindent 8 }}  | 
 | 29 | +      {{- end }}  | 
 | 30 | +      serviceAccountName: {{ include "stac-manager.serviceAccountName" . }}  | 
 | 31 | +      securityContext:  | 
 | 32 | +        {{- toYaml .Values.podSecurityContext | nindent 8 }}  | 
 | 33 | +      containers:  | 
 | 34 | +        - name: {{ .Chart.Name }}  | 
 | 35 | +          securityContext:  | 
 | 36 | +            {{- toYaml .Values.securityContext | nindent 12 }}  | 
 | 37 | +          image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"  | 
 | 38 | +          imagePullPolicy: {{ .Values.image.pullPolicy }}  | 
 | 39 | +          ports:  | 
 | 40 | +            - name: http  | 
 | 41 | +              containerPort: {{ .Values.service.port }}  | 
 | 42 | +              protocol: TCP  | 
 | 43 | +          livenessProbe:  | 
 | 44 | +            {{- toYaml .Values.livenessProbe | nindent 12 }}  | 
 | 45 | +          readinessProbe:  | 
 | 46 | +            {{- toYaml .Values.readinessProbe | nindent 12 }}  | 
 | 47 | +          resources:  | 
 | 48 | +            {{- toYaml .Values.resources | nindent 12 }}  | 
 | 49 | +          {{- with .Values.volumeMounts }}  | 
 | 50 | +          volumeMounts:  | 
 | 51 | +            {{- toYaml . | nindent 12 }}  | 
 | 52 | +          {{- end }}  | 
 | 53 | +      {{- with .Values.volumes }}  | 
 | 54 | +      volumes:  | 
 | 55 | +        {{- toYaml . | nindent 8 }}  | 
 | 56 | +      {{- end }}  | 
 | 57 | +      {{- with .Values.nodeSelector }}  | 
 | 58 | +      nodeSelector:  | 
 | 59 | +        {{- toYaml . | nindent 8 }}  | 
 | 60 | +      {{- end }}  | 
 | 61 | +      {{- with .Values.affinity }}  | 
 | 62 | +      affinity:  | 
 | 63 | +        {{- toYaml . | nindent 8 }}  | 
 | 64 | +      {{- end }}  | 
 | 65 | +      {{- with .Values.tolerations }}  | 
 | 66 | +      tolerations:  | 
 | 67 | +        {{- toYaml . | nindent 8 }}  | 
 | 68 | +      {{- end }}  | 
0 commit comments