Skip to content

Conversation

@MirahImage
Copy link
Member

@MirahImage MirahImage commented Jul 2, 2021

This provides additional information in the context of the Provisioned
Service Binding spec https://k8s-service-bindings.github.io/spec/#provisioned-service

When TLS is configured, we provide the AMQPS port, otherwise we provide
the AMQP port.

The host is the dns name of the service.

When additional plugins supporting other protocols are enabled, ports for those protocols are also added to the secret.

This provides additional information in the context of the Provisioned
Service Binding spec https://k8s-service-bindings.github.io/spec/#provisioned-service

When TLS is configured, we provide the AMQPS port, otherwise we provide
the AMQP port.

The host is the dns name of the service.
@MirahImage MirahImage force-pushed the add-binding-host-port branch from 6e24138 to 11891b6 Compare July 5, 2021 12:44
@MirahImage MirahImage marked this pull request as ready for review July 5, 2021 13:18
Copy link
Contributor

@ChunyiLyu ChunyiLyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did some manual testing. Plugin ports are added successfully when the plugin is enabled at creation. However, when plugins are enabled after the cluster is already created, the service binding secret is not updated newly added plugin port.

What I did: 1) create a RMQ cluster with no additional plugins 2) update the cluster with one additional plugin like

spec:
...
  rabbitmq:
    additionalPlugins:
    - rabbitmq_stomp
  1. inspect the default user secret, which wasn't updated with the STOMP port after 5 minutes
apiVersion: v1
data:
  default_user.conf: 
  host: 
  password: 
  port: NTY3Mg==
  provider: cmFiYml0bXE=
  type: cmFiYml0bXE=
  username: 

@MirahImage MirahImage force-pushed the add-binding-host-port branch from f4f134a to 74495c2 Compare July 8, 2021 09:38
Copy link
Contributor

@ChunyiLyu ChunyiLyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update works now! Thank you :)

@MirahImage MirahImage merged commit efaa1fe into main Jul 12, 2021
@MirahImage MirahImage deleted the add-binding-host-port branch July 12, 2021 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants