Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cmd/bridge/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ func main() {
fNodeArchitectures := fs.String("node-architectures", "", "List of node architectures. Example --node-architecture=amd64,arm64")
fNodeOperatingSystems := fs.String("node-operating-systems", "", "List of node operating systems. Example --node-operating-system=linux,windows")
fCopiedCSVsDisabled := fs.Bool("copied-csvs-disabled", false, "Flag to indicate if OLM copied CSVs are disabled.")
fTechPreview := fs.Bool("tech-preview", false, "Enable console Technology Preview features.")

cfg, err := serverconfig.Parse(fs, os.Args[1:], "BRIDGE")
if err != nil {
Expand All @@ -178,6 +179,10 @@ func main() {
os.Exit(1)
}

if *fTechPreview {
klog.Warning("Technology Preview features are enabled. These features are experimental and not supported for production use. If you encounter issues, send feedback through the usual support or bug-reporting channels.")
}

authOptions.ApplyConfig(&cfg.Auth)
sessionOptions.ApplyConfig(&cfg.Session)

Expand Down
4 changes: 4 additions & 0 deletions pkg/serverconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ func addClusterInfo(fs *flag.FlagSet, clusterInfo *ClusterInfo) {
if clusterInfo.CopiedCSVsDisabled {
fs.Set("copied-csvs-disabled", "true")
}

if clusterInfo.TechPreviewEnabled {
fs.Set("tech-preview", "true")
}
}

func addProviders(fs *flag.FlagSet, providers *Providers) {
Expand Down
1 change: 1 addition & 0 deletions pkg/serverconfig/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ type ClusterInfo struct {
NodeArchitectures []string `yaml:"nodeArchitectures,omitempty"`
NodeOperatingSystems []string `yaml:"nodeOperatingSystems,omitempty"`
CopiedCSVsDisabled bool `yaml:"copiedCSVsDisabled,omitempty"`
TechPreviewEnabled bool `yaml:"techPreviewEnabled,omitempty"`
}

// Auth holds configuration for authenticating with OpenShift. The auth method is assumed to be "openshift".
Expand Down