# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "shoe.fullname" . }}-shoe
  labels:
  {{- include "shoe.labels" . | nindent 4 }}
data:
  BOAT_CADDY_GEOGRAPHY: {{ .Values.shoe.boatCaddyGeography | quote }}
  DETOUR_NECESSITY: {{ .Values.shoe.detourNecessity | quote }}
  EFFICIENCY_CANOPY_MILL: {{ .Values.shoe.efficiencyCanopyMill | quote }}
  GALLEY_POPCORN_CABINET: {{ .Values.shoe.galleyPopcornCabinet | quote }}
  ICEBERG_SING_SALUTE: {{ .Values.shoe.icebergSingSalute | quote }}
  ROLLER_FROG: {{ .Values.shoe.rollerFrog | quote }}
  UNIFORMITY_X-RATED: {{ .Values.shoe.uniformityXRated | quote }}
  WITHDRAW_SLEET_STAY: {{ .Values.shoe.withdrawSleetStay | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "shoe.fullname" . }}-shoe
  labels:
  {{- include "shoe.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: shoe
spec:
  replicas: {{ .Values.shoe.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: shoe
      app.kubernetes.io/name: background
    {{- include "shoe.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: shoe
        app.kubernetes.io/name: background
      {{- include "shoe.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: b453a07ea7247578597a7d9f2a17886b80b4eb8d0563362a5cc907a8ea367d7b
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "shoe.fullname" . }}-shoe
        image: {{ .Values.shoe.shoe.image.repository }}:{{ .Values.shoe.shoe.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.shoe.shoe.imagePullPolicy }}
        name: shoe
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.shoe.shoe.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.shoe.shoe.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "shoe.fullname" . }}-shoe
  labels:
  {{- include "shoe.labels" . | nindent 4 }}
spec:
  type: {{ .Values.shoe.type }}
  selector:
    app.kubernetes.io/instance: shoe
    app.kubernetes.io/name: background
  {{- include "shoe.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.shoe.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
shoe:
  boatCaddyGeography: assist
  detourNecessity: bin
  efficiencyCanopyMill: epauliere
  galleyPopcornCabinet: battery
  icebergSingSalute: riddle
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  rollerFrog: joint
  shoe:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  type: ClusterIP
  uniformityXRated: combat
  withdrawSleetStay: veto
