Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade nats subchart to v1.0 #602

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Upgrade nats subchart to v1.0 #602

wants to merge 6 commits into from

Conversation

smlx
Copy link
Member

@smlx smlx commented Aug 11, 2023

This PR upgrades the NATS subchart dependency to 1.0.

This is a breaking change. The NATS chart has completely restructured its configuration between v0.x and v1.x.
So by necessity the NATS subchart configuration of lagoon-core and lagoon-remote also had to be restructured.
In general, the major upstream change affecting the Lagoon charts is that nats.* values have mostly been moved to nats.config.*.

In particular, the following values required by the Lagoon charts have changed:

Lagoon Core:

Old path New path
nats.cluster.name nats.config.cluster.name
natsConfig.tls.secretData."server.crt" natsConfig.tls.secretData."tls.crt"
natsConfig.tls.secretData."server.key" natsConfig.tls.secretData."tls.key"

Lagoon Remote:

Old path New path
nats.cluster.name nats.config.cluster.name
natsConfig.tls.secretData."client.crt" natsConfig.tls.secretData."tls.crt"
natsConfig.tls.secretData."client.key" natsConfig.tls.secretData."tls.key"

In addition, any other NATS subchart configuration options that may have been added (anything under nats.* in the values.yaml of lagoon-core and lagoon-remote) will most likely require updating.

There are upstream notes on the changes in the NATS chart here.

The other change in this PR is that the client certificates presented by Lagoon Remote are now validated by NATS in Lagoon Core (they were not previously validated correctly).
This should not be a breaking change if the previous instructions for generating certificates were followed correctly.

Also note that due to the breaking change this is a major version bump for lagoon-core from v1.x to v2.x.
This is not a major version bump for lagoon-remote because that is still at v0.x.

@smlx smlx force-pushed the nats-1.0 branch 4 times, most recently from 79b3cda to 579db92 Compare August 11, 2023 07:51
@smlx smlx force-pushed the nats-1.0 branch 4 times, most recently from 8c9e280 to 9fa707b Compare August 24, 2023 02:57
@smlx smlx force-pushed the nats-1.0 branch 3 times, most recently from 3796af2 to 276d42c Compare September 7, 2023 06:55
@smlx smlx force-pushed the nats-1.0 branch 6 times, most recently from 4d0ee57 to 2d86588 Compare September 21, 2023 03:22
@smlx smlx marked this pull request as ready for review September 21, 2023 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants