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:
parent
81cb4e4503
commit
a0bf36c83c
@ -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"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user