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