diff --git a/README.md b/README.md index 2d4c752..8417bc8 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,13 @@ This repository is used to create zarf packages of multiple add-ons for EKS. The main intention is to be used with our terraform module [terraform-aws-eks](https://github.com/defenseunicorns/terraform-aws-eks). These Zarf packages will consume resources staged in AWS automatically or with Zarf you can override the values using a values.yaml file, providing your own values with a VALUES_OVERRIDES Zarf variable for each package. +# Utility Dependencies + + - [Zarf](https://github.com/zarf-dev/zarf) + - [UDS-cli](https://github.com/defenseunicorns/uds-cli) + - [jq](https://stedolan.github.io/jq/) + - [aws-cli](https://aws.amazon.com/cli/) + # Example of how to use the Zarf package with arbitrary overrides using zarf dev The example below will template the output with arbitrary overrides akin to a `helm template` command. diff --git a/packages/aws-load-balancer-controller/zarf.yaml b/packages/aws-load-balancer-controller/zarf.yaml index 2f676f7..f4ef3bb 100644 --- a/packages/aws-load-balancer-controller/zarf.yaml +++ b/packages/aws-load-balancer-controller/zarf.yaml @@ -43,7 +43,7 @@ components: darwin: bash before: # get the cluster name - - cmd: kubectl config current-context | awk -F'[:/]' '{print $NF}' + - cmd: uds zarf tools kubectl config current-context | awk -F'[:/]' '{print $NF}' setVariables: - name: CLUSTER_NAME - cmd: aws eks describe-cluster --name ${ZARF_VAR_CLUSTER_NAME} --query 'cluster.endpoint' --output text | cut -d . -f3 diff --git a/packages/aws-node-termination-handler/zarf.yaml b/packages/aws-node-termination-handler/zarf.yaml index 5d5591b..4b0141b 100644 --- a/packages/aws-node-termination-handler/zarf.yaml +++ b/packages/aws-node-termination-handler/zarf.yaml @@ -47,7 +47,7 @@ components: darwin: bash before: # get the cluster name - - cmd: kubectl config current-context | awk -F'[:/]' '{print $NF}' + - cmd: uds zarf tools kubectl config current-context | awk -F'[:/]' '{print $NF}' setVariables: - name: CLUSTER_NAME - cmd: aws eks describe-cluster --name ${ZARF_VAR_CLUSTER_NAME} --query 'cluster.endpoint' --output text | cut -d . -f3 diff --git a/packages/cluster-autoscaler/zarf.yaml b/packages/cluster-autoscaler/zarf.yaml index 55e4d17..86a668c 100644 --- a/packages/cluster-autoscaler/zarf.yaml +++ b/packages/cluster-autoscaler/zarf.yaml @@ -47,7 +47,7 @@ components: darwin: bash before: # get the cluster name - - cmd: kubectl config current-context | awk -F'[:/]' '{print $NF}' + - cmd: uds zarf tools kubectl config current-context | awk -F'[:/]' '{print $NF}' setVariables: - name: CLUSTER_NAME - cmd: aws eks describe-cluster --name ${ZARF_VAR_CLUSTER_NAME} --query 'cluster.endpoint' --output text | cut -d . -f3 diff --git a/packages/external-secrets/zarf.yaml b/packages/external-secrets/zarf.yaml index bc69ca8..43a2a64 100644 --- a/packages/external-secrets/zarf.yaml +++ b/packages/external-secrets/zarf.yaml @@ -39,7 +39,7 @@ components: darwin: bash before: # get the cluster name - - cmd: kubectl config current-context | awk -F'[:/]' '{print $NF}' + - cmd: uds zarf tools kubectl config current-context | awk -F'[:/]' '{print $NF}' setVariables: - name: CLUSTER_NAME - cmd: | diff --git a/packages/storageclass/zarf.yaml b/packages/storageclass/zarf.yaml index 3baa70f..c91c17a 100644 --- a/packages/storageclass/zarf.yaml +++ b/packages/storageclass/zarf.yaml @@ -42,7 +42,7 @@ components: darwin: bash before: # get the cluster name - - cmd: kubectl config current-context | awk -F'[:/]' '{print $NF}' + - cmd: uds zarf tools kubectl config current-context | awk -F'[:/]' '{print $NF}' setVariables: - name: CLUSTER_NAME - cmd: |