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..56f7d8db --- /dev/null +++ b/eks-anywhere-common/Addons/Partner/Tetrate.io/namespace.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: tetrate-istio-system + labels: + istio.io/rev: 1-18-1 + 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..c91198c6 --- /dev/null +++ b/eks-anywhere-common/Addons/Partner/Tetrate.io/tetrate-istiod-source.yaml @@ -0,0 +1,9 @@ +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: HelmRepository +metadata: + name: tetrate-istio-charts + namespace: flux-system +spec: + interval: 30s + timeout: 60s + url: https://tetratelabs.github.io/istio-helm 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..e66fc281 --- /dev/null +++ b/eks-anywhere-common/Addons/Partner/Tetrate.io/tetrate-istiod.yaml @@ -0,0 +1,32 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: tetrate-istiod + namespace: tetrate-istio-system +spec: + chart: + spec: + chart: tetrate-istio + reconcileStrategy: ChartVersion + sourceRef: + kind: HelmRepository + name: tetrate-istio-charts + namespace: flux-system + version: 1.18.1 + values: + tid-base: + defaultRevision: "" + revision: 1-18-1 + tid-cni: + revision: 1-18-1 + global: + istioNamespace: tetrate-istio-system + pilot: + env: + ENABLE_ENHANCED_RESOURCE_SCOPING: "true" # need this before v1.22 + meshConfig: + discoverySelectors: + - matchLabels: + aws.conformance.vendor: tetrate.io + aws.conformance.vendor-solution: tetrate-istio-distribution + 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..cfff5fad --- /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: tetrate-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 tetrate-istio-system + kubectl delete deployment custom-ingressgateway -n tetrate-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 <