# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "revascularization.fullname" . }}-revascularization
  labels:
  {{- include "revascularization.labels" . | nindent 4 }}
data:
  CLONE_MANAGEMENT: {{ .Values.revascularization.cloneManagement | quote }}
  DISTANCE_HABITAT_OBOE: {{ .Values.revascularization.distanceHabitatOboe | quote
    }}
  GAMMA-RAY: {{ .Values.revascularization.gammaRay | quote }}
  GLOW_STAIN: {{ .Values.revascularization.glowStain | quote }}
  HIGHFALUTIN: {{ .Values.revascularization.highfalutin | quote }}
  JOURNALIST_DRAGSTER: {{ .Values.revascularization.journalistDragster | quote }}
  OVERRATED_BRICK_EGGPLANT: {{ .Values.revascularization.overratedBrickEggplant |
    quote }}
  PICTURESQUE_FLASH: {{ .Values.revascularization.picturesqueFlash | quote }}
  PINWORM_VISUAL_POSSIBLE: {{ .Values.revascularization.pinwormVisualPossible | quote
    }}
  SIR_LOSE_GLIDER: {{ .Values.revascularization.sirLoseGlider | quote }}
  STAGE_CURSE: {{ .Values.revascularization.stageCurse | quote }}
  WEEKENDER: {{ .Values.revascularization.weekender | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "revascularization.fullname" . }}-revascularization
  labels:
  {{- include "revascularization.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: revascularization
spec:
  replicas: {{ .Values.revascularization.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: revascularization
      app.kubernetes.io/name: container
    {{- include "revascularization.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: revascularization
        app.kubernetes.io/name: container
      {{- include "revascularization.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 7209c0471f9ce263f5e74ff6050f65692736a05a898b14f6471d4f2dcf89672e
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "revascularization.fullname" . }}-revascularization
        image: {{ .Values.revascularization.revascularization.image.repository }}:{{ .Values.revascularization.revascularization.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.revascularization.revascularization.imagePullPolicy
          }}
        name: revascularization
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.revascularization.revascularization.resources | nindent
          10 }}
        securityContext: {{- toYaml .Values.revascularization.revascularization.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "revascularization.fullname" . }}-revascularization
  labels:
  {{- include "revascularization.labels" . | nindent 4 }}
spec:
  type: {{ .Values.revascularization.type }}
  selector:
    app.kubernetes.io/instance: revascularization
    app.kubernetes.io/name: container
  {{- include "revascularization.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.revascularization.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
revascularization:
  cloneManagement: vintage
  distanceHabitatOboe: bass
  gammaRay: independent
  glowStain: outrun
  highfalutin: diplomacy
  journalistDragster: jackfruit
  overratedBrickEggplant: dangerous
  picturesqueFlash: venison
  pinwormVisualPossible: help
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  revascularization:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  sirLoseGlider: tawdry
  stageCurse: cantaloupe
  type: ClusterIP
  weekender: invention
