github.com/stefanmcshane/helm@v0.0.0-20221213002717-88a4a2c6e77d/pkg/lint/rules/testdata/v3-fail/templates/deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: {{ include "v3-fail.fullname" . }}
     5    labels:
     6      nope: {{ .Release.Time }}
     7      {{- include "v3-fail.labels" . | nindent 4 }}
     8  spec:
     9    replicas: {{ .Values.replicaCount }}
    10    selector:
    11      matchLabels:
    12        {{- include "v3-fail.selectorLabels" . | nindent 6 }}
    13    template:
    14      metadata:
    15        labels:
    16          {{- include "v3-fail.selectorLabels" . | nindent 8 }}
    17      spec:
    18      {{- with .Values.imagePullSecrets }}
    19        imagePullSecrets:
    20          {{- toYaml . | nindent 8 }}
    21      {{- end }}
    22        serviceAccountName: {{ include "v3-fail.serviceAccountName" . }}
    23        securityContext:
    24          {{- toYaml .Values.podSecurityContext | nindent 8 }}
    25        containers:
    26          - name: {{ .Chart.Name }}
    27            securityContext:
    28              {{- toYaml .Values.securityContext | nindent 12 }}
    29            image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
    30            imagePullPolicy: {{ .Values.image.pullPolicy }}
    31            ports:
    32              - name: http
    33                containerPort: 80
    34                protocol: TCP
    35            livenessProbe:
    36              httpGet:
    37                path: /
    38                port: http
    39            readinessProbe:
    40              httpGet:
    41                path: /
    42                port: http
    43            resources:
    44              {{- toYaml .Values.resources | nindent 12 }}
    45        {{- with .Values.nodeSelector }}
    46        nodeSelector:
    47          {{- toYaml . | nindent 8 }}
    48        {{- end }}
    49      {{- with .Values.affinity }}
    50        affinity:
    51          {{- toYaml . | nindent 8 }}
    52      {{- end }}
    53      {{- with .Values.tolerations }}
    54        tolerations:
    55          {{- toYaml . | nindent 8 }}
    56      {{- end }}