Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cameronmwall
Copy link
Contributor

Description

Please provide a brief description of the purpose of this pull request.

Related Issue

If applicable, please reference the issue(s) that this pull request addresses.

Changes Made

Provide a clear and concise overview of the changes made in this pull request.

Screenshots (if applicable)

Add screenshots or GIFs that demonstrate the changes visually, if relevant.

Checklist

  • I have tested the changes locally and they are functioning as expected.
  • I have updated the documentation (if necessary) to reflect the changes.
  • I have added/updated relevant unit tests (if applicable).
  • I have ensured that my code follows the project's coding standards.
  • I have checked for any potential security issues and addressed them.
  • I have added necessary comments to the code, especially in complex or unclear sections.
  • I have rebased my branch on top of the latest main/master branch.

Additional Notes

Add any additional notes, context, or information that might be helpful for reviewers.

Reviewers

Tag the appropriate reviewers who should review this pull request. To add reviewers, please add the following line: /cc @reviewer1 @reviewer2

Definition of Done

  • Code is reviewed.
  • Code is tested.
  • Documentation is updated.
  • All checks and tests pass.
  • Approved by at least one reviewer.
  • Merged into the main/master branch.

Copy link

openshift-ci bot commented Dec 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cameronmwall

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cameronmwall
Copy link
Contributor Author

/hold

@@ -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"`
Copy link
Contributor

@rawagner rawagner Dec 18, 2024

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 a Global section instead of HubConfig ?

Copy link
Contributor

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 into global or their own specific sections in values.yaml.

we will need you to put APIUrl, Target and OCPIngress into global section

@@ -344,6 +346,10 @@ func injectValuesOverrides(values *Values, mch *v1.MultiClusterHub, images map[s

values.HubConfig.OCPIngress = os.Getenv("INGRESS_DOMAIN")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OCPIngress would be necessary at global level, if we used baseDomain it would require no changes on our side but global.OCPIngress is also ok.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is addressed now, thanks.!

Comment on lines 349 to 352
values.HubConfig.APIUrl = os.Getenv("API_URL")

values.HubConfig.Target = "acm"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those two would be necessary at global level

mangelajo pushed a commit to flightctl/flightctl that referenced this pull request Jan 10, 2025
In alignment with the PR here:
  stolostron/multiclusterhub-operator#1877

Co-Authored-By: rawagner <[email protected]>
(cherry picked from commit 1f37b2a)
Signed-off-by: Cameron Wall <[email protected]>
@cameronmwall
Copy link
Contributor Author

/retest

mangelajo pushed a commit to flightctl/flightctl that referenced this pull request Jan 13, 2025
In alignment with the PR here:
  stolostron/multiclusterhub-operator#1877

Co-Authored-By: rawagner <[email protected]>
(cherry picked from commit 1f37b2a)
mangelajo pushed a commit to flightctl/flightctl that referenced this pull request Jan 14, 2025
In alignment with the PR here:
  stolostron/multiclusterhub-operator#1877

Co-Authored-By: rawagner <[email protected]>
(cherry picked from commit 1f37b2a)
rawagner added a commit to flightctl/flightctl that referenced this pull request Jan 14, 2025
In alignment with the PR here:
  stolostron/multiclusterhub-operator#1877

Co-Authored-By: rawagner <[email protected]>
(cherry picked from commit 1f37b2a)

Co-authored-by: rawagner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants