-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support env vars in OCI secrets (#88)
## Description Allow users to specify basic auth credentials _OR_ arbitrary environment variables when configuring OCI registry secrets. Other - Add automation to ensure validator versions stay up-to-date - Remove hacky 20s wait for plugins to being installing. Wait for plugin conditions to appear on ValidatorConfig instead. Requires: - validator-labs/validator#333 --------- Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
- Loading branch information
1 parent
c69e355
commit 584b3c7
Showing
20 changed files
with
1,269 additions
and
195 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
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
function latestRelease { | ||
release=$(gh release list --repo $1 -L 1 | head -n 2 | awk '{ print $1; }') | ||
echo ${release:1} | ||
} | ||
|
||
function updateVersions { | ||
envsubst < hack/versions.tmpl > pkg/config/versions.go | ||
envsubst < hack/validator.tmpl > tests/integration/_validator/testcases/data/validator.yaml | ||
echo "Updated versions.go & test data with latest validator versions." | ||
} | ||
|
||
export AWS_VERSION=$(latestRelease validator-labs/validator-plugin-aws) | ||
export AZURE_VERSION=$(latestRelease validator-labs/validator-plugin-azure) | ||
export KUBESCAPE_VERSION=$(latestRelease validator-labs/validator-plugin-kubescape) | ||
export MAAS_VERSION=$(latestRelease validator-labs/validator-plugin-maas) | ||
export NETWORK_VERSION=$(latestRelease validator-labs/validator-plugin-network) | ||
export OCI_VERSION=$(latestRelease validator-labs/validator-plugin-oci) | ||
export VSPHERE_VERSION=$(latestRelease validator-labs/validator-plugin-vsphere) | ||
export VALIDATOR_VERSION=$(latestRelease validator-labs/validator) | ||
|
||
updateVersions |
Oops, something went wrong.