# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "go.fullname" . }}-go
  labels:
  {{- include "go.labels" . | nindent 4 }}
data:
  BOULDER_ACADEMICS_WALNUT: {{ .Values.go.boulderAcademicsWalnut | quote }}
  CANDLE_FUNCTIONALITY_CLOISTERED: {{ .Values.go.candleFunctionalityCloistered |
    quote }}
  FRONT: {{ .Values.go.front | quote }}
  MOON_ITCHY_DIFFERENCE: {{ .Values.go.moonItchyDifference | quote }}
  OPPONENT_TALK: {{ .Values.go.opponentTalk | quote }}
  ROAST_TYPHOON_OBEY: {{ .Values.go.roastTyphoonObey | quote }}
  SPOIL_TEMPT: {{ .Values.go.spoilTempt | quote }}
  SUMMARIZE: {{ .Values.go.summarize | quote }}
  SYNERGY_FEDELINI_BOYHOOD: {{ .Values.go.synergyFedeliniBoyhood | quote }}
  TRAFFIC: {{ .Values.go.traffic | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "go.fullname" . }}-go
  labels:
  {{- include "go.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: go
spec:
  replicas: {{ .Values.go.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: go
      app.kubernetes.io/name: strengthen
    {{- include "go.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: go
        app.kubernetes.io/name: strengthen
      {{- include "go.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: bff0f0d6103a0e05c007b0e74d4597eea1cb95de898d71bfa6e59c15671b0602
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "go.fullname" . }}-go
        image: {{ .Values.go.go.image.repository }}:{{ .Values.go.go.image.tag | default
          .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.go.go.imagePullPolicy }}
        name: go
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.go.go.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.go.go.containerSecurityContext | nindent 10
          }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "go.fullname" . }}-go
  labels:
  {{- include "go.labels" . | nindent 4 }}
spec:
  type: {{ .Values.go.type }}
  selector:
    app.kubernetes.io/instance: go
    app.kubernetes.io/name: strengthen
  {{- include "go.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.go.ports | toYaml | nindent 2 -}}
go:
  boulderAcademicsWalnut: spurious
  candleFunctionalityCloistered: victory
  front: contest
  go:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  moonItchyDifference: news
  opponentTalk: chub
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  roastTyphoonObey: everyone
  spoilTempt: cheque
  summarize: distribution
  synergyFedeliniBoyhood: homeless
  traffic: lemur
  type: ClusterIP
kubernetesClusterDomain: cluster.local
