Feature toggles: add expression to generated json and k8s response (#90006)

This commit is contained in:
Stephanie Hingtgen
2024-07-03 12:08:58 -06:00
committed by GitHub
parent 48552a578a
commit 2d5c58cb90
3 changed files with 326 additions and 138 deletions

View File

@@ -46,6 +46,9 @@ type FeatureSpec struct {
// Do not show the value in docs
HideFromDocs bool `json:"hideFromDocs,omitempty"`
// Expression to determine if the flag is enabled by default
Expression string `json:"expression,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object