kubesphere.io/api@v0.0.0-20231107125330-c9a03957060c/types/v1beta1/federatedconfigmap_types.go (about) 1 /* 2 Copyright 2020 KubeSphere 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 v1beta1 18 19 import ( 20 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" 21 ) 22 23 const ( 24 ResourcePluralFederatedConfigmap = "federatedconfigmaps" 25 ResourceSingularFederatedConfigmap = "federatedconfigmap" 26 FederatedConfigMapKind = "FederatedConfigMap" 27 ) 28 29 // +genclient 30 // +kubebuilder:object:root=true 31 // +k8s:openapi-gen=true 32 type FederatedConfigMap struct { 33 metav1.TypeMeta `json:",inline"` 34 metav1.ObjectMeta `json:"metadata,omitempty"` 35 Spec FederatedConfigMapSpec `json:"spec"` 36 37 Status *GenericFederatedStatus `json:"status,omitempty"` 38 } 39 40 type FederatedConfigMapSpec struct { 41 Template ConfigMapTemplate `json:"template"` 42 Placement GenericPlacementFields `json:"placement"` 43 Overrides []GenericOverrideItem `json:"overrides,omitempty"` 44 } 45 46 type ConfigMapTemplate struct { 47 48 // +optional 49 Data map[string]string `json:"data,omitempty" protobuf:"bytes,2,rep,name=data"` 50 51 // +optional 52 BinaryData map[string][]byte `json:"binaryData,omitempty" protobuf:"bytes,3,rep,name=binaryData"` 53 } 54 55 // +kubebuilder:object:root=true 56 57 // FederatedConfigmapList contains a list of federatedconfigmaplists 58 type FederatedConfigMapList struct { 59 metav1.TypeMeta `json:",inline"` 60 metav1.ListMeta `json:"metadata,omitempty"` 61 Items []FederatedConfigMap `json:"items"` 62 }