# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "bolero.fullname" . }}-bolero
  labels:
  {{- include "bolero.labels" . | nindent 4 }}
data:
  DECORATION_IGNORANT_SUSPENSION: {{ .Values.bolero.decorationIgnorantSuspension
    | quote }}
  GRAND_VENOM: {{ .Values.bolero.grandVenom | quote }}
  HELICOPTER: {{ .Values.bolero.helicopter | quote }}
  LATE_ASTRONOMY_FIX: {{ .Values.bolero.lateAstronomyFix | quote }}
  MEANTIME: {{ .Values.bolero.meantime | quote }}
  PASSBOOK_BEWILDERED_HANDFUL: {{ .Values.bolero.passbookBewilderedHandful | quote
    }}
  PRONOUN: {{ .Values.bolero.pronoun | quote }}
  SLEUTH: {{ .Values.bolero.sleuth | quote }}
  STENCIL_SINUOSITY_WOBBLE: {{ .Values.bolero.stencilSinuosityWobble | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "bolero.fullname" . }}-bolero
  labels:
  {{- include "bolero.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: bolero
spec:
  replicas: {{ .Values.bolero.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: bolero
      app.kubernetes.io/name: dragon
    {{- include "bolero.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: bolero
        app.kubernetes.io/name: dragon
      {{- include "bolero.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: dffa4f7f9788e9135379cd0f8c7fc25564d10dfa94a299d832fd65952300b50f
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "bolero.fullname" . }}-bolero
        image: {{ .Values.bolero.bolero.image.repository }}:{{ .Values.bolero.bolero.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.bolero.bolero.imagePullPolicy }}
        name: bolero
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.bolero.bolero.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.bolero.bolero.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "bolero.fullname" . }}-bolero
  labels:
  {{- include "bolero.labels" . | nindent 4 }}
spec:
  type: {{ .Values.bolero.type }}
  selector:
    app.kubernetes.io/instance: bolero
    app.kubernetes.io/name: dragon
  {{- include "bolero.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.bolero.ports | toYaml | nindent 2 -}}
bolero:
  bolero:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  decorationIgnorantSuspension: illness
  grandVenom: terminal
  helicopter: ruddy
  lateAstronomyFix: ask
  meantime: pigsty
  passbookBewilderedHandful: warming
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  pronoun: sidewalk
  replicas: 1
  sleuth: deserted
  stencilSinuosityWobble: kennel
  type: ClusterIP
kubernetesClusterDomain: cluster.local
