Skip to content

Commit

Permalink
⚠️ Clarify Machine.Spec.ObjectMeta use in godoc
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <vincepri@vmware.com>
  • Loading branch information
vincepri committed Sep 26, 2019
1 parent 90cbdd1 commit 80c73c2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions api/v1alpha2/machine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ const (

// MachineSpec defines the desired state of Machine
type MachineSpec struct {
// ObjectMeta will autopopulate the Node created. Use this to
// indicate what labels, annotations, name prefix, etc., should be used
// when creating the Node.
// ObjectMeta specifies the metadata to associate with a Machine
// when using MachineSet or MachineDeployment.
// +optional
ObjectMeta `json:"metadata,omitempty"`

Expand Down
5 changes: 2 additions & 3 deletions config/crd/bases/cluster.x-k8s.io_machinedeployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,8 @@ spec:
type: string
type: object
metadata:
description: ObjectMeta will autopopulate the Node created.
Use this to indicate what labels, annotations, name prefix,
etc., should be used when creating the Node.
description: ObjectMeta specifies the metadata to associate
with a Machine when using MachineSet or MachineDeployment.
properties:
annotations:
additionalProperties:
Expand Down
5 changes: 2 additions & 3 deletions config/crd/bases/cluster.x-k8s.io_machines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ spec:
type: string
type: object
metadata:
description: ObjectMeta will autopopulate the Node created. Use this
to indicate what labels, annotations, name prefix, etc., should be
used when creating the Node.
description: ObjectMeta specifies the metadata to associate with a Machine
when using MachineSet or MachineDeployment.
properties:
annotations:
additionalProperties:
Expand Down
5 changes: 2 additions & 3 deletions config/crd/bases/cluster.x-k8s.io_machinesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,8 @@ spec:
type: string
type: object
metadata:
description: ObjectMeta will autopopulate the Node created.
Use this to indicate what labels, annotations, name prefix,
etc., should be used when creating the Node.
description: ObjectMeta specifies the metadata to associate
with a Machine when using MachineSet or MachineDeployment.
properties:
annotations:
additionalProperties:
Expand Down

0 comments on commit 80c73c2

Please sign in to comment.