diff --git a/Makefile b/Makefile index 272eeda..2ea9c95 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ REGISTRY ?= mcr.microsoft.com/oss/azure/aad-pod-managed-identity PROXY_IMAGE_NAME := proxy INIT_IMAGE_NAME := proxy-init WEBHOOK_IMAGE_NAME := webhook -IMAGE_VERSION ?= v0.1.0 +IMAGE_VERSION ?= v0.2.0 PROXY_IMAGE := $(REGISTRY)/$(PROXY_IMAGE_NAME):$(IMAGE_VERSION) INIT_IMAGE := $(REGISTRY)/$(INIT_IMAGE_NAME):$(IMAGE_VERSION) diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 33ffb94..cc07d88 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -5,7 +5,7 @@ kind: Kustomization images: - name: manager newName: mcr.microsoft.com/oss/azure/aad-pod-managed-identity/webhook - newTag: v0.1.0 + newTag: v0.2.0 configMapGenerator: - literals: - AZURE_TENANT_ID="${AZURE_TENANT_ID}" diff --git a/deploy/aad-pi-webhook.yaml b/deploy/aad-pi-webhook.yaml index ccbc6b3..c46ca9f 100644 --- a/deploy/aad-pi-webhook.yaml +++ b/deploy/aad-pi-webhook.yaml @@ -2,13 +2,15 @@ apiVersion: v1 kind: Namespace metadata: labels: - control-plane: controller-manager + mpod.aad-pod-identity.io/system: "true" name: aad-pi-webhook-system --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: creationTimestamp: null + labels: + mpod.aad-pod-identity.io/system: "true" name: aad-pi-webhook-manager-role rules: - apiGroups: @@ -26,6 +28,8 @@ rules: apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: + labels: + mpod.aad-pod-identity.io/system: "true" name: aad-pi-webhook-manager-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io @@ -38,16 +42,19 @@ subjects: --- apiVersion: v1 data: - AZURE_ENVIRONMENT: AZURE_TENANT_ID: kind: ConfigMap metadata: + labels: + mpod.aad-pod-identity.io/system: "true" name: aad-pi-webhook-config namespace: aad-pi-webhook-system --- apiVersion: v1 kind: Service metadata: + labels: + mpod.aad-pod-identity.io/system: "true" name: aad-pi-webhook-webhook-service namespace: aad-pi-webhook-system spec: @@ -55,24 +62,24 @@ spec: - port: 443 targetPort: 9443 selector: - control-plane: controller-manager + mpod.aad-pod-identity.io/system: "true" --- apiVersion: apps/v1 kind: Deployment metadata: labels: - control-plane: controller-manager + mpod.aad-pod-identity.io/system: "true" name: aad-pi-webhook-controller-manager namespace: aad-pi-webhook-system spec: replicas: 1 selector: matchLabels: - control-plane: controller-manager + mpod.aad-pod-identity.io/system: "true" template: metadata: labels: - control-plane: controller-manager + mpod.aad-pod-identity.io/system: "true" spec: containers: - args: @@ -82,7 +89,7 @@ spec: envFrom: - configMapRef: name: aad-pi-webhook-config - image: mcr.microsoft.com/oss/azure/aad-pod-managed-identity/webhook:v0.1.0 + image: mcr.microsoft.com/oss/azure/aad-pod-managed-identity/webhook:v0.2.0 imagePullPolicy: IfNotPresent name: manager ports: @@ -111,6 +118,8 @@ spec: apiVersion: cert-manager.io/v1alpha2 kind: Certificate metadata: + labels: + mpod.aad-pod-identity.io/system: "true" name: aad-pi-webhook-serving-cert namespace: aad-pi-webhook-system spec: @@ -125,6 +134,8 @@ spec: apiVersion: cert-manager.io/v1alpha2 kind: Issuer metadata: + labels: + mpod.aad-pod-identity.io/system: "true" name: aad-pi-webhook-selfsigned-issuer namespace: aad-pi-webhook-system spec: @@ -135,6 +146,8 @@ kind: MutatingWebhookConfiguration metadata: annotations: cert-manager.io/inject-ca-from: aad-pi-webhook-system/aad-pi-webhook-serving-cert + labels: + mpod.aad-pod-identity.io/system: "true" name: aad-pi-webhook-mutating-webhook-configuration webhooks: - admissionReviewVersions: diff --git a/examples/pod-with-init-container.yml b/examples/pod-with-init-container.yml index 2453727..cc1acc9 100644 --- a/examples/pod-with-init-container.yml +++ b/examples/pod-with-init-container.yml @@ -8,7 +8,7 @@ spec: serviceAccountName: old-sa initContainers: - name: init-networking - image: mcr.microsoft.com/oss/azure/aad-pod-managed-identity/proxy-init:v0.1.0 + image: mcr.microsoft.com/oss/azure/aad-pod-managed-identity/proxy-init:v0.2.0 imagePullPolicy: Always securityContext: capabilities: @@ -21,7 +21,7 @@ spec: ports: - containerPort: 80 - name: proxy - image: mcr.microsoft.com/oss/azure/aad-pod-managed-identity/proxy:v0.1.0 + image: mcr.microsoft.com/oss/azure/aad-pod-managed-identity/proxy:v0.2.0 imagePullPolicy: Always ports: - containerPort: 8000 diff --git a/manifest_staging/deploy/aad-pi-webhook.yaml b/manifest_staging/deploy/aad-pi-webhook.yaml index 53a0ab9..c46ca9f 100644 --- a/manifest_staging/deploy/aad-pi-webhook.yaml +++ b/manifest_staging/deploy/aad-pi-webhook.yaml @@ -89,7 +89,7 @@ spec: envFrom: - configMapRef: name: aad-pi-webhook-config - image: mcr.microsoft.com/oss/azure/aad-pod-managed-identity/webhook:v0.1.0 + image: mcr.microsoft.com/oss/azure/aad-pod-managed-identity/webhook:v0.2.0 imagePullPolicy: IfNotPresent name: manager ports: