-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(robot): remove unused NODE_NAME and streamline credentials passing…
… in test.yaml Signed-off-by: Yang Chiu <yang.chiu@suse.com>
- Loading branch information
Showing
9 changed files
with
72 additions
and
76 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: host-provider-cred-secret | ||
type: Opaque | ||
data: | ||
AWS_ACCESS_KEY_ID: QVdTX0FDQ0VTU19LRVlfSUQ= # set aws-access-key-id base64 encoded | ||
AWS_SECRET_ACCESS_KEY: QVdTX1NFQ1JFVF9BQ0NFU1NfS0VZ # set aws-secret-key base64 encoded | ||
AWS_DEFAULT_REGION: QVdTX0RFRkFVTFRfUkVHSU9O # set aws-default-region base64 encoded | ||
LAB_URL: TEFCX1VSTA== # set LAB_URL base64 encoded | ||
LAB_ACCESS_KEY: TEFCX0FDQ0VTU19LRVk= # set LAB_ACCESS_KEY base64 encoded | ||
LAB_SECRET_KEY: TEFCX1NFQ1JFVF9LRVk= # set LAB_SECRET_KEY base64 encoded | ||
LAB_CLUSTER_ID: TEFCX0NMVVNURVJfSUQ= # set LAB_CLUSTER_ID base64 encoded |
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,13 @@ | ||
create_harvester_secret(){ | ||
LAB_URL_BASE64=`echo -n "${TF_VAR_lab_url}" | base64` | ||
LAB_ACCESS_KEY_BASE64=`echo -n "${TF_VAR_lab_access_key}" | base64` | ||
LAB_SECRET_KEY_BASE64=`echo -n "${TF_VAR_lab_secret_key}" | base64` | ||
LAB_CLUSTER_ID_BASE64=`echo -n "$(cat /tmp/cluster_id)" | base64` | ||
|
||
yq e -i '.data.LAB_URL |= "'${LAB_URL_BASE64}'"' "pipelines/templates/host_provider_cred_secrets.yml" | ||
yq e -i '.data.LAB_ACCESS_KEY |= "'${LAB_ACCESS_KEY_BASE64}'"' "pipelines/templates/host_provider_cred_secrets.yml" | ||
yq e -i '.data.LAB_SECRET_KEY |= "'${LAB_SECRET_KEY_BASE64}'"' "pipelines/templates/host_provider_cred_secrets.yml" | ||
yq e -i '.data.LAB_CLUSTER_ID |= "'${LAB_CLUSTER_ID_BASE64}'"' "pipelines/templates/host_provider_cred_secrets.yml" | ||
|
||
kubectl apply -f "pipelines/templates/host_provider_cred_secrets.yml" | ||
} |
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