|
| 1 | +// Copyright Red Hat, Inc. |
| 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 | +package v1alpha1 |
| 16 | + |
| 17 | +import ( |
| 18 | + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 19 | +) |
| 20 | + |
| 21 | +// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! |
| 22 | +// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. |
| 23 | + |
| 24 | +// FederatedServiceSpec defines the desired state of FederatedService. |
| 25 | +type FederatedServiceSpec struct { |
| 26 | + // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster |
| 27 | + // Important: Run "make" to regenerate code after modifying this file |
| 28 | + |
| 29 | + // Foo is an example field of FederatedService. Edit federatedservice_types.go to remove/update |
| 30 | + Foo string `json:"foo,omitempty"` |
| 31 | +} |
| 32 | + |
| 33 | +// FederatedServiceStatus defines the observed state of FederatedService. |
| 34 | +type FederatedServiceStatus struct { |
| 35 | + // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster |
| 36 | + // Important: Run "make" to regenerate code after modifying this file |
| 37 | +} |
| 38 | + |
| 39 | +// +kubebuilder:object:root=true |
| 40 | +// +kubebuilder:subresource:status |
| 41 | + |
| 42 | +// FederatedService is the Schema for the federatedservices API. |
| 43 | +type FederatedService struct { |
| 44 | + metav1.TypeMeta `json:",inline"` |
| 45 | + metav1.ObjectMeta `json:"metadata,omitempty"` |
| 46 | + |
| 47 | + Spec FederatedServiceSpec `json:"spec,omitempty"` |
| 48 | + Status FederatedServiceStatus `json:"status,omitempty"` |
| 49 | +} |
| 50 | + |
| 51 | +// +kubebuilder:object:root=true |
| 52 | + |
| 53 | +// FederatedServiceList contains a list of FederatedService. |
| 54 | +type FederatedServiceList struct { |
| 55 | + metav1.TypeMeta `json:",inline"` |
| 56 | + metav1.ListMeta `json:"metadata,omitempty"` |
| 57 | + Items []FederatedService `json:"items"` |
| 58 | +} |
| 59 | + |
| 60 | +func init() { |
| 61 | + SchemeBuilder.Register(&FederatedService{}, &FederatedServiceList{}) |
| 62 | +} |
0 commit comments