@@ -22,21 +22,21 @@ import (
22
22
addonv1alpha1 "sigs.k8s.io/kubebuilder-declarative-pattern/pkg/patterns/addon/pkg/apis/v1alpha1"
23
23
)
24
24
25
- // NestedAPIServerSpec defines the desired state of NestedAPIServer
25
+ // NestedAPIServerSpec defines the desired state of NestedAPIServer.
26
26
type NestedAPIServerSpec struct {
27
27
// NestedComponentSpec contains the common and user-specified information that are
28
- // required for creating the component
28
+ // required for creating the component.
29
29
// +optional
30
30
NestedComponentSpec `json:",inline"`
31
31
}
32
32
33
- // NestedAPIServerStatus defines the observed state of NestedAPIServer
33
+ // NestedAPIServerStatus defines the observed state of NestedAPIServer.
34
34
type NestedAPIServerStatus struct {
35
- // APIServerService is the reference to the service that expose the APIServer
35
+ // APIServerService is the reference to the service that expose the APIServer.
36
36
// +optional
37
37
APIServerService * corev1.ObjectReference `json:"apiserverService,omitempty"`
38
38
39
- // CommonStatus allows addons status monitoring
39
+ // CommonStatus allows addons status monitoring.
40
40
addonv1alpha1.CommonStatus `json:",inline"`
41
41
}
42
42
@@ -46,7 +46,7 @@ type NestedAPIServerStatus struct {
46
46
//+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
47
47
//+kubebuilder:subresource:status
48
48
49
- // NestedAPIServer is the Schema for the nestedapiservers API
49
+ // NestedAPIServer is the Schema for the nestedapiservers API.
50
50
type NestedAPIServer struct {
51
51
metav1.TypeMeta `json:",inline"`
52
52
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -57,7 +57,7 @@ type NestedAPIServer struct {
57
57
58
58
//+kubebuilder:object:root=true
59
59
60
- // NestedAPIServerList contains a list of NestedAPIServer
60
+ // NestedAPIServerList contains a list of NestedAPIServer.
61
61
type NestedAPIServerList struct {
62
62
metav1.TypeMeta `json:",inline"`
63
63
metav1.ListMeta `json:"metadata,omitempty"`
@@ -72,30 +72,30 @@ var _ addonv1alpha1.CommonObject = &NestedAPIServer{}
72
72
var _ addonv1alpha1.Patchable = & NestedAPIServer {}
73
73
74
74
// ComponentName returns the name of the component for use with
75
- // addonv1alpha1.CommonObject
75
+ // addonv1alpha1.CommonObject.
76
76
func (c * NestedAPIServer ) ComponentName () string {
77
77
return string (APIServer )
78
78
}
79
79
80
80
// CommonSpec returns the addons spec of the object allowing common funcs like
81
- // Channel & Version to be usable
81
+ // Channel & Version to be usable.
82
82
func (c * NestedAPIServer ) CommonSpec () addonv1alpha1.CommonSpec {
83
83
return c .Spec .CommonSpec
84
84
}
85
85
86
86
// GetCommonStatus will return the common status for checking is a component
87
- // was successfully deployed
87
+ // was successfully deployed.
88
88
func (c * NestedAPIServer ) GetCommonStatus () addonv1alpha1.CommonStatus {
89
89
return c .Status .CommonStatus
90
90
}
91
91
92
92
// SetCommonStatus will set the status so that abstract representations can set
93
- // Ready and Phases
93
+ // Ready and Phases.
94
94
func (c * NestedAPIServer ) SetCommonStatus (s addonv1alpha1.CommonStatus ) {
95
95
c .Status .CommonStatus = s
96
96
}
97
97
98
- // PatchSpec returns the patches to be applied
98
+ // PatchSpec returns the patches to be applied.
99
99
func (c * NestedAPIServer ) PatchSpec () addonv1alpha1.PatchSpec {
100
100
return c .Spec .PatchSpec
101
101
}
0 commit comments