You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Extract the feature gate status (i.e. removed or not) from the "Removed" parameter in file -->
44
+
{{- $removedStatusForFeature := index $featureGateFile.Params.Removed -}}
45
+
46
+
<!-- Check if 'stages' parameter is missing in the front matter -->
47
+
{{- if not (isSet $featureGateFile.Params "stages") -}}
48
+
{{- warnf "Stages parameter is missing in the front matter for %s in %s" $featureGateName (print $featureGateFile.File.Lang "/" $featureGateFile.File.Path) -}}
49
+
50
+
{{- else -}}
51
+
{{- if not $removedFeatureGateRequested -}}
52
+
<!-- Check if the feature gate should be included based on the 'include' parameter -->
53
+
54
+
{{- if $removedStatusForFeature -}}
55
+
{{- continue -}}
56
+
{{- end -}}
57
+
58
+
<!-- Check if 'alpha' or 'beta' is specified in 'include' values, set flag accordingly -->
59
+
{{- $onlyDisplayAlphaBetaFeature := or (in $includeValues "alpha") (in $includeValues "beta") -}}
60
+
{{- $graduatedOrDeprecatedFlag := false -}}
61
+
62
+
<!-- Iterate through stages for current Feature gate to check for "stable" or "deprecated" stage -->
63
+
{{- range $stage := $featureGateFile.Params.stages -}}
64
+
{{- if or (eq ($stage).stage "stable") (eq ($stage).stage "deprecated") -}}
65
+
{{- $graduatedOrDeprecatedFlag = true -}}
66
+
{{- end -}}
67
+
{{- end -}}
68
+
69
+
{{- if eq $onlyDisplayAlphaBetaFeature $graduatedOrDeprecatedFlag -}}
70
+
{{- continue -}}
71
+
{{- end -}}
72
+
73
+
{{- else -}}
74
+
<!-- Check if 'removed' parameter is not specified, continue to the next iteration -->
75
+
{{- if not $removedStatusForFeature -}}
76
+
{{- continue -}}
77
+
{{- end -}}
78
+
{{- end -}}
79
+
80
+
{{- range $featureGate := $featureGateFile.Params.stages -}}
0 commit comments