From 249ccbc9a520402c2263fea03880bcaa5ae12ac3 Mon Sep 17 00:00:00 2001 From: Amith KK Date: Fri, 29 Nov 2024 17:13:02 +0530 Subject: [PATCH 1/2] Add CRD link that works on clusters >v1.22 --- docs/how-tos/prevent-agic-from-overwriting.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/how-tos/prevent-agic-from-overwriting.md b/docs/how-tos/prevent-agic-from-overwriting.md index 80a0bb3dc..59d4646a5 100644 --- a/docs/how-tos/prevent-agic-from-overwriting.md +++ b/docs/how-tos/prevent-agic-from-overwriting.md @@ -61,11 +61,17 @@ Apply the Helm changes: 1. Ensure the `AzureIngressProhibitedTarget` CRD is installed with: - ```bash - kubectl apply -f https://raw.githubusercontent.com/Azure/application-gateway-kubernetes-ingress/ae695ef9bd05c8b708cedf6ff545595d0b7022dc/crds/AzureIngressProhibitedTarget.yaml - ``` - - 2. Update Helm: + - If your kubernetes cluster is >= `1.16` + ```bash + kubectl apply -f https://raw.githubusercontent.com/Azure/application-gateway-kubernetes-ingress/refs/heads/master/crds/AzureIngressProhibitedTarget-v1-CRD-v1.yaml + ``` + - If your kubernetes cluster is <= `1.16` + ```bash + kubectl apply -f https://raw.githubusercontent.com/Azure/application-gateway-kubernetes-ingress/refs/heads/master/crds/AzureIngressProhibitedTarget-v1-CRD-v1beta1.yaml + ``` + + + 3. Update Helm: ```bash helm upgrade \ From ee42e754839bd44494bd880c4fa0e7693d88ccf6 Mon Sep 17 00:00:00 2001 From: Amith KK Date: Fri, 29 Nov 2024 17:17:28 +0530 Subject: [PATCH 2/2] Fix spacing --- docs/how-tos/prevent-agic-from-overwriting.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/how-tos/prevent-agic-from-overwriting.md b/docs/how-tos/prevent-agic-from-overwriting.md index 59d4646a5..0715fad65 100644 --- a/docs/how-tos/prevent-agic-from-overwriting.md +++ b/docs/how-tos/prevent-agic-from-overwriting.md @@ -61,16 +61,14 @@ Apply the Helm changes: 1. Ensure the `AzureIngressProhibitedTarget` CRD is installed with: - - If your kubernetes cluster is >= `1.16` + - If your kubernetes cluster is >= `v1.16` ```bash kubectl apply -f https://raw.githubusercontent.com/Azure/application-gateway-kubernetes-ingress/refs/heads/master/crds/AzureIngressProhibitedTarget-v1-CRD-v1.yaml ``` - - If your kubernetes cluster is <= `1.16` + - If your kubernetes cluster is < `v1.16` ```bash kubectl apply -f https://raw.githubusercontent.com/Azure/application-gateway-kubernetes-ingress/refs/heads/master/crds/AzureIngressProhibitedTarget-v1-CRD-v1beta1.yaml ``` - - 3. Update Helm: ```bash