# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "clipboard.fullname" . }}-clipboard
  labels:
  {{- include "clipboard.labels" . | nindent 4 }}
data:
  ADAMANT_STROKE_BLUSH: {{ .Values.clipboard.adamantStrokeBlush | quote }}
  CHARD_ABERRANT_COURAGE: {{ .Values.clipboard.chardAberrantCourage | quote }}
  COMPONENT_RELIEVED: {{ .Values.clipboard.componentRelieved | quote }}
  HARMONIZE_INCIDENCE_KEYBOARDING: {{ .Values.clipboard.harmonizeIncidenceKeyboarding
    | quote }}
  LYNX_BED: {{ .Values.clipboard.lynxBed | quote }}
  PARTNER: {{ .Values.clipboard.partner | quote }}
  TENET_RESPITE: {{ .Values.clipboard.tenetRespite | quote }}
  TIGHT_CHIT-CHAT: {{ .Values.clipboard.tightChitChat | quote }}
  WAIST_WHOLESALER_PAIL: {{ .Values.clipboard.waistWholesalerPail | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "clipboard.fullname" . }}-clipboard
  labels:
  {{- include "clipboard.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: clipboard
spec:
  replicas: {{ .Values.clipboard.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: clipboard
      app.kubernetes.io/name: harmonica
    {{- include "clipboard.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: clipboard
        app.kubernetes.io/name: harmonica
      {{- include "clipboard.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 989b38ca81bbef4bcce59e02f4bf14419d09b7bc74aaaa88ab1d31cd198c0c52
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "clipboard.fullname" . }}-clipboard
        image: {{ .Values.clipboard.clipboard.image.repository }}:{{ .Values.clipboard.clipboard.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.clipboard.clipboard.imagePullPolicy }}
        name: clipboard
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.clipboard.clipboard.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.clipboard.clipboard.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "clipboard.fullname" . }}-clipboard
  labels:
  {{- include "clipboard.labels" . | nindent 4 }}
spec:
  type: {{ .Values.clipboard.type }}
  selector:
    app.kubernetes.io/instance: clipboard
    app.kubernetes.io/name: harmonica
  {{- include "clipboard.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.clipboard.ports | toYaml | nindent 2 -}}
clipboard:
  adamantStrokeBlush: chronograph
  chardAberrantCourage: cute
  clipboard:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  componentRelieved: eyebrow
  harmonizeIncidenceKeyboarding: swamp
  lynxBed: perennial
  partner: hammock
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  tenetRespite: print
  tightChitChat: charlatan
  type: ClusterIP
  waistWholesalerPail: industrialization
kubernetesClusterDomain: cluster.local
