Skip to content

Commit

Permalink
Update docs for metadata propagation
Browse files Browse the repository at this point in the history
Signed-off-by: killianmuldoon <[email protected]>
  • Loading branch information
killianmuldoon committed Jul 15, 2022
1 parent 1ec0cd6 commit bbb1b0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Metadata propagation
Cluster API controllers implement consistent metadata (labels & annotations) propagation across the core API resources.
This behaviour tries to be consistent with kubernetes apps/v1 Deployment and ReplicaSet.
This behaviour tries to be consistent with Kubernetes apps/v1 Deployment and ReplicaSet.
New providers should behave accordingly fitting within the following pattern:

## KubeadmControlPlane
Expand Down
4 changes: 0 additions & 4 deletions docs/book/src/developer/providers/bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ type PhippyBootstrapConfigTemplate struct {
}

type PhippyBootstrapConfigTemplateResource struct {
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"`
Spec PhippyBootstrapConfigSpec `json:"spec"`
}
```
Expand Down
4 changes: 3 additions & 1 deletion docs/book/src/developer/providers/v0.4-to-v1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ The `serving-cert` certificates now have organization set to `k8s-sig-cluster-li
[machine][machine-contract] provider contract docs for more information. This is not required, but is recommended for
consistency across the infrastructure providers as Cluster API graduates and opens up use cases where coordinating
controllers can use labels and annotations from template infrastructure resources to do external provisioning or
provide configuration information, e.g. [IPAM support for vSphere / bare-metal][capv-ipam].
provide configuration information, e.g. [IPAM support for vSphere / bare-metal][capv-ipam].
- Labels and annotations from KubeadmControlPlane, MachineDeployment and MachineSet and their `.spec.template.metadata` fields are now selectively propagated to objects controlled by their respective controllers. Refer to [metadata-propagation] for more information.

## ⚠ LeaderElectionResourceLock change ⚠

Expand All @@ -70,4 +71,5 @@ Otherwise, your controller might end up with multiple running instances that eac

[cluster-contract]: ./cluster-infrastructure.md
[machine-contract]: ./machine-infrastructure.md
[metadata-propagation]: ../../developer/architecture/controllers/metadata-propagation.md
[capv-ipam]: https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/pull/1210

0 comments on commit bbb1b0e

Please sign in to comment.