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

Introduce gcp WIF sub-commands to manage wif-configs #619

Merged
merged 7 commits into from
Jul 2, 2024

Conversation

JakobGray
Copy link
Contributor

@JakobGray JakobGray commented May 28, 2024

This PR introduces sub-commands for workload identity federation under a new gcp command:

  • ocm gcp create wif-config --name=<name> --project=<project>
  • ocm gcp delete wif-config <id>
  • ocm gcp get wif-config <id>
  • ocm gcp list wif-config
  • ocm gcp describe wif-config <id>
  • ocm gcp update wif-config <id> [unimplemented]
  • ocm gcp generate <id>

These commands allow users to prepare and manage workload identity configurations in order to deploy clusters using the new method

Copy link
Collaborator

@renan-campos renan-campos left a comment

Choose a reason for hiding this comment

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

So far I've looked over output/tables/wifconfigs.yaml and create-wif-config.go.

pkg/output/tables/wifconfigs.yaml Outdated Show resolved Hide resolved
cmd/ocm/gcp/gcp.go Outdated Show resolved Hide resolved
cmd/ocm/gcp/gcp.go Show resolved Hide resolved
cmd/ocm/gcp/gcp.go Outdated Show resolved Hide resolved
cmd/ocm/gcp/create-wif-config.go Show resolved Hide resolved
cmd/ocm/gcp/create-wif-config.go Show resolved Hide resolved
cmd/ocm/gcp/create-wif-config.go Outdated Show resolved Hide resolved
cmd/ocm/gcp/create-wif-config.go Outdated Show resolved Hide resolved
cmd/ocm/gcp/create-wif-config.go Show resolved Hide resolved
cmd/ocm/gcp/create-wif-config.go Outdated Show resolved Hide resolved
cmd/ocm/gcp/gcp.go Outdated Show resolved Hide resolved
@JakobGray JakobGray marked this pull request as ready for review June 24, 2024 15:13
@JakobGray JakobGray changed the title DRAFT: WIP gcp wif commands gcp wif commands Jun 25, 2024
@JakobGray JakobGray force-pushed the gcp-wif branch 3 times, most recently from b1becc9 to 5cd8d8a Compare June 25, 2024 14:45
Copy link
Collaborator

@renan-campos renan-campos left a comment

Choose a reason for hiding this comment

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

This is a large PR, and I did my best to give it a thorough review. I really like the way the code is structured. I numbered the way that I went through the code and the commands. I then looked at the helper files in the order github has them. I think some discussion is needed on some points, which we can do tomorrow during the usual sync.

cmd/ocm/main.go Outdated Show resolved Hide resolved
cmd/ocm/gcp/gcp.go Show resolved Hide resolved
cmd/ocm/gcp/create-wif-config.go Outdated Show resolved Hide resolved
cmd/ocm/gcp/create-wif-config.go Show resolved Hide resolved
cmd/ocm/gcp/create-wif-config.go Outdated Show resolved Hide resolved
cmd/ocm/gcp/list-wif-config.go Show resolved Hide resolved
cmd/ocm/gcp/scripting.go Outdated Show resolved Hide resolved
cmd/ocm/gcp/generate-wif-script.go Show resolved Hide resolved
cmd/ocm/gcp/generate-wif-script.go Show resolved Hide resolved
cmd/ocm/gcp/iam.go Outdated Show resolved Hide resolved
@JakobGray JakobGray changed the title gcp wif commands Introduce gcp WIF sub-commands to manage wif-configs Jun 27, 2024
cmd/ocm/gcp/list-wif-config.go Outdated Show resolved Hide resolved
@renan-campos renan-campos merged commit ca71863 into openshift-online:main Jul 2, 2024
4 of 5 checks passed
ckandag added a commit that referenced this pull request Aug 8, 2024
-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)
ckandag added a commit that referenced this pull request Aug 8, 2024
-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)
@ckandag ckandag mentioned this pull request Aug 8, 2024
renan-campos pushed a commit that referenced this pull request Aug 8, 2024
-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)
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