# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "lackadaisical.fullname" . }}-lackadaisical
  labels:
  {{- include "lackadaisical.labels" . | nindent 4 }}
data:
  MAILING: {{ .Values.lackadaisical.mailing | quote }}
  MANNER_GUAVA_COLORLESSNESS: {{ .Values.lackadaisical.mannerGuavaColorlessness |
    quote }}
  PAYOFF: {{ .Values.lackadaisical.payoff | quote }}
  WOMANLY_BEE_RELAXATION: {{ .Values.lackadaisical.womanlyBeeRelaxation | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "lackadaisical.fullname" . }}-lackadaisical
  labels:
  {{- include "lackadaisical.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: lackadaisical
spec:
  replicas: {{ .Values.lackadaisical.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: lackadaisical
      app.kubernetes.io/name: cute
    {{- include "lackadaisical.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: lackadaisical
        app.kubernetes.io/name: cute
      {{- include "lackadaisical.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: f270527f685c1f7989b20c540b768f41b839879ab8aa5a761cb3400e8e1ece00
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "lackadaisical.fullname" . }}-lackadaisical
        image: {{ .Values.lackadaisical.lackadaisical.image.repository }}:{{ .Values.lackadaisical.lackadaisical.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.lackadaisical.lackadaisical.imagePullPolicy }}
        name: lackadaisical
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.lackadaisical.lackadaisical.resources | nindent 10
          }}
        securityContext: {{- toYaml .Values.lackadaisical.lackadaisical.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "lackadaisical.fullname" . }}-lackadaisical
  labels:
  {{- include "lackadaisical.labels" . | nindent 4 }}
spec:
  type: {{ .Values.lackadaisical.type }}
  selector:
    app.kubernetes.io/instance: lackadaisical
    app.kubernetes.io/name: cute
  {{- include "lackadaisical.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.lackadaisical.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
lackadaisical:
  lackadaisical:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  mailing: create
  mannerGuavaColorlessness: chateau
  payoff: equity
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  type: ClusterIP
  womanlyBeeRelaxation: cow
