-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(helm): Sidecar and Service Account Update (#509)
* updated templates for service account and deployment for workload identity and / or extra containers
- Loading branch information
1 parent
296a854
commit 18936a6
Showing
6 changed files
with
56 additions
and
17 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
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,16 @@ | ||
{{- if (include "sql-exporter.createServiceAccount" . ) }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "sql-exporter.serviceAccountName" . }} | ||
{{- with .Values.serviceAccount.annotations}} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
labels: | ||
{{- with .Values.serviceAccount.labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- include "sql-exporter.labels" . | nindent 4 }} | ||
automountServiceAccountToken: {{ default "false" .Values.serviceAccount.automountServiceAccountToken }} | ||
{{- end }} |
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
nameOverride: "" | ||
# -- String to fully override "sql-exporter.fullname" | ||
fullnameOverride: "" | ||
|
||
image: | ||
# -- Image repository | ||
repository: burningalchemist/sql_exporter | ||
|
@@ -11,10 +10,8 @@ image: | |
# -- Image tag | ||
# @default -- `appVersion` value from `Chart.yaml` | ||
tag: "" | ||
|
||
# -- Secrets with credentials to pull images from a private registry | ||
imagePullSecrets: [] | ||
|
||
service: | ||
# -- Service type | ||
type: ClusterIP | ||
|
@@ -23,30 +20,40 @@ service: | |
# -- Service labels | ||
labels: {} | ||
# -- Service annotations | ||
annotations: | ||
{} | ||
annotations: {} | ||
# example of prometheus usage | ||
# prometheus.io/scrape: "true" | ||
# prometheus.io/path: "/metrics" | ||
|
||
extraContainers: {} | ||
# - name: your_sidecar | ||
# image: gcr.io/your_image:your_tag | ||
# args: | ||
# resources: | ||
# requests:{} | ||
serviceAccount: | ||
# Specifies whether a service account should be created | ||
create: false | ||
# Annotations to add to the service account | ||
annotations: {} | ||
## example annotations ## | ||
# annotations: | ||
# iam.gke.io/gcp-service-account: [email protected] | ||
name: "" | ||
automountServiceAccountToken: false | ||
# -- Resource limits and requests for the application controller pods | ||
resources: | ||
{} | ||
resources: {} | ||
# limits: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
# requests: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
|
||
# -- Pod labels | ||
podLabels: {} | ||
# -- Pod annotations | ||
podAnnotations: {} | ||
|
||
# -- Pod security context | ||
podSecurityContext: | ||
{} | ||
podSecurityContext: {} | ||
# capabilities: | ||
# drop: | ||
# - ALL | ||
|
@@ -55,7 +62,6 @@ podSecurityContext: | |
# runAsUser: 1000 | ||
# @ignored | ||
securityContext: {} | ||
|
||
# Prometheus Operator values | ||
serviceMonitor: | ||
# -- Enable ServiceMonitor | ||
|
@@ -68,7 +74,6 @@ serviceMonitor: | |
# scrapeTimeout: 10s | ||
# -- ServiceMonitor metric relabelings | ||
metricRelabelings: {} | ||
|
||
# Additional env variables | ||
# - kind should be either Secret or ConfigMap | ||
# - name is the name of the Secret or ConfigMap that should be used | ||
|