Skip to content

Commit

Permalink
release: update manifests for v0.2.0 (#72)
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <[email protected]>
  • Loading branch information
aramase authored Jun 25, 2021
1 parent 34760da commit 83310b4
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
27 changes: 20 additions & 7 deletions deploy/aad-pi-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -38,41 +42,44 @@ subjects:
---
apiVersion: v1
data:
AZURE_ENVIRONMENT: <replace with Azure Environment Name>
AZURE_TENANT_ID: <replace with 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:
ports:
- 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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions examples/pod-with-init-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
2 changes: 1 addition & 1 deletion manifest_staging/deploy/aad-pi-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 83310b4

Please sign in to comment.