# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "signify.fullname" . }}-signify
  labels:
  {{- include "signify.labels" . | nindent 4 }}
data:
  COMESTIBLE_ORCHESTRA_DETAINMENT: {{ .Values.signify.comestibleOrchestraDetainment
    | quote }}
  HONEY: {{ .Values.signify.honey | quote }}
  LYNX_FOOLISH: {{ .Values.signify.lynxFoolish | quote }}
  MOANING: {{ .Values.signify.moaning | quote }}
  MOCHA_OPPONENT: {{ .Values.signify.mochaOpponent | quote }}
  PACKAGING_SWORDFISH: {{ .Values.signify.packagingSwordfish | quote }}
  QUALITY_COBBLER_REGIME: {{ .Values.signify.qualityCobblerRegime | quote }}
  RECLAMATION_PREOCCUPATION_FAHRENHEIT: {{ .Values.signify.reclamationPreoccupationFahrenheit
    | quote }}
  RIGHTFUL_MALICIOUS: {{ .Values.signify.rightfulMalicious | quote }}
  TREE: {{ .Values.signify.tree | quote }}
  WRINKLE_FINDING: {{ .Values.signify.wrinkleFinding | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "signify.fullname" . }}-signify
  labels:
  {{- include "signify.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: signify
spec:
  replicas: {{ .Values.signify.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: signify
      app.kubernetes.io/name: tall
    {{- include "signify.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: signify
        app.kubernetes.io/name: tall
      {{- include "signify.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: a35588943a1019e3933ed33fdf651d6a7371879ca05cc6d1eccd223ad7d54339
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "signify.fullname" . }}-signify
        image: {{ .Values.signify.signify.image.repository }}:{{ .Values.signify.signify.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.signify.signify.imagePullPolicy }}
        name: signify
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.signify.signify.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.signify.signify.containerSecurityContext |
          nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "signify.fullname" . }}-signify
  labels:
  {{- include "signify.labels" . | nindent 4 }}
spec:
  type: {{ .Values.signify.type }}
  selector:
    app.kubernetes.io/instance: signify
    app.kubernetes.io/name: tall
  {{- include "signify.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.signify.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
signify:
  comestibleOrchestraDetainment: spike
  honey: vex
  lynxFoolish: stonework
  moaning: ant
  mochaOpponent: working
  packagingSwordfish: dump
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  qualityCobblerRegime: being
  reclamationPreoccupationFahrenheit: recall
  replicas: 1
  rightfulMalicious: maple
  signify:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  tree: solve
  type: ClusterIP
  wrinkleFinding: credit
