Skip to content

Commit

Permalink
chart/service-deployment add support for azure (closes #111)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesarems committed Sep 14, 2023
1 parent 6e1819d commit 09a827a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.1.43 (2023-09-14)
---------------------------
charts/service-deployment: Add support for Azure managed identity (#111)

Version 0.1.42 (2023-09-14)
---------------------------
charts/daemonset: Add azure workload identity label (#114)
Expand Down
6 changes: 3 additions & 3 deletions charts/service-deployment/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ dependencies:
version: 0.1.0
- name: cloudserviceaccount
repository: https://snowplow-devops.github.io/helm-charts
version: 0.2.0
digest: sha256:9deff1a4eb1a923a1ff362a28e27e86945c843c50945797618d3e59e0429c4ad
generated: "2022-11-01T10:50:08.896834Z"
version: 0.3.0
digest: sha256:75f92234ea471c522e2cd8072bde78e2ff3b5ecf1dbdc43d2b86ed7dcdf9ec08
generated: "2023-09-14T14:33:02.109845+01:00"
4 changes: 2 additions & 2 deletions charts/service-deployment/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: service-deployment
description: A Helm Chart to setup a generic deployment with optional service/hpa bindings
version: 0.5.0
version: 0.6.0
icon: https://raw.githubusercontent.com/snowplow-devops/helm-charts/master/docs/logo/snowplow.png
home: https://github.com/snowplow-devops/helm-charts
sources:
Expand All @@ -18,5 +18,5 @@ dependencies:
version: 0.1.0
repository: "https://snowplow-devops.github.io/helm-charts"
- name: cloudserviceaccount
version: 0.2.0
version: 0.3.0
repository: "https://snowplow-devops.github.io/helm-charts"
3 changes: 2 additions & 1 deletion charts/service-deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ helm delete service-deployment

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| global.cloud | string | `""` | Cloud specific bindings (options: aws, gcp) |
| global.cloud | string | `""` | Cloud specific bindings (options: aws, gcp, azure) |
| fullnameOverride | string | `""` | Overrides the full-name given to the deployment resources (default: .Release.Name) |
| image.repository | string | `"nginx"` | |
| image.tag | string | `"latest"` | |
Expand Down Expand Up @@ -82,3 +82,4 @@ helm delete service-deployment
| cloudserviceaccount.name | string | `"snowplow-sd-service-account"` | Name of the service-account to create |
| cloudserviceaccount.aws.roleARN | string | `""` | IAM Role ARN to bind to the k8s service account |
| cloudserviceaccount.gcp.serviceAccount | string | `""` | Service Account email to bind to the k8s service account |
| cloudserviceaccount.azure.managedIdentityId | string | `""` | Workload managed identity id to bind to the k8s service account |
3 changes: 3 additions & 0 deletions charts/service-deployment/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
metadata:
labels:
app: {{ include "app.fullname" . }}
{{- if eq .Values.global.cloud "azure" }}
azure.workload.identity/use: "true"
{{- end }}
annotations:
{{- if .Values.configMaps }}
{{- range $v := .Values.configMaps }}
Expand Down
5 changes: 4 additions & 1 deletion charts/service-deployment/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
global:
# -- Cloud specific bindings (options: aws, gcp)
# -- Cloud specific bindings (options: aws, gcp , azure)
cloud: ""

# -- Overrides the full-name given to the deployment resources (default: .Release.Name)
Expand Down Expand Up @@ -114,6 +114,9 @@ cloudserviceaccount:
gcp:
# -- Service Account email to bind to the k8s service account
serviceAccount: ""
azure:
# -- Workload managed identity id to bind to the k8s service account
managedIdentityId: ""

deployment:
# -- When enabled, disables the HPA and scales the deployment to zero replicas
Expand Down

0 comments on commit 09a827a

Please sign in to comment.