-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* addedd new make targets for testing release * updated go-version to 1.22 * updated environment variables to match plugin name (Rollouts vs Rollout) * Created a runtime flag to print out the version for release verification --------- Signed-off-by: Michael Wilkerson <[email protected]>
- Loading branch information
1 parent
d633f5a
commit f5314be
Showing
7 changed files
with
166 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.21.6 | ||
1.22.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
# Check if the correct number of arguments are passed | ||
if [ "$#" -ne 2 ]; then | ||
echo "Usage: $0 helm_file binary" | ||
exit 1 | ||
fi | ||
|
||
# New host path | ||
helm_file=$1 | ||
binary=$2 | ||
|
||
# Create the YAML structure and write it to kind_config_file | ||
cat << EOF > "$helm_file" | ||
controller: | ||
image: | ||
# -- Registry to use | ||
registry: docker.io | ||
# -- Repository to use | ||
repository: wilko1989/argo-rollouts | ||
# -- Overrides the image tag (default is the chart appVersion) | ||
tag: latest | ||
# -- Image pull policy | ||
pullPolicy: Always | ||
trafficRouterPlugins: | ||
trafficRouterPlugins: |- | ||
- name: "hashicorp/consul" | ||
location: $binary # supports http(s):// urls and file:// | ||
volumes: | ||
- name: consul-plugin | ||
emptyDir: {} | ||
volumeMounts: | ||
- name: consul-plugin | ||
mountPath: /plugin-bin/hashicorp | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
|
||
# Check if the correct number of arguments are passed | ||
if [ "$#" -ne 2 ]; then | ||
echo "Usage: $0 helm_file image" | ||
exit 1 | ||
fi | ||
|
||
# New host path | ||
helm_file=$1 | ||
image=$2 | ||
|
||
# Create the YAML structure and write it to kind_config_file | ||
cat << EOF > "$helm_file" | ||
controller: | ||
image: | ||
# -- Registry to use | ||
registry: docker.io | ||
# -- Repository to use | ||
repository: wilko1989/argo-rollouts | ||
# -- Overrides the image tag (default is the chart appVersion) | ||
tag: latest | ||
# -- Image pull policy | ||
pullPolicy: Always | ||
initContainers: | ||
- name: copy-consul-plugin | ||
image: $image | ||
command: ["/bin/sh", "-c"] | ||
args: | ||
# Copy the binary from the image to the rollout container | ||
- cp /bin/rollouts-plugin-trafficrouter-consul /plugin-bin/hashicorp | ||
volumeMounts: | ||
- name: consul-plugin | ||
mountPath: /plugin-bin/hashicorp | ||
trafficRouterPlugins: | ||
trafficRouterPlugins: |- | ||
- name: "hashicorp/consul" | ||
location: "file:///plugin-bin/hashicorp/rollouts-plugin-trafficrouter-consul" | ||
volumes: | ||
- name: consul-plugin | ||
emptyDir: {} | ||
volumeMounts: | ||
- name: consul-plugin | ||
mountPath: /plugin-bin/hashicorp | ||
EOF |