# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "innocence.fullname" . }}-innocence
  labels:
  {{- include "innocence.labels" . | nindent 4 }}
data:
  BALLOONIST_LOUD_CYCLOOXYGENASE: {{ .Values.innocence.balloonistLoudCyclooxygenase
    | quote }}
  BOXER_REDUCTION_YEAR: {{ .Values.innocence.boxerReductionYear | quote }}
  CITY: {{ .Values.innocence.city | quote }}
  FAVORITE_MACADAMIA: {{ .Values.innocence.favoriteMacadamia | quote }}
  FRIDGE_LESBIAN_FLIPPED-OUT: {{ .Values.innocence.fridgeLesbianFlippedOut | quote
    }}
  LIMITATION: {{ .Values.innocence.limitation | quote }}
  ODYSSEY_ADULTHOOD_DIG: {{ .Values.innocence.odysseyAdulthoodDig | quote }}
  ORCHARD_AD HOC_THUMP: {{ .Values.innocence.orchardAdHocThump | quote }}
  QUILT: {{ .Values.innocence.quilt | quote }}
  STATEMENT_EROSION_SCINTILLATING: {{ .Values.innocence.statementErosionScintillating
    | quote }}
  UNACCOUNTABLE_FORUM: {{ .Values.innocence.unaccountableForum | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "innocence.fullname" . }}-innocence
  labels:
  {{- include "innocence.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: innocence
spec:
  replicas: {{ .Values.innocence.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: innocence
      app.kubernetes.io/name: garter
    {{- include "innocence.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: innocence
        app.kubernetes.io/name: garter
      {{- include "innocence.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: effbf71024bcba719777f28c15dc1a1de96d4f2ef0ef4f677cf7192bc93e90a8
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "innocence.fullname" . }}-innocence
        image: {{ .Values.innocence.innocence.image.repository }}:{{ .Values.innocence.innocence.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.innocence.innocence.imagePullPolicy }}
        name: innocence
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.innocence.innocence.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.innocence.innocence.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "innocence.fullname" . }}-innocence
  labels:
  {{- include "innocence.labels" . | nindent 4 }}
spec:
  type: {{ .Values.innocence.type }}
  selector:
    app.kubernetes.io/instance: innocence
    app.kubernetes.io/name: garter
  {{- include "innocence.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.innocence.ports | toYaml | nindent 2 -}}
innocence:
  balloonistLoudCyclooxygenase: few
  boxerReductionYear: hiccups
  city: covariate
  favoriteMacadamia: praised
  fridgeLesbianFlippedOut: differential
  innocence:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  limitation: rear
  odysseyAdulthoodDig: comptroller
  orchardAdHocThump: peck
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  quilt: sum
  replicas: 1
  statementErosionScintillating: oriented
  type: ClusterIP
  unaccountableForum: synthesis
kubernetesClusterDomain: cluster.local
