Skip to content

Commit

Permalink
fix bracket in yaml and edit comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ykim-akamai committed Jun 12, 2024
1 parent 1a7710f commit 9c8b3a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
mv kubectl scripts/
curl -LO "https://github.com/projectcalico/calico/releases/download/v3.25.0/calicoctl-linux-amd64
curl -LO "https://github.com/projectcalico/calico/releases/download/v3.25.0/calicoctl-linux-amd64"
chmod +x calicoctl
mv calicoctl-linux-amd64 scripts/
Expand Down
7 changes: 5 additions & 2 deletions scripts/lke_calico_rules_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ fi

for ID in $CLUSTER_IDS; do
echo "Cluster ID: $ID"
echo "Applying Calico Rules to Nodes:"
./kubectl get nodes

# Download cluster configuration file
curl -sH "Authorization: Bearer $LINODE_TOKEN" \
"https://api.linode.com/v4/lke/clusters/$ID/kubeconfig" | jq -r '.[] | @base64d' > "${ID}_config.yaml"

# Export downloaded config file for
export KUBECONFIG="$(pwd)/${ID}_config.yaml"

echo "Applying Calico Rules to Nodes:"
./kubectl get nodes

./calicoctl-linux-amd64 patch kubecontrollersconfiguration default --patch='{"spec": {"controllers": {"node": {"hostEndpoint": {"autoCreate": "Enabled"}}}}}'

./calicoctl-linux-amd64 apply -f "$(pwd)/lke-policy.yaml"
Expand Down

0 comments on commit 9c8b3a6

Please sign in to comment.