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 keyword to find cluster type based on cluster infrastructure #2154

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

ChughShilpa
Copy link
Contributor

@ChughShilpa ChughShilpa commented Jan 3, 2025

This PR

  • Removes keyword "Is Cluster Type Self-Managed" as it was suggested not to rely on console url to find cluster type
  • In all self-managed clusters, there is no common key in "oc get infrastructure cluster" output which can be used to
    identify the cluster-type
  • There is one common key in all managed clusters which i found useful to identify the cluster-type
    {
                         "key": "red-hat-managed",
                         "value": "true"
                     }
    

- Adds a keyword "Is Cluster Type Managed" to find the cluster type based on cluster infrastructure

 

Copy link

sonarqubecloud bot commented Jan 3, 2025

... Returns ${TRUE} if cluster type is Managed
... Returns ${FALSE} if cluster type is Self-Managed
${rc} ${output}= Run And Return Rc And Output
... oc get infrastructure cluster -o jsonpath='{.status.platformStatus.*.resourceTags[?(@.key=="red-hat-managed")].value}'

Check warning

Code scanning / Robocop

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

Line is too long (129/120)
Copy link
Contributor

github-actions bot commented Jan 3, 2025

Robot Results

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

@jgarciao jgarciao self-requested a review January 7, 2025 09:30
@jgarciao jgarciao merged commit 1157066 into red-hat-data-services:master Jan 7, 2025
11 checks passed
@ChughShilpa ChughShilpa deleted the managed branch January 7, 2025 10:11
lenahorsley pushed a commit to lenahorsley/ods-ci that referenced this pull request Jan 17, 2025
@ChughShilpa ChughShilpa restored the managed branch February 18, 2025 07:27
@ChughShilpa ChughShilpa deleted the managed branch February 18, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants