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..72f0c774 --- /dev/null +++ b/eks-anywhere-common/Addons/Partner/Tetrate.io/namespace.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: istio-system + labels: + aws.conformance.vendor: tetrate.io + aws.conformance.vendor-solution: tetrate-istio-distribution + aws.conformance.vendor-solution-version: 1.18.1 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 <