{{- if index .Values.ocCatalog.enabled }} apiVersion: apps/v1 kind: Deployment metadata: labels: app: oc-catalog name: {{ .Release.Name }}-oc-catalog spec: replicas: 1 selector: matchLabels: app: oc-catalog template: metadata: labels: app: oc-catalog spec: containers: - image: "{{ .Values.ocCatalog.image }}" name: oc-catalog envFrom: - configMapRef: name: opencloud-config ports: - name: http containerPort: 8080 protocol: TCP resources: limits: cpu: "{{ .Values.ocCatalog.resources.limits.cpu }}" memory: "{{ .Values.ocCatalog.resources.limits.memory }}" requests: cpu: "{{ .Values.ocCatalog.resources.requests.cpu }}" memory: "{{ .Values.ocCatalog.resources.requests.memory }}" {{- end }}