-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move reports service to seperate deployment * use enterprise prefix for helper templates * add rbacAuth container back to api pod * make reports-worker fullname match values key for the service * update unit tests * bump chart version * fix reports worker descriptions & alphabetize the top level keys --------- Signed-off-by: Brady Todhunter <[email protected]>
- Loading branch information
1 parent
366c5f6
commit a388676
Showing
20 changed files
with
705 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{{- $component := "reportsWorker" -}} | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ template "enterprise.reportsWorker.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: {{- include "enterprise.common.labels" (merge (dict "component" $component) .) | nindent 4 }} | ||
annotations: {{- include "enterprise.common.annotations" (merge (dict "component" $component) .) | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: {{- include "enterprise.common.matchLabels" (merge (dict "component" $component) .) | nindent 6 }} | ||
replicas: {{ .Values.reportsWorker.replicaCount }} | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: {{- include "enterprise.common.labels" (merge (dict "component" $component) .) | nindent 8 }} | ||
annotations: {{- include "enterprise.common.annotations" (merge (dict "component" $component "nil" true) .) | nindent 8 }} | ||
{{- if and (not .Values.injectSecretsViaEnv) (not .Values.useExistingSecrets) }} | ||
checksum/secrets: {{ include (print $.Template.BasePath "/anchore_secret.yaml") . | sha256sum }} | ||
{{- end }} | ||
checksum/enterprise-config: {{ tpl (print $.Files.BasePath "/default_config.yaml") . | sha256sum }} | ||
spec: | ||
{{- include "enterprise.common.podSpec" (merge (dict "component" $component) .) | indent 6 }} | ||
volumes: {{- include "enterprise.common.volumes" . | nindent 8 }} | ||
containers: | ||
{{- if .Values.cloudsql.enabled }} | ||
{{- include "enterprise.common.cloudsqlContainer" . | nindent 8 }} | ||
{{- end }} | ||
- name: "{{ .Chart.Name }}-{{ $component | lower }}" | ||
image: {{ .Values.image }} | ||
imagePullPolicy: {{ .Values.imagePullPolicy }} | ||
{{- with .Values.containerSecurityContext }} | ||
securityContext: | ||
{{ toYaml . | nindent 12 }} | ||
{{- end }} | ||
command: ["/bin/sh", "-c"] | ||
args: | ||
- {{ print (include "enterprise.common.dockerEntrypoint" .) }} reports_worker | ||
ports: | ||
- containerPort: {{ .Values.reportsWorker.service.port }} | ||
name: {{ $component | lower }} | ||
envFrom: {{- include "enterprise.common.envFrom" . | nindent 12 }} | ||
env: {{- include "enterprise.common.environment" (merge (dict "component" $component) .) | nindent 12 }} | ||
volumeMounts: {{- include "enterprise.common.volumeMounts" . | nindent 12 }} | ||
livenessProbe: {{- include "enterprise.common.livenessProbe" (merge (dict "component" $component) .) | nindent 12 }} | ||
readinessProbe: {{- include "enterprise.common.readinessProbe" (merge (dict "component" $component) .) | nindent 12 }} | ||
{{- with .Values.reportsWorker.resources }} | ||
resources: {{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "enterprise.reportsWorker.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: {{- include "enterprise.common.labels" (merge (dict "component" $component) .) | nindent 4 }} | ||
annotations: {{- include "enterprise.common.annotations" (merge (dict "component" $component) .) | nindent 4 }} | ||
spec: | ||
type: {{ .Values.reportsWorker.service.type }} | ||
ports: | ||
- name: {{ $component | lower }} | ||
port: {{ .Values.reportsWorker.service.port }} | ||
targetPort: {{ .Values.reportsWorker.service.port }} | ||
protocol: TCP | ||
{{ include "enterprise.service.nodePort" (merge (dict "component" $component) .) }} | ||
selector: | ||
app.kubernetes.io/name: {{ template "enterprise.fullname" . }} | ||
app.kubernetes.io/component: {{ $component | lower }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.