From 05d46b29224e1921d6f77f5caf8c400419034420 Mon Sep 17 00:00:00 2001 From: zirain Date: Tue, 2 Apr 2024 11:46:17 +0800 Subject: [PATCH 1/2] Adding Tetrate Istio Distribution --- .../Addons/Partner/Tetrate.io/namespace.yaml | 7 + .../Tetrate.io/tetrate-istiod-source.yaml | 8 + .../Partner/Tetrate.io/tetrate-istiod.yaml | 16 ++ .../tetrate-istiod-testjob-script.yaml | 143 ++++++++++++++++++ .../Tetrate.io/tetrate-istiod-testjob.yaml | 28 ++++ .../Tetrate.io/tetrate-testjob-role.yaml | 29 ++++ 6 files changed, 231 insertions(+) create mode 100644 eks-anywhere-common/Addons/Partner/Tetrate.io/namespace.yaml create mode 100644 eks-anywhere-common/Addons/Partner/Tetrate.io/tetrate-istiod-source.yaml create mode 100644 eks-anywhere-common/Addons/Partner/Tetrate.io/tetrate-istiod.yaml create mode 100644 eks-anywhere-common/Testers/Tetrate.io/tetrate-istiod-testjob-script.yaml create mode 100644 eks-anywhere-common/Testers/Tetrate.io/tetrate-istiod-testjob.yaml create mode 100644 eks-anywhere-common/Testers/Tetrate.io/tetrate-testjob-role.yaml diff --git a/eks-anywhere-common/Addons/Partner/Tetrate.io/namespace.yaml b/eks-anywhere-common/Addons/Partner/Tetrate.io/namespace.yaml new file mode 100644 index 00000000..b3085ef7 --- /dev/null +++ b/eks-anywhere-common/Addons/Partner/Tetrate.io/namespace.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: istio-system + labels: + aws.conformance.vendor: tetrate.io + aws.conformance.vendor-solution: tetrate-istio-distribution diff --git a/eks-anywhere-common/Addons/Partner/Tetrate.io/tetrate-istiod-source.yaml b/eks-anywhere-common/Addons/Partner/Tetrate.io/tetrate-istiod-source.yaml new file mode 100644 index 00000000..f998e18c --- /dev/null +++ b/eks-anywhere-common/Addons/Partner/Tetrate.io/tetrate-istiod-source.yaml @@ -0,0 +1,8 @@ +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: HelmRepository +metadata: + name: tetrate-istio-charts + namespace: flux-system +spec: + interval: 30s + url: https://tetratelabs.github.io/helm-charts diff --git a/eks-anywhere-common/Addons/Partner/Tetrate.io/tetrate-istiod.yaml b/eks-anywhere-common/Addons/Partner/Tetrate.io/tetrate-istiod.yaml new file mode 100644 index 00000000..7c0494aa --- /dev/null +++ b/eks-anywhere-common/Addons/Partner/Tetrate.io/tetrate-istiod.yaml @@ -0,0 +1,16 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: tetrate-istiod + namespace: istio-system +spec: + chart: + spec: + chart: istiod + reconcileStrategy: ChartVersion + sourceRef: + kind: HelmRepository + name: tetrate-istio-charts + namespace: flux-system + version: 1.18.1 + interval: 1m0s diff --git a/eks-anywhere-common/Testers/Tetrate.io/tetrate-istiod-testjob-script.yaml b/eks-anywhere-common/Testers/Tetrate.io/tetrate-istiod-testjob-script.yaml new file mode 100644 index 00000000..5ca166db --- /dev/null +++ b/eks-anywhere-common/Testers/Tetrate.io/tetrate-istiod-testjob-script.yaml @@ -0,0 +1,143 @@ + +apiVersion: v1 +kind: ConfigMap +metadata: + name: tetrate-tetsjob-script + namespace: istio-system +data: + run-functional-tests.sh: |- + #!/bin/sh + + # Cleanup function to remove resources + cleanup() { + echo "Cleaning up resources..." + kubectl delete gateway httpbin-gateway -n istio-system + kubectl delete deployment custom-ingressgateway -n istio-system + # Any additional cleanup commands go here + echo "Cleanup completed." + } + + # Trap statement to ensure cleanup runs on exit of the script + trap cleanup EXIT + + + error_exit() + { + echo "Test Failed: $1" 1>&2 + exit 1 + } + + deploy_custom_gateway() { + # Create a custom Istio ingress gateway + cat < Date: Tue, 2 Apr 2024 21:26:51 +0800 Subject: [PATCH 2/2] add version Signed-off-by: zirain --- eks-anywhere-common/Addons/Partner/Tetrate.io/namespace.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/eks-anywhere-common/Addons/Partner/Tetrate.io/namespace.yaml b/eks-anywhere-common/Addons/Partner/Tetrate.io/namespace.yaml index b3085ef7..72f0c774 100644 --- a/eks-anywhere-common/Addons/Partner/Tetrate.io/namespace.yaml +++ b/eks-anywhere-common/Addons/Partner/Tetrate.io/namespace.yaml @@ -5,3 +5,4 @@ metadata: labels: aws.conformance.vendor: tetrate.io aws.conformance.vendor-solution: tetrate-istio-distribution + aws.conformance.vendor-solution-version: 1.18.1