Skip to content

Commit 58c1e2d

Browse files
authored
feat(bootstrap): add azure workload identity chart (#823)
* feat(bootstrap): add azure workload identity chart Signed-off-by: David van der Spek <[email protected]> * remove bootstrap operator Signed-off-by: David van der Spek <[email protected]> --------- Signed-off-by: David van der Spek <[email protected]>
1 parent 678fdc2 commit 58c1e2d

27 files changed

+51
-7892
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: workload-identity-webhook
3+
repository: https://azure.github.io/azure-workload-identity/charts
4+
version: 1.1.0
5+
digest: sha256:2d27ad7632a460471478fbbd516bbce6e57835a5ad799557f5f0137c203a17d8
6+
generated: "2023-08-24T11:40:44.446348+02:00"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v2
2+
name: azure-workload-identity
3+
description: A Helm chart for Kubernetes
4+
type: application
5+
version: 0.1.2
6+
appVersion: "v1.1.0"
7+
dependencies:
8+
- name: workload-identity-webhook
9+
version: 1.1.0
10+
repository: https://azure.github.io/azure-workload-identity/charts
11+
condition: workload-identity-webhook.enabled
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Azure Workload Identity
2+
3+
Configures Azure Workload Identity to securely assume Azure credentials in-cluster.
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: plural.sh/v1alpha1
2+
kind: Dependencies
3+
metadata:
4+
description: installs the open source solution for azure workload identity
5+
spec:
6+
dependencies: []

bootstrap/helm/bootstrap-operator/templates/_helpers.tpl renamed to bootstrap/helm/azure-workload-identity/templates/_helpers.tpl

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{/*
22
Expand the name of the chart.
33
*/}}
4-
{{- define "bootstrap-operator.name" -}}
4+
{{- define "azure-workload-identity-plural.name" -}}
55
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
66
{{- end }}
77

@@ -10,7 +10,7 @@ Create a default fully qualified app name.
1010
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
1111
If release name contains chart name it will be used as a full name.
1212
*/}}
13-
{{- define "bootstrap-operator.fullname" -}}
13+
{{- define "azure-workload-identity-plural.fullname" -}}
1414
{{- if .Values.fullnameOverride }}
1515
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
1616
{{- else }}
@@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
2626
{{/*
2727
Create chart name and version as used by the chart label.
2828
*/}}
29-
{{- define "bootstrap-operator.chart" -}}
29+
{{- define "azure-workload-identity-plural.chart" -}}
3030
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
3131
{{- end }}
3232

3333
{{/*
3434
Common labels
3535
*/}}
36-
{{- define "bootstrap-operator.labels" -}}
37-
helm.sh/chart: {{ include "bootstrap-operator.chart" . }}
38-
{{ include "bootstrap-operator.controllerSelectorLabels" . }}
36+
{{- define "azure-workload-identity-plural.labels" -}}
37+
helm.sh/chart: {{ include "azure-workload-identity-plural.chart" . }}
38+
{{ include "azure-workload-identity-plural.selectorLabels" . }}
3939
{{- if .Chart.AppVersion }}
4040
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4141
{{- end }}
@@ -45,18 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
4545
{{/*
4646
Selector labels
4747
*/}}
48-
{{- define "bootstrap-operator.controllerSelectorLabels" -}}
49-
app.kubernetes.io/name: {{ include "bootstrap-operator.name" . }}-controller
48+
{{- define "azure-workload-identity-plural.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "azure-workload-identity-plural.name" . }}
5050
app.kubernetes.io/instance: {{ .Release.Name }}
5151
{{- end }}
5252

53-
5453
{{/*
5554
Create the name of the service account to use
5655
*/}}
57-
{{- define "bootstrap-operator.serviceAccountName" -}}
56+
{{- define "azure-workload-identity-plural.serviceAccountName" -}}
5857
{{- if .Values.serviceAccount.create }}
59-
{{- default (include "bootstrap-operator.fullname" .) .Values.serviceAccount.name }}
58+
{{- default (include "azure-workload-identity-plural.fullname" .) .Values.serviceAccount.name }}
6059
{{- else }}
6160
{{- default "default" .Values.serviceAccount.name }}
6261
{{- end }}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
workload-identity-webhook:
2+
enabled: true
3+
image:
4+
repository: mcr.microsoft.com/oss/azure/workload-identity/webhook
5+
pullPolicy: IfNotPresent
6+
release: v1.1.0
7+
resources:
8+
limits:
9+
cpu: 100m
10+
memory: 30Mi
11+
requests:
12+
cpu: 100m
13+
memory: 20Mi
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
workload-identity-webhook:
2+
azureTenantID: {{ .Context.TenantId }}

bootstrap/helm/bootstrap-operator/Chart.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)