Skip to content

Commit

Permalink
update old module path
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Wilkerson <mwilkerson@hashicorp.com>
  • Loading branch information
wilkermichael committed Feb 7, 2024
1 parent 03869e4 commit f6cfbc7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testing/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ This is for building and testing argo rollout integrations with Consul. For simp
# Prerequisites
1. Kind is installed on the machine
2. Helm is installed on the machine
3. Kubectl is installed on the machine 5
3. Kubectl is installed on the machine
4. Argo kubectl extension is installed on the machine
5. The plugin binary is in a directory on the machine
6. Update any of the necessary variables in the `Makefile` to match your environment
6. yq is installed, this is required for running some scripts
7. Update any of the necessary variables in the `Makefile` to match your environment

# Verify v1 to v2 rollout
1. Run `make setup` to setup the system with the static-server/client, consul and argo. This will also build the latest plugin.
Expand Down
1 change: 1 addition & 0 deletions testing/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,4 @@ install-required:
brew install argoproj/tap/kubectl-argo-rollouts; \
brew install helm; \
brew install kind; \
brew install yq; \
14 changes: 14 additions & 0 deletions testing/scripts/update-kind-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Check if the correct number of arguments are passed
if [ "$#" -ne 2 ]; then
echo "Usage: $0 kind_config_file new_host_path"
exit 1
fi

# New host path
kind_config_file=$1
new_host_path=$2

# Use yq to update the hostPath
yq e ".nodes[0].extraMounts[0].hostPath = \"$new_host_path\"" -i "$kind_config_file"

0 comments on commit f6cfbc7

Please sign in to comment.