# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "late.fullname" . }}-late
  labels:
  {{- include "late.labels" . | nindent 4 }}
data:
  ACCUSATION: {{ .Values.late.accusation | quote }}
  ACTOR_REPRESENTATIVE: {{ .Values.late.actorRepresentative | quote }}
  EYRIE_FREIGHT: {{ .Values.late.eyrieFreight | quote }}
  REPORTER_WAGON: {{ .Values.late.reporterWagon | quote }}
  SUBSTITUTION_WOOZY_AFFINITY: {{ .Values.late.substitutionWoozyAffinity | quote
    }}
  VELODROME_SPECIFY: {{ .Values.late.velodromeSpecify | quote }}
  WRIST_HEATER_CUFF-LINK: {{ .Values.late.wristHeaterCuffLink | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "late.fullname" . }}-late
  labels:
  {{- include "late.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: late
spec:
  replicas: {{ .Values.late.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: late
      app.kubernetes.io/name: sausage
    {{- include "late.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: late
        app.kubernetes.io/name: sausage
      {{- include "late.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: c0b2dd1e631f66f0f9348c41e186e5e8ae8f7d271298932971adeda315b99b27
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "late.fullname" . }}-late
        image: {{ .Values.late.late.image.repository }}:{{ .Values.late.late.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.late.late.imagePullPolicy }}
        name: late
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.late.late.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.late.late.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "late.fullname" . }}-late
  labels:
  {{- include "late.labels" . | nindent 4 }}
spec:
  type: {{ .Values.late.type }}
  selector:
    app.kubernetes.io/instance: late
    app.kubernetes.io/name: sausage
  {{- include "late.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.late.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
late:
  accusation: overconfident
  actorRepresentative: puggle
  eyrieFreight: rat
  late:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  reporterWagon: nurture
  substitutionWoozyAffinity: approve
  type: ClusterIP
  velodromeSpecify: outlook
  wristHeaterCuffLink: signature
