|
| 1 | +/* |
| 2 | +Copyright 2020 The Kubernetes Authors. |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +*/ |
| 16 | + |
| 17 | +package v1alpha4 |
| 18 | + |
| 19 | +import ( |
| 20 | + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 21 | +) |
| 22 | + |
| 23 | +// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! |
| 24 | +// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. |
| 25 | + |
| 26 | +// NestedControlPlaneSpec defines the desired state of NestedControlPlane |
| 27 | +type NestedControlPlaneSpec struct { |
| 28 | + // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster |
| 29 | + // Important: Run "make" to regenerate code after modifying this file |
| 30 | + |
| 31 | + // Foo is an example field of NestedControlPlane. Edit NestedControlPlane_types.go to remove/update |
| 32 | + Foo string `json:"foo,omitempty"` |
| 33 | +} |
| 34 | + |
| 35 | +// NestedControlPlaneStatus defines the observed state of NestedControlPlane |
| 36 | +type NestedControlPlaneStatus struct { |
| 37 | + // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster |
| 38 | + // Important: Run "make" to regenerate code after modifying this file |
| 39 | +} |
| 40 | + |
| 41 | +// +kubebuilder:object:root=true |
| 42 | +// +kubebuilder:subresource:status |
| 43 | + |
| 44 | +// NestedControlPlane is the Schema for the nestedcontrolplanes API |
| 45 | +type NestedControlPlane struct { |
| 46 | + metav1.TypeMeta `json:",inline"` |
| 47 | + metav1.ObjectMeta `json:"metadata,omitempty"` |
| 48 | + |
| 49 | + Spec NestedControlPlaneSpec `json:"spec,omitempty"` |
| 50 | + Status NestedControlPlaneStatus `json:"status,omitempty"` |
| 51 | +} |
| 52 | + |
| 53 | +// +kubebuilder:object:root=true |
| 54 | + |
| 55 | +// NestedControlPlaneList contains a list of NestedControlPlane |
| 56 | +type NestedControlPlaneList struct { |
| 57 | + metav1.TypeMeta `json:",inline"` |
| 58 | + metav1.ListMeta `json:"metadata,omitempty"` |
| 59 | + Items []NestedControlPlane `json:"items"` |
| 60 | +} |
| 61 | + |
| 62 | +func init() { |
| 63 | + SchemeBuilder.Register(&NestedControlPlane{}, &NestedControlPlaneList{}) |
| 64 | +} |
0 commit comments