github.com/rancher/types@v0.0.0-20220328215343-4370ff10ecd5/apis/management.cattle.io/v3/global_types.go (about) 1 package v3 2 3 import ( 4 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" 5 ) 6 7 type Setting struct { 8 metav1.TypeMeta `json:",inline"` 9 metav1.ObjectMeta `json:"metadata,omitempty"` 10 11 Value string `json:"value" norman:"required"` 12 Default string `json:"default" norman:"nocreate,noupdate"` 13 Customized bool `json:"customized" norman:"nocreate,noupdate"` 14 Source string `json:"source" norman:"nocreate,noupdate,options=db|default|env"` 15 } 16 17 type Feature struct { 18 metav1.TypeMeta `json:",inline"` 19 metav1.ObjectMeta `json:"metadata,omitempty"` 20 21 Spec FeatureSpec `json:"spec"` 22 Status FeatureStatus `json:"status"` 23 } 24 25 type FeatureSpec struct { 26 Value *bool `json:"value" norman:"required"` 27 } 28 29 type FeatureStatus struct { 30 Dynamic bool `json:"dynamic"` 31 Default bool `json:"default"` 32 Description string `json:"description"` 33 }