| Given |
When |
Then |
| skupper not being installed on a site |
Executing the command `skupper init` |
- A CA for the site was created and stored as secret (skupper-site-ca)
- A secret that only contains the CA file will be stored used as TLS config for egress bindings (skupper-service-client)
|
| skupper is already installed |
Executing the command `skupper service create` without the flag `enable-tls` |
- Keep same behaviour as it is, creating a listener without sslConfig
|
| skupper is already installed |
Executing the command `skupper service create` the flag `enable-tls` |
- A certificate signed with the site CA will be created and stored as a secret following the pattern "skupper-<service name>"
|
| a service has been created with the flag enableTls |
Synchronizing service definitions |
- All the connected sites would have the same service bindings with the same tls config for the skupper-services config map
- The secret will be appended to a volume to the router deployment
- If a particular site does not have the secret certificate, it would be generated as well using the CA for that site.
|
| a service has been created with the flag enableTls |
Updating bridges |
- the HttpListener created in the router will include the sslConfig from the service secret
|
| a service has been created |
Removing the service from skupper |
- Check if the secret associated with the service exists and in that case, deleted as well from kubernetes
|
| skupper not being installed on a site |
Executing the command `skupper gateway init` |
- A CA for the site was created and stored as secret (skupper-site-ca)
- A secret that only contains the CA file will be stored used as TLS config for egress bindings (skupper-service-client)
|
| skupper is already installed |
Exposing a service with the command `skupper service expose` |
- All the connected sites would have the same service bindings with the same TLS config for the skupper-services config map
- The secret will be appended to a volume to the router deployment
- If a particular site does not have the secret certificate, it would be generated as well using the CA for that site.
- The http2 connector will be created in the router with an ssl profile with the name of the generic client secret for services
- the http2 listener will be created in the router with a ssl profile with the name of the service secret.
|
| skupper is already installed |
Executing the command `skupper delete` |
- The secrets created to support TLS have to be deleted from kubernetes as well.
|