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

Update templates with compatibility attributes #549

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

zerospiel
Copy link
Member

@zerospiel zerospiel commented Oct 24, 2024

  • added core CAPI contracts
  • added providertemplates capi and crds versions
  • added compatibility to the clustertemplates
  • runtime: added support for multiproviders via multi-annotations to allow set provider crds contracts separately per provider only for clustertemplates

#543

Core CAPI ProviderTemplate chart:

annotations:
  cluster.x-k8s.io/v1beta1: ""
  cluster.x-k8s.io/v1alpha3: ""
  cluster.x-k8s.io/v1alpha4: ""

Example of a provider's ProviderTemplates supported CRDs contracts for a related CAPI version:

annotations:
  cluster.x-k8s.io/provider: infrastructure-aws
  cluster.x-k8s.io/v1alpha3: v1alpha3
  cluster.x-k8s.io/v1alpha4: v1alpha4
  cluster.x-k8s.io/v1beta1: v1beta1_v1beta2

Example of a ClusterTemplate contract per-provider requirements:

annotations:
  cluster.x-k8s.io/provider: infrastructure-aws, control-plane-k0smotron, bootstrap-k0smotron
  cluster.x-k8s.io/bootstrap-k0smotron: v1beta1
  cluster.x-k8s.io/control-plane-k0smotron: v1beta1
  cluster.x-k8s.io/infrastructure-aws: v1beta2

New status in a ClusterTemplate object:

status:
  # ... other values
  providerContracts:
    bootstrap-k0smotron: v1beta1
    control-plane-k0smotron: v1beta1
    infrastructure-aws: v1beta2
  providers: 
  - bootstrap-k0smotron
  - control-plane-k0smotron
  - infrastructure-aws

* added core CAPI contracts
* added providertemplates capi
  and crds versions
* added compatibility to the
  clustertemplates
* runtime: added support for
  multiproviders via multi-annotations
  to allow set provider crds contracts
  separately per provider
  only for clustertemplates
@Kshatrix Kshatrix merged commit d00fe40 into Mirantis:main Oct 25, 2024
5 checks passed
@zerospiel zerospiel deleted the update_templates branch October 25, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Update templates with the new compatibility attributes and update the docs
2 participants