-
Notifications
You must be signed in to change notification settings - Fork 63
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
add logic to get open shift API URL #1877
Changes from 2 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 |
---|---|---|
|
@@ -55,6 +55,8 @@ type HubConfig struct { | |
OCPVersion string `json:"ocpVersion" structs:"ocpVersion"` | ||
HubVersion string `json:"hubVersion" structs:"hubVersion"` | ||
OCPIngress string `json:"ocpIngress" structs:"ocpIngress"` | ||
APIUrl string `json:"apiUrl" structs:"apiUrl"` | ||
Target string `json:"target" structs:"target"` | ||
SubscriptionPause string `json:"subscriptionPause" structs:"subscriptionPause"` | ||
} | ||
|
||
|
@@ -344,6 +346,10 @@ func injectValuesOverrides(values *Values, mch *v1.MultiClusterHub, images map[s | |
|
||
values.HubConfig.OCPIngress = os.Getenv("INGRESS_DOMAIN") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OCPIngress would be necessary at global level, if we used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is addressed now, thanks.! |
||
|
||
values.HubConfig.APIUrl = os.Getenv("API_URL") | ||
|
||
values.HubConfig.Target = "acm" | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Those two would be necessary at global level |
||
values.HubConfig.SubscriptionPause = utils.GetDisableClusterImageSets(mch) | ||
|
||
values.Org = "open-cluster-management" | ||
|
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.
could you please move
Target
to aGlobal
section instead ofHubConfig
?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.
@cameronmwall I just realized that since we have sub-charts in our helm chart, the sub-charts wont be able to access
HubConfig
section. Sub-charts can look only intoglobal
or their own specific sections invalues.yaml
.we will need you to put
APIUrl
,Target
andOCPIngress
intoglobal
section