Skip to content

Commit

Permalink
Extend MachineStatus to add ProviderID
Browse files Browse the repository at this point in the history
  • Loading branch information
vikaschoudhary16 committed Nov 19, 2018
1 parent 1fe6faa commit 9ffb881
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/apis/cluster/v1alpha1/machine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ type MachineSpec struct {
// as-is.
// +optional
ConfigSource *corev1.NodeConfigSource `json:"configSource,omitempty"`

// ProviderID is the identification ID of the machine provided by the provider.
// This field must match the provider ID as seen on the node object corresponding to this machine.
// +optional
ProviderID *string `json:"providerID,omitempty"`
}

/// [MachineSpec]
Expand Down Expand Up @@ -139,7 +144,7 @@ type MachineStatus struct {
// serialized/deserialized from this field.
// +optional
ProviderStatus *runtime.RawExtension `json:"providerStatus,omitempty"`

// Addresses is a list of addresses assigned to the machine. Queried from cloud provider, if available.
// +optional
Addresses []corev1.NodeAddress `json:"addresses,omitempty"`
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/cluster/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9ffb881

Please sign in to comment.