Open mikebryant opened 3 weeks ago
I've worked around this for the moment with the following:
spec:
cluster: aws
steps:
- try:
- script:
cluster: aws
env:
- name: NAMESPACE
value: ($namespace)
content: |
#!/bin/bash
set -e
kubectl get namespace ${NAMESPACE} -o json | jq 'del(.metadata.resourceVersion, .metadata.uid, .metadata.annotations, .metadata.creationTimestamp, .metadata.selfLink, .metadata.managedFields, .status, .spec.finalizers)' > ./tmp-namespace.json
cleanup:
- script:
cluster: aws
content: |
#!/bin/bash
set -e
rm ./tmp-namespace.json
- try:
- apply:
cluster: gcp
file: ./tmp-namespace.json
Thanks @mikebryant ! I'm busy with v1alpha2
test schema right now but i can prepare the ground for this.
I feel like users will want this while others won't, this makes sense to make it configurable.
Problem Statement
We have a multi-cloud multi-cluster environment. We want to do a multi-cloud istio test
Current approach is something like:
chainsaw test --cluster aws=${HOME}/.kube/boxed-config.yaml:sbx-aws --cluster gcp=${HOME}/.kube/boxed-config.yaml:sbx-gcp --selector chainsaw.nwboxed.com/multi-cloud=enabled chainsaw
Our test looks like this:
But we get the following:
It's creating the ephemeral Namespace only on one cluster, not both
Solution Description
For the ephemeral Namespace to be created on all clusters
Alternatives
No response
Additional Context
No response
Slack discussion
No response
Research