Skip to content

Commit

Permalink
Fix AWS marketplace script
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Dymiński <dyminski@gmail.com>
  • Loading branch information
mateuszdyminski committed Oct 17, 2024
1 parent fe3eabf commit 69b1dee
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/modify_chart_for_aws_marketplace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
FILE="./stable/ksoc-plugins/values.yaml"

GCR_REGISTRY_NAME="us.gcr.io/ksoc-public"
FALCO_REGISTRY="docker.io/falcosecurity"
ECR_REGISTRY_NAME="public.ecr.aws/n8h5y2v5/rad-security"
ECR_PUBLIC_REGISTRY="public.ecr.aws/eks-distro/kubernetes"

ECR_REGISTRY_NAME="709825985650.dkr.ecr.us-east-1.amazonaws.com/ksoc-labs"
AWS_MARKETPLACE_REGISTRY_NAME="709825985650.dkr.ecr.us-east-1.amazonaws.com/ksoc-labs"

sed -i "s|$ECR_PUBLIC_REGISTRY|$ECR_REGISTRY_NAME|g" "$FILE"
sed -i "s|$GCR_REGISTRY_NAME|$ECR_REGISTRY_NAME|g" "$FILE"
sed -i "s|$FALCO_REGISTRY|$ECR_REGISTRY_NAME|g" "$FILE"

sed -i "s|$ECR_PUBLIC_REGISTRY|$AWS_MARKETPLACE_REGISTRY_NAME|g" "$FILE"
sed -i "s|$GCR_REGISTRY_NAME|$AWS_MARKETPLACE_REGISTRY_NAME|g" "$FILE"
sed -i "s|$ECR_REGISTRY_NAME|$AWS_MARKETPLACE_REGISTRY_NAME|g" "$FILE"
sed -i '/# --/d' "$FILE"

yq e -i '.eksAddon.enabled = true' $FILE
Expand Down

0 comments on commit 69b1dee

Please sign in to comment.