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

Keywords for management of components #1085

Merged

Conversation

jiripetrlik
Copy link
Contributor

No description provided.

@jiripetrlik jiripetrlik force-pushed the fix-ds-cluster-name branch 2 times, most recently from ff89545 to 35399da Compare December 18, 2023 16:28
Copy link
Contributor

github-actions bot commented Dec 18, 2023

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
391 0 0 391 100

sutaakar
sutaakar previously approved these changes Dec 19, 2023
Copy link
Contributor

@sutaakar sutaakar left a comment

Choose a reason for hiding this comment

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

Looks good to me

@jiripetrlik jiripetrlik force-pushed the fix-ds-cluster-name branch 2 times, most recently from 24c4341 to 8d26748 Compare January 3, 2024 17:30
sutaakar
sutaakar previously approved these changes Jan 4, 2024
@jstourac
Copy link
Member

jstourac commented Jan 4, 2024

LGTM, one proposal for an improvement would be to unify the code - so these two keywords would use one common implementation by addition also the operation parameter. WDYT @jiripetrlik ?

Copy link
Member

@jstourac jstourac left a comment

Choose a reason for hiding this comment

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

One comment, otherwise LGTM.

[Arguments] ${component} ${state}
${result} = Run Process oc get datascienceclusters.datasciencecluster.opendatahub.io -o name
... shell=true stderr=STDOUT
IF $result.stdout == ""

Check notice

Code scanning / Robocop

IF can be replaced with inline IF Note

IF can be replaced with inline IF
Copy link

sonarqubecloud bot commented Jan 4, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

FAIL Can not find datasciencecluster
END
${cluster_name} = Set Variable ${result.stdout}
${result} = Run Process oc patch ${cluster_name} --type 'json' -p '[{"op" : "replace" ,"path" : "/spec/components/${component}/managementState" ,"value" : "${state}"}]'

Check warning

Code scanning / Robocop

Line is too long ({{ line_length }}/{{ allowed_length }}) Warning

Line is too long (178/120)
Copy link
Member

@jstourac jstourac left a comment

Choose a reason for hiding this comment

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

LGTM, once tested properly (could you please share a CI?) I'm all for merge this.

@jiripetrlik jiripetrlik added the verified This PR has been tested with Jenkins label Jan 4, 2024
@jiripetrlik
Copy link
Contributor Author

I was able to successfully run this with Jenkins. @sutaakar @jstourac @jgarciao Can we merge now?

@jstourac jstourac added the enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) label Jan 4, 2024
@jgarciao jgarciao merged commit 915796f into red-hat-data-services:master Jan 5, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) verified This PR has been tested with Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants