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