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

ACM-6435: add pausedUntil create cluster option in CLI #2965

Merged
merged 7 commits into from Sep 6, 2023
Merged

ACM-6435: add pausedUntil create cluster option in CLI #2965

merged 7 commits into from Sep 6, 2023

Conversation

rokej
Copy link
Contributor

@rokej rokej commented Aug 30, 2023

What this PR does / why we need it:

This PR is to add pausedUntil create cluster option in hcp CLI to support MCE's cluster create/update Ansible automation template. https://issues.redhat.com/browse/ACM-1368

MCE is integrated with Red Hat Ansible Automation Platform so that you can create prehook and posthook Ansible job instances that occur before or after creating or upgrading hive clusters. MCE should provide users same experience with hosted clusters. This requires an ability to pause cluster provisioning so that prehook job can be executed before cluster creation. MCE's cluster curator controller orchestrates this and clears the spec.pausedUntil from the HostedCluster and NodePools when the conditions are met.

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

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

Signed-off-by: Roke Jung <roke@redhat.com>
@bryan-cox
Copy link
Member

bryan-cox commented Aug 30, 2023

/retitle: ACM-6435: add pausedUntil create cluster option in CLI

@openshift-ci openshift-ci bot requested review from csrwng and enxebre August 30, 2023 19:58
@openshift-ci openshift-ci bot added area/cli Indicates the PR includes changes for CLI area/hypershift-operator Indicates the PR includes changes for the hypershift operator and API - outside an OCP release and removed do-not-merge/needs-area labels Aug 30, 2023
@openshift-ci openshift-ci bot changed the title add pausedUntil create cluster option in CLI : ACM-6435: add pausedUntil create cluster option in CLI Aug 30, 2023
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 30, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Aug 30, 2023

@rokej: This pull request references ACM-6435 which is a valid jira issue.

In response to this:

What this PR does / why we need it:

This PR is to add pausedUntil create cluster option in hcp CLI to support MCE's cluster create/update Ansible automation template. https://issues.redhat.com/browse/ACM-1368

MCE's cluster curator controller will clear the spec.pausedUntil from the HostedCluster and NodePools when the conditions are met.

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

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

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.

@bryan-cox
Copy link
Member

bryan-cox commented Aug 31, 2023

/retitle ACM-6435: add pausedUntil create cluster option in CLI

@openshift-ci openshift-ci bot changed the title : ACM-6435: add pausedUntil create cluster option in CLI ACM-6435: add pausedUntil create cluster option in CLI Aug 31, 2023
@rokej
Copy link
Contributor Author

rokej commented Aug 31, 2023

/retest

1 similar comment
@rokej
Copy link
Contributor Author

rokej commented Aug 31, 2023

/retest

cmd/cluster/core/create.go Outdated Show resolved Hide resolved
cmd/cluster/core/create.go Outdated Show resolved Hide resolved
Co-authored-by: Bryan Cox <brcox@redhat.com>
@netlify
Copy link

netlify bot commented Sep 1, 2023

Deploy Preview for hypershift-docs ready!

Name Link
🔨 Latest commit 5143770
🔍 Latest deploy log https://app.netlify.com/sites/hypershift-docs/deploys/64f1eeee666b590008b7bd84
😎 Deploy Preview https://deploy-preview-2965--hypershift-docs.netlify.app
📱 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 configuration.

Signed-off-by: Roke Jung <roke@redhat.com>
Signed-off-by: Roke Jung <roke@redhat.com>
Copy link
Member

@bryan-cox bryan-cox 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 Sep 1, 2023
@enxebre
Copy link
Member

enxebre commented Sep 5, 2023

Can you elaborate on the value of creating a paused cluster? how are you planning to cleanup the field?
If we move forward with this can we please add the same flag to the dev cli so product one is a subset of the dev one.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Sep 5, 2023

@rokej: This pull request references ACM-6435 which is a valid jira issue.

In response to this:

What this PR does / why we need it:

This PR is to add pausedUntil create cluster option in hcp CLI to support MCE's cluster create/update Ansible automation template. https://issues.redhat.com/browse/ACM-1368

MCE is integrated with Red Hat Ansible Automation Platform so that you can create prehook and posthook Ansible job instances that occur before or after creating or upgrading hive clusters. MCE should provide users same experience with hosted clusters. This requires an ability to pause cluster provisioning so that prehook job can be executed before cluster creation. MCE's cluster curator controller orchestrates this and clears the spec.pausedUntil from the HostedCluster and NodePools when the conditions are met.

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

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

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.

@rokej
Copy link
Contributor Author

rokej commented Sep 5, 2023

@enxebre Please see the updated PR description for the value of creating a paused cluster. The dev CLI was updated as well.

Signed-off-by: Roke Jung <roke@redhat.com>
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 5, 2023
@enxebre
Copy link
Member

enxebre commented Sep 5, 2023

/approve

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 5, 2023
Copy link
Member

@bryan-cox bryan-cox 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 Sep 5, 2023
Signed-off-by: Roke Jung <roke@redhat.com>
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 5, 2023
Signed-off-by: Roke Jung <roke@redhat.com>
Copy link
Member

@bryan-cox bryan-cox 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 Sep 5, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 5, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bryan-cox, enxebre, rokej

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-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 068f642 and 2 for PR HEAD 21c0c17 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD ca52dd7 and 1 for PR HEAD 21c0c17 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 9fbb713 and 0 for PR HEAD 21c0c17 in total

@openshift-ci-robot
Copy link

/hold

Revision 21c0c17 was retested 3 times: holding

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 6, 2023
@rokej
Copy link
Contributor Author

rokej commented Sep 6, 2023

/test e2e-aws

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 6, 2023

@rokej: The following tests 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/e2e-ibmcloud-iks 21c0c17 link false /test e2e-ibmcloud-iks
ci/prow/e2e-ibmcloud-roks 21c0c17 link false /test e2e-ibmcloud-roks

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.

@rokej
Copy link
Contributor Author

rokej commented Sep 6, 2023

/test e2e-aws

@rokej
Copy link
Contributor Author

rokej commented Sep 6, 2023

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 6, 2023
@openshift-merge-robot openshift-merge-robot merged commit 27d1f37 into openshift:main Sep 6, 2023
13 of 15 checks passed
@rokej rokej deleted the cli-pausedUntil branch September 7, 2023 00:31
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. area/cli Indicates the PR includes changes for CLI area/hypershift-operator Indicates the PR includes changes for the hypershift operator and API - outside an OCP release jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. 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

5 participants