OCPBUGS-61001: v2/clusterresources: add def namespace to UpdateService#1262
OCPBUGS-61001: v2/clusterresources: add def namespace to UpdateService#1262r4f4 wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
@r4f4: This pull request references Jira Issue OCPBUGS-61001, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/hold |
|
/jira refresh |
|
@r4f4: This pull request references Jira Issue OCPBUGS-61001, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
aguidirh
left a comment
There was a problem hiding this comment.
I jut realized that my code review for this PR was pending for a long time, sorry about that.
| err := cr.UpdateServiceGenerator(graphImage, releaseImage) | ||
| if err != nil { | ||
| t.Fatalf("should not fail") | ||
| } | ||
| assert.NoError(t, err) | ||
|
|
||
| _, err = os.Stat(filepath.Join(workingDir, clusterResourcesDir)) | ||
| if err != nil { | ||
| t.Fatalf("output folder should exist") | ||
| } | ||
| assert.NoError(t, err, "output folder should exist") | ||
|
|
||
| resourceFiles, err := os.ReadDir(filepath.Join(workingDir, clusterResourcesDir)) | ||
| if err != nil { | ||
| t.Fatalf("ls output folder should not fail") | ||
| } | ||
|
|
||
| if len(resourceFiles) != 1 { | ||
| t.Fatalf("output folder should contain 1 updateservice.yaml file") | ||
| } | ||
| assert.NoError(t, err, "ls output folder should not fail") | ||
|
|
||
| assert.Len(t, resourceFiles, 1, "output folder should contain 1 updateservice.yaml file") | ||
| assert.Equal(t, updateServiceFilename, resourceFiles[0].Name()) |
There was a problem hiding this comment.
Thanks for simplifying the test code with the assert module.
|
@r4f4 once PR is rebased I will add the required labels. |
According to our docs, the default/recommended namespace is "openshift-update-service" [1]. If users want to use a custom namespace, they can edit the generated updateService.yaml file. [1] https://docs.redhat.com/en/documentation/openshift_container_platform/4.19/html-single/disconnected_environments/index#update-service-install-web-console_updating-disconnected-cluster-osus
9983ba0 to
f4d093c
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: r4f4 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@r4f4: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
/lifecycle frozen |
|
@aguidirh: The DetailsIn response to this:
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-sigs/prow repository. |
|
PR needs rebase. DetailsInstructions 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-sigs/prow repository. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Description
According to our docs, the default/recommended namespace is "openshift-update-service" [1]. If users want to use a custom namespace, they can edit the generated updateService.yaml file.
[1] https://docs.redhat.com/en/documentation/openshift_container_platform/4.19/html-single/disconnected_environments/index#update-service-install-web-console_updating-disconnected-cluster-osus
Github / Jira issue: OCPBUGS-61001
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
WIP
Expected Outcome
updateService.yamlfile contains the"openshift-update-service"namespace.