This repository was archived by the owner on Jul 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,6 @@ import (
21
21
kubeadmv1beta1 "sigs.k8s.io/cluster-api-bootstrap-provider-kubeadm/kubeadm/v1beta1"
22
22
)
23
23
24
- // Phase defines KubeadmBootstrapConfig phases
25
- type Phase string
26
-
27
- // Ready defines the KubeadmBootstrapConfig Ready Phase
28
- const (
29
- // Ready indicates the config is ready to be used by a Machine.
30
- Ready Phase = "Ready"
31
- )
32
-
33
24
// KubeadmBootstrapConfigSpec defines the desired state of KubeadmBootstrapConfig
34
25
type KubeadmBootstrapConfigSpec struct {
35
26
ClusterConfiguration kubeadmv1beta1.ClusterConfiguration `json:"clusterConfiguration"`
@@ -39,8 +30,8 @@ type KubeadmBootstrapConfigSpec struct {
39
30
40
31
// KubeadmBootstrapConfigStatus defines the observed state of KubeadmBootstrapConfig
41
32
type KubeadmBootstrapConfigStatus struct {
42
- // Phase is the state of the KubeadmBootstrapConfig object
43
- Phase Phase `json:"phase"`
33
+ // Ready indicates the BootstrapData field is ready to be consumed
34
+ Ready bool `json:"phase,omitempty "`
44
35
45
36
// BootstrapData will be a cloud-init script for now
46
37
// +optional
Original file line number Diff line number Diff line change @@ -1059,10 +1059,9 @@ spec:
1059
1059
format : byte
1060
1060
type : string
1061
1061
phase :
1062
- description : Phase is the state of the KubeadmBootstrapConfig object
1063
- type : string
1064
- required :
1065
- - phase
1062
+ description : Ready indicates the BootstrapData field is ready to be
1063
+ consumed
1064
+ type : boolean
1066
1065
type : object
1067
1066
type : object
1068
1067
versions :
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ require (
12
12
k8s.io/apimachinery v0.0.0-20190704094733-8f6ac2502e51
13
13
k8s.io/client-go v11.0.1-0.20190704100234-640d9f240853+incompatible
14
14
k8s.io/cluster-bootstrap v0.0.0-20190703212826-5ad085674a4f
15
+ k8s.io/klog v0.3.1
15
16
k8s.io/utils v0.0.0-20190607212802-c55fbcfc754a // indirect
16
17
sigs.k8s.io/cluster-api v0.0.0-20190711133056-09e491e49d7c
17
18
sigs.k8s.io/controller-runtime v0.2.0-beta.4
You can’t perform that action at this time.
0 commit comments