Hi,
Following the
https://github.com/skupperproject/skupper 0.3 release,
updates have included better checks on connection establishment
to prevent connecting to "self" or multiple connections to the same
skupper site. These checks are enabled by the addition of an
annotation to the file generated by "skupper connection-token".
Recent updates to
https://github.com/skupperproject/skupper-dockerincorporate these checks resulting in the:
Error: Failed to create connection: Cannot find secret origin for token './secret.yaml'
Prior to the next skupper release, the work around is to add the
annotation to your './secret.yaml' file by doing the following:
1. In the namespace where you ran skupper to generate the ./secret.yaml extract the
site UID as follows:
$ kubectl get -o template cm/skupper-site --template={{.metadata.uid}}
2. Edit the original ./secret.yaml file and add the generated-by
annotation using the UID from above. Your file should look something
like the following excerpt:
kind: Secret
metadata:
annotations:
edge-host:
skupper-edge-skupper.apps.ansmith-van11.rhmw-integrations.net edge-port: "443"
inter-router-host:
skupper-inter-router-skupper.apps.ansmith-van11.rhmw-integrations.net inter-router-port: "443"
skupper.io/generated-by: fba75742-f594-4329-ae70-18698b88cd4a
creationTimestamp: null
labels:
skupper.io/type: connection-token
name: skupper
type:
kubernetes.io/tls3. Establish the skupper-docker connection
$ ./skupper-docker connect ./secret.yaml
Please, let me know if this works for you. Thanks.