Skip to content

Commit

Permalink
Rename ErrorMessage/ErrorReason
Browse files Browse the repository at this point in the history
  • Loading branch information
detiber committed Nov 19, 2019
1 parent f8b8441 commit 09d8383
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
8 changes: 4 additions & 4 deletions api/v1alpha3/kubeadm_control_plane_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ type KubeadmControlPlaneStatus struct {
// +optional
Ready bool `json:"ready,omitempty"`

// ErrorReason indicates that there is a problem reconciling the
// FailureReason indicates that there is a terminal problem reconciling the
// state, and will be set to a token value suitable for
// programmatic interpretation.
// +optional
ErrorReason KubeadmControlPlaneStatusError `json:"errorReason,omitempty"`
FailureReason KubeadmControlPlaneStatusError `json:"failureReason,omitempty"`

// ErrorMessage indicates that there is a problem reconciling the
// ErrorMessage indicates that there is a terminal problem reconciling the
// state, and will be set to a descriptive error message.
// +optional
ErrorMessage *string `json:"errorMessage,omitempty"`
FailureMessage *string `json:"failureMessage,omitempty"`
}

// +kubebuilder:object:root=true
Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha3/zz_generated.deepcopy.go

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

17 changes: 9 additions & 8 deletions config/crd/bases/cluster.x-k8s.io_kubeadmcontrolplanes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.2
controller-gen.kubebuilder.io/version: v0.2.3
creationTimestamp: null
name: kubeadmcontrolplanes.cluster.x-k8s.io
spec:
Expand All @@ -18,6 +18,7 @@ spec:
shortNames:
- kcp
singular: kubeadmcontrolplane
preserveUnknownFields: false
scope: Namespaced
subresources:
scale:
Expand Down Expand Up @@ -878,14 +879,14 @@ spec:
status:
description: KubeadmControlPlaneStatus defines the observed state of KubeadmControlPlane.
properties:
errorMessage:
description: ErrorMessage indicates that there is a problem reconciling
the state, and will be set to a descriptive error message.
failureMessage:
description: ErrorMessage indicates that there is a terminal problem
reconciling the state, and will be set to a descriptive error message.
type: string
errorReason:
description: ErrorReason indicates that there is a problem reconciling
the state, and will be set to a token value suitable for programmatic
interpretation.
failureReason:
description: FailureReason indicates that there is a terminal problem
reconciling the state, and will be set to a token value suitable for
programmatic interpretation.
type: string
initialized:
description: Initialized denotes whether or not the control plane has
Expand Down

0 comments on commit 09d8383

Please sign in to comment.