1
0
mirror of https://github.com/rancher/types.git synced 2025-06-25 21:21:32 +00:00

Add dynamic field to feature type

Added dynamic field to feature type. A value of false indicates
that changed feature values will not go into effect until rancher
restarts. Switched feature type to use spec and status convention.
This commit is contained in:
rmweir 2020-02-11 11:51:27 -07:00
parent 81cb4e4503
commit a0bf36c83c

View File

@ -18,6 +18,15 @@ type Feature struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Value *bool `json:"value" norman:"required"`
Default bool `json:"default" norman:"nocreate,noupdate"`
Spec FeatureSpec `json:"spec"`
Status FeatureStatus `json:"status"`
}
type FeatureSpec struct {
Value *bool `json:"value" norman:"required"`
}
type FeatureStatus struct {
Dynamic bool `json:"dynamic"`
Default bool `json:"default"`
}