# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "collaboration.fullname" . }}-collaboration
  labels:
  {{- include "collaboration.labels" . | nindent 4 }}
data:
  AUTHENTICITY_OBSCENE_FRIES: {{ .Values.collaboration.authenticityObsceneFries |
    quote }}
  DAYBED_REPRESENTATIVE_NECKLACE: {{ .Values.collaboration.daybedRepresentativeNecklace
    | quote }}
  MALE: {{ .Values.collaboration.male | quote }}
  PROGRESSION_PEACH: {{ .Values.collaboration.progressionPeach | quote }}
  RIDING_BEAT_WARN: {{ .Values.collaboration.ridingBeatWarn | quote }}
  SUMMIT_PULLEY_BARBER: {{ .Values.collaboration.summitPulleyBarber | quote }}
  TOOTHPASTE: {{ .Values.collaboration.toothpaste | quote }}
  VEGETABLE_NEIGHBORLY_ISOLATION: {{ .Values.collaboration.vegetableNeighborlyIsolation
    | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "collaboration.fullname" . }}-collaboration
  labels:
  {{- include "collaboration.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: collaboration
spec:
  replicas: {{ .Values.collaboration.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: collaboration
      app.kubernetes.io/name: sport
    {{- include "collaboration.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: collaboration
        app.kubernetes.io/name: sport
      {{- include "collaboration.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 11d247ef029b244ec884b8b0fb3a9ef9f491c4fba036c62cef1037649bb740ef
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "collaboration.fullname" . }}-collaboration
        image: {{ .Values.collaboration.collaboration.image.repository }}:{{ .Values.collaboration.collaboration.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.collaboration.collaboration.imagePullPolicy }}
        name: collaboration
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.collaboration.collaboration.resources | nindent 10
          }}
        securityContext: {{- toYaml .Values.collaboration.collaboration.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "collaboration.fullname" . }}-collaboration
  labels:
  {{- include "collaboration.labels" . | nindent 4 }}
spec:
  type: {{ .Values.collaboration.type }}
  selector:
    app.kubernetes.io/instance: collaboration
    app.kubernetes.io/name: sport
  {{- include "collaboration.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.collaboration.ports | toYaml | nindent 2 -}}
collaboration:
  authenticityObsceneFries: appetizer
  collaboration:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  daybedRepresentativeNecklace: soot
  male: oat
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  progressionPeach: creationist
  replicas: 1
  ridingBeatWarn: ambition
  summitPulleyBarber: dibble
  toothpaste: booklet
  type: ClusterIP
  vegetableNeighborlyIsolation: officer
kubernetesClusterDomain: cluster.local
