-
Notifications
You must be signed in to change notification settings - Fork 1.5k
SPLAT-1293: Bump API version to promote vSphereStaticIPs from TechPreview. #7943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,6 +1,13 @@ | ||||
| package types | ||||
|
|
||||
| import configv1 "github.com/openshift/api/config/v1" | ||||
| import ( | ||||
| "fmt" | ||||
| "os" | ||||
|
|
||||
| "github.com/sirupsen/logrus" | ||||
|
|
||||
| configv1 "github.com/openshift/api/config/v1" | ||||
| ) | ||||
|
|
||||
| // StringsToIPs is used to convert list of strings to list of IP addresses. | ||||
| func StringsToIPs(ips []string) []configv1.IP { | ||||
|
|
@@ -32,3 +39,18 @@ func MachineNetworksToCIDRs(nets []MachineNetworkEntry) []configv1.CIDR { | |||
|
|
||||
| return res | ||||
| } | ||||
|
|
||||
| // GetClusterProfileName utility method to retrieve the cluster profile setting. This is used | ||||
| // when dealing with openshift api to get FeatureSets. | ||||
| func GetClusterProfileName() configv1.ClusterProfileName { | ||||
| // Get cluster profile for new FeatureGate access. Blank is no longer an option, so default to | ||||
| // SelfManaged. | ||||
| clusterProfile := configv1.SelfManaged | ||||
| if cp := os.Getenv("OPENSHIFT_INSTALL_EXPERIMENTAL_CLUSTER_PROFILE"); cp != "" { | ||||
|
||||
| if cp := os.Getenv("OPENSHIFT_INSTALL_EXPERIMENTAL_CLUSTER_PROFILE"); cp != "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! I didn't realize this was using an existing env var. In that case, let's just keep it as is.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't you reuse the
GetClusterProfileNamefunction?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good catch. I thought I had updated this one.