github.com/replicatedhq/ship@v0.55.0/integration/failing/init/jaeger-helm/expected/.ship/upstream/templates/cassandra-schema-job.yaml (about)

     1  {{- if .Values.collector.enabled -}}
     2  {{- if eq .Values.storage.type "cassandra" -}}
     3  apiVersion: batch/v1
     4  kind: Job
     5  metadata:
     6    name: {{ template "jaeger.fullname" . }}-cassandra-schema
     7    labels:
     8      app: {{ template "jaeger.name" . }}
     9      jaeger-infra: cassandra-schema-job
    10      chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    11      component: cassandra-schema
    12      heritage: {{ .Release.Service }}
    13      release: {{ .Release.Name }}
    14  {{- if .Values.schema.annotations }}
    15    annotations:
    16  {{ toYaml .Values.schema.annotations | indent 4 }}
    17  {{- end }}
    18  spec:
    19    activeDeadlineSeconds: 120
    20    template:
    21      metadata:
    22        name: {{ template "jaeger.fullname" . }}-cassandra-schema
    23  {{- if .Values.schema.podLabels }}
    24        labels:
    25  {{ toYaml .Values.schema.podLabels | indent 8 }}
    26  {{- end }}
    27      spec:
    28        containers:
    29        - name: {{ template "jaeger.fullname" . }}-cassandra-schema
    30          image: {{ .Values.schema.image }}:{{ .Values.tag }}
    31          imagePullPolicy: {{ .Values.schema.pullPolicy }}
    32          env:
    33          - name: CQLSH_HOST
    34            valueFrom:
    35              configMapKeyRef:
    36                name: {{ template "jaeger.fullname" . }}
    37                key: cassandra.servers
    38          - name: MODE
    39            valueFrom:
    40              configMapKeyRef:
    41                name: {{ template "jaeger.fullname" . }}
    42                key: cassandra.schema.mode
    43          - name: DATACENTER
    44            valueFrom:
    45              configMapKeyRef:
    46                name: {{ template "jaeger.fullname" . }}
    47                key: cassandra.datacenter.name
    48          - name: CASSANDRA_PORT
    49            valueFrom:
    50              configMapKeyRef:
    51                name: {{ template "jaeger.fullname" . }}
    52                key: cassandra.port
    53          resources:
    54  {{ toYaml .Values.schema.resources | indent 10 }}
    55        restartPolicy: OnFailure
    56  {{- end -}}
    57  {{- end -}}