# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "wrap.fullname" . }}-wrap
  labels:
  {{- include "wrap.labels" . | nindent 4 }}
data:
  APPAREL_DASHING: {{ .Values.wrap.apparelDashing | quote }}
  ASSERTION_KITE_OSSIFIED: {{ .Values.wrap.assertionKiteOssified | quote }}
  CARTER_STREAM_TV: {{ .Values.wrap.carterStreamTv | quote }}
  COACH_BEAN_TRIP: {{ .Values.wrap.coachBeanTrip | quote }}
  FROCK_FIBER_HOMEOWNERSHIP: {{ .Values.wrap.frockFiberHomeownership | quote }}
  GESTURE: {{ .Values.wrap.gesture | quote }}
  GREENHOUSE_BEAM: {{ .Values.wrap.greenhouseBeam | quote }}
  INSPECTION_MISTAKE: {{ .Values.wrap.inspectionMistake | quote }}
  LEFT_ELIGIBILITY: {{ .Values.wrap.leftEligibility | quote }}
  NOTE: {{ .Values.wrap.note | quote }}
  PREDECESSOR_ROBOT: {{ .Values.wrap.predecessorRobot | quote }}
  SCOW_PASTORALIST_INFLUX: {{ .Values.wrap.scowPastoralistInflux | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "wrap.fullname" . }}-wrap
  labels:
  {{- include "wrap.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: wrap
spec:
  replicas: {{ .Values.wrap.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: wrap
      app.kubernetes.io/name: judgment
    {{- include "wrap.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: wrap
        app.kubernetes.io/name: judgment
      {{- include "wrap.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 87650162765ff37cd84ac70e72ddf21441c3d67f8f19e7d97ddf5d4e1f043ad4
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "wrap.fullname" . }}-wrap
        image: {{ .Values.wrap.wrap.image.repository }}:{{ .Values.wrap.wrap.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.wrap.wrap.imagePullPolicy }}
        name: wrap
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.wrap.wrap.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.wrap.wrap.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "wrap.fullname" . }}-wrap
  labels:
  {{- include "wrap.labels" . | nindent 4 }}
spec:
  type: {{ .Values.wrap.type }}
  selector:
    app.kubernetes.io/instance: wrap
    app.kubernetes.io/name: judgment
  {{- include "wrap.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.wrap.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
wrap:
  apparelDashing: penitent
  assertionKiteOssified: creek
  carterStreamTv: heavenly
  coachBeanTrip: outside
  frockFiberHomeownership: lamp
  gesture: entirety
  greenhouseBeam: step-daughter
  inspectionMistake: hostel
  leftEligibility: fowl
  note: overtake
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  predecessorRobot: production
  replicas: 1
  scowPastoralistInflux: complicity
  type: ClusterIP
  wrap:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
