github.com/operator-framework/operator-lifecycle-manager@v0.30.0/deploy/chart/templates/_packageserver.deployment-spec.yaml (about) 1 {{- define "packageserver.deployment-spec" -}} 2 spec: 3 strategy: 4 type: RollingUpdate 5 rollingUpdate: 6 maxUnavailable: {{ .Values.package.maxUnavailable }} 7 maxSurge: {{ .Values.package.maxSurge }} 8 replicas: {{ .Values.package.replicaCount }} 9 selector: 10 matchLabels: 11 app: packageserver 12 template: 13 metadata: 14 labels: 15 app: packageserver 16 spec: 17 securityContext: 18 runAsNonRoot: true 19 seccompProfile: 20 type: RuntimeDefault 21 serviceAccountName: olm-operator-serviceaccount 22 {{- if .Values.package.nodeSelector }} 23 nodeSelector: 24 {{- toYaml .Values.package.nodeSelector | nindent 8 }} 25 {{- end }} 26 {{- if .Values.package.tolerations }} 27 tolerations: 28 {{- toYaml .Values.package.tolerations | nindent 6 }} 29 {{- end }} 30 containers: 31 - name: packageserver 32 securityContext: 33 allowPrivilegeEscalation: false 34 capabilities: 35 drop: [ "ALL" ] 36 command: 37 - /bin/package-server 38 - -v=4 39 {{- if .Values.watchedNamespaces }} 40 - --watched-namespaces 41 - {{ .Values.watchedNamespaces }} 42 {{- end }} 43 - --secure-port 44 - {{ .Values.package.service.internalPort | quote }} 45 - --global-namespace 46 - {{ .Values.catalog_namespace }} 47 {{- if .Values.debug }} 48 - --debug 49 {{- end }} 50 {{- if .Values.package.interval }} 51 - --interval 52 - {{ .Values.package.interval }} 53 {{- end }} 54 {{- if .Values.package.commandArgs }} 55 - {{ .Values.package.commandArgs }} 56 {{- end }} 57 image: {{ .Values.package.image.ref }} 58 imagePullPolicy: {{ .Values.package.image.pullPolicy }} 59 ports: 60 - containerPort: {{ .Values.package.service.internalPort }} 61 protocol: TCP 62 livenessProbe: 63 httpGet: 64 scheme: HTTPS 65 path: /healthz 66 port: {{ .Values.package.service.internalPort }} 67 readinessProbe: 68 httpGet: 69 scheme: HTTPS 70 path: /healthz 71 port: {{ .Values.package.service.internalPort }} 72 terminationMessagePolicy: FallbackToLogsOnError 73 {{- if .Values.package.resources }} 74 resources: 75 {{ toYaml .Values.package.resources | indent 10 }} 76 {{- end }} 77 volumeMounts: 78 - name: tmpfs 79 mountPath: /tmp 80 volumes: 81 - name: tmpfs 82 emptyDir: {} 83 {{- end -}}