-
Notifications
You must be signed in to change notification settings - Fork 138
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
Replace wif models and client with sdk #643
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use audience and impersonator email from the sdk.
I found issues with the wif templates that need to be addressed before this is merged |
cmd/ocm/gcp/delete-wif-config.go
Outdated
if err != nil { | ||
log.Fatalf("failed to create backend client: %v", err) | ||
log.Fatal(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does the end user see when this happens ? error stack ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we previously discussed bubbling up the errors to the caller and allow the top level "Run" function decide how to handle/display the error.
I dont see these kind of Fatal log msgs anywhere in the else in the ocm or rosa cli code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An example error:
➜ go run ./cmd/ocm gcp delete wif-config 2crdacmjbo3jmdgfn4dq791a7nig04qg
2024/07/30 14:25:07 Not logged in, credentials aren't set, run the 'login' command
exit status 1
This is the top level Run function.
@JakobGray : Across the board please fix error handling to be similar to be rest of ocm cli. |
Because this PR is not intended to introduce changes in functionality I don't want to extend it's scope to address all error handling. I believe we have a ticket already to address error handling more gracefully so I think that kind of change is better addressed there. |
@JakobGray I raised this in the original MR as well Can we please sort this out now rather than later you are anyway touching all the same files |
The original MR addressed it by removing any panics and surfacing all errors to the top level function. This latest commit takes it a step further by removing all |
-416843e OSD-24332 Adding CNI Type to the printed output. -ca71863 Introduce gcp WIF sub-commands to manage wif-configs (#619) -5f9697b multi arch release images (#631) -951d7cd Red Hat Konflux update ocm-cli (#633) -2604647 Limit Konflux Pipeline Runs (#634) -9645301 Update Konflux references (#635) -c797dfb Update Konflux references to 0dc3087 -28b521d support hermetic build (#636) -3117d6b Update Konflux references to 9eee3cf -d228140 Update Konflux references to 71270c3 -0ff233b update konflux pipeline (#641) -ae2093b Update Konflux references -2ae4aa0 Update Konflux references -bdd172b Update Konflux references to f93024e -d750acc Red Hat Konflux update ocm-cli Signed-off-by: red-hat-konflux <[email protected]> -0bbcf6e Update Konflux references -21ff6b8 Replace wif models and client with sdk (#643) -c3d52e2 Update Konflux build (#651) -8073ef8 release_version (#652) -e9a014d Update Konflux references -78317e9 Add 'wif-config' flag as cluster create option -49f4e41 Set project number on wif config creation -e441c1b Update Konflux references -ca8d9db Support listing and parameters in 'gcp get wif-config' (#656)
-416843e OSD-24332 Adding CNI Type to the printed output. -ca71863 Introduce gcp WIF sub-commands to manage wif-configs (#619) -5f9697b multi arch release images (#631) -951d7cd Red Hat Konflux update ocm-cli (#633) -2604647 Limit Konflux Pipeline Runs (#634) -9645301 Update Konflux references (#635) -c797dfb Update Konflux references to 0dc3087 -28b521d support hermetic build (#636) -3117d6b Update Konflux references to 9eee3cf -d228140 Update Konflux references to 71270c3 -0ff233b update konflux pipeline (#641) -ae2093b Update Konflux references -2ae4aa0 Update Konflux references -bdd172b Update Konflux references to f93024e -d750acc Red Hat Konflux update ocm-cli Signed-off-by: red-hat-konflux <[email protected]> -0bbcf6e Update Konflux references -21ff6b8 Replace wif models and client with sdk (#643) -c3d52e2 Update Konflux build (#651) -8073ef8 release_version (#652) -e9a014d Update Konflux references -78317e9 Add 'wif-config' flag as cluster create option -49f4e41 Set project number on wif config creation -e441c1b Update Konflux references -ca8d9db Support listing and parameters in 'gcp get wif-config' (#656)
-416843e OSD-24332 Adding CNI Type to the printed output. -ca71863 Introduce gcp WIF sub-commands to manage wif-configs (#619) -5f9697b multi arch release images (#631) -951d7cd Red Hat Konflux update ocm-cli (#633) -2604647 Limit Konflux Pipeline Runs (#634) -9645301 Update Konflux references (#635) -c797dfb Update Konflux references to 0dc3087 -28b521d support hermetic build (#636) -3117d6b Update Konflux references to 9eee3cf -d228140 Update Konflux references to 71270c3 -0ff233b update konflux pipeline (#641) -ae2093b Update Konflux references -2ae4aa0 Update Konflux references -bdd172b Update Konflux references to f93024e -d750acc Red Hat Konflux update ocm-cli Signed-off-by: red-hat-konflux <[email protected]> -0bbcf6e Update Konflux references -21ff6b8 Replace wif models and client with sdk (#643) -c3d52e2 Update Konflux build (#651) -8073ef8 release_version (#652) -e9a014d Update Konflux references -78317e9 Add 'wif-config' flag as cluster create option -49f4e41 Set project number on wif config creation -e441c1b Update Konflux references -ca8d9db Support listing and parameters in 'gcp get wif-config' (#656)
This PR will
cmd/ocm/gcp
with the official SDK models and clientIt is not intended to introduce changes in functionality; however some changes were necessary to handle custom roles.