Skip to content

Commit c7885c6

Browse files
committed
OCPBUGS-19054: Warn that FeatureSet is not supported
Add a warning if FeatureSet is set to a value other than Default ("").
1 parent 29341ee commit c7885c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/asset/agent/installconfig.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ func warnUnusedConfig(installConfig *types.InstallConfig) {
309309
logrus.Warnf(fmt.Sprintf("%s is ignored", fieldPath))
310310
}
311311

312+
if installConfig.FeatureSet != configv1.Default {
313+
fieldPath := field.NewPath("FeatureSet")
314+
logrus.Warnf(fmt.Sprintf("%s: %s is ignored", fieldPath, installConfig.FeatureSet))
315+
}
316+
312317
switch installConfig.Platform.Name() {
313318

314319
case baremetal.Name:

0 commit comments

Comments
 (0)