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

Replace zalando.org → kopf.dev for peering #644

Merged
merged 2 commits into from
Jan 16, 2021
Merged

Conversation

nolar
Copy link
Owner

@nolar nolar commented Jan 16, 2021

Since we are going to release the next major version, it is time to also make somewhat incompatible changes: use the framework's own identity.

In this part, only the peering is changed. It does affect the runtime. (Related: #643 for docs & examples.)

The peering selectors are modified so that they only select by name (plural name in this case), ignoring the group. As such, both zalando.org and kopf.dev peerings will be supported (so as any other domains, actually; but the resource name itself implies Kopf, not some other frameworks).

This relies on an assumption that either zalando.org or kopf.dev peering resources are installed in the cluster, not both. It is assumed that both resources cannot co-exist because they share the same names and would cause a conflict anyway.

Compatibility: The newly configured clusters will use kopf.dev, and all is fine. The existing cluster can continue using zalando.org, and it will work too (unless reconfigured).

For transitioning, the old CRD must be removed, and a new CRD must be created. This will wipe all existing peering CRs too, so they must be re-created with the new domain (kopf.dev). Applying them with the old domain will fail, as after such a transition, those resources will not exist.

nolar added 2 commits January 16, 2021 20:19
The peering selectors are modified so that they only select by name (plural name in this case), ignoring the group. As such, both `zalando.org` and `kopf.dev` peerings will be supported (so as any other domains, actually; but the resource name itself implies Kopf, not some other frameworks).

This relies on an assumption that *either* `zalando.org` *or* `kopf.dev` peering resources are installed in the cluster, *not both*. It is assumed that both resources cannot co-exist because they share the same names and would cause a conflict anyway.

*Compatibility*: The newly configured clusters will use `kopf.dev`, and all is fine. The existing cluster can continue using `zalando.org`, and it will work too (unless reconfigured).

*For transitioning*, the old CRD must be removed, and a new CRD must be created. This will wipe all existing peering CRs too, so they must be re-created with the new domain (`kopf.dev`). Applying them with the old domain will fail, as after such a transition, those resources will not exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant