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 PowerVS Ingress Operator Changes #1458

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

dharaneeshvrd
Copy link
Member

@dharaneeshvrd dharaneeshvrd commented Jun 13, 2022

What this PR does / why we need it:

Added changes for ingress operator https://github.com/openshift/cloud-ingress-operator respect to powervs cloud.
Where secret named cloud-credentials and CIS CRN, PowerVS Region and Zone details are required.

Introduced IngressOperatorCloudCreds in hostedcluster_types.go to create this cloud-credentials secret. Added this as a new secret, so that when we are handling granular permissions in future, we can add appropriate permissions with respect to ingress operator to this secret alone.

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #

Checklist

  • [ x] Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

@dharaneeshvrd
Copy link
Member Author

/cc @mkumatag

@openshift-ci openshift-ci bot requested a review from mkumatag June 13, 2022 14:47
@netlify
Copy link

netlify bot commented Jun 13, 2022

Deploy Preview for hypershift-docs ready!

Name Link
🔨 Latest commit a47abed
🔍 Latest deploy log https://app.netlify.com/sites/hypershift-docs/deploys/62b54c4f71cdc20009d159d0
😎 Deploy Preview https://deploy-preview-1458--hypershift-docs.netlify.app/reference/api
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@openshift-ci openshift-ci bot requested review from csrwng and enxebre June 13, 2022 14:51
// This field is immutable. Once set, It can't be changed.
//
// +immutable
CISInstanceCRN string `json:"cisInstanceCRN"`
Copy link
Member

Choose a reason for hiding this comment

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

can we do any allowed input validation here? can we add an example to the // doc?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a validation here. But this will be generated by the Infra creation process by getting the UUID of the base-domain passed. We already talked about CIS base domain in prerequisite section of PowerVS how-to guide.

// credentials for ingress operator to get authenticated with ibm cloud.
//
// +immutable
IngressOperatorCloudCreds corev1.LocalObjectReference `json:"ingressOperatorCloudCreds"`
Copy link
Member

Choose a reason for hiding this comment

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

why is this needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated the PR description, please check.

@enxebre
Copy link
Member

enxebre commented Jun 20, 2022

I can see the "what" this code doing, but could you please elaborate in the PR and commit desc the "why" these changes are needed? e.g this introduces a IngressOperatorCloudCreds because... (what's solving not possible without it?)

@dharaneeshvrd
Copy link
Member Author

@enxebre Updated the PR description, please have a look.

@csrwng
Copy link
Contributor

csrwng commented Jun 23, 2022

/lgtm
/approve

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 23, 2022
@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 23, 2022
@csrwng
Copy link
Contributor

csrwng commented Jun 23, 2022

@dharaneeshvrd looks like you need to rebase
/lgtm cancel

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 23, 2022
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 24, 2022
@dharaneeshvrd
Copy link
Member Author

/retest-required

Copy link
Member

@mkumatag mkumatag left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 24, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 24, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: csrwng, dharaneeshvrd, mkumatag

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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 24, 2022

@dharaneeshvrd: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/capi-provider-agent-sanity a47abed link false /test capi-provider-agent-sanity

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-ci openshift-ci bot merged commit bb670aa into openshift:main Jun 24, 2022
@dharaneeshvrd dharaneeshvrd deleted the powervs-ingress branch July 22, 2022 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants