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

PXP-10558 gen3 kube-setup-pelicanjob creates Fence client #2153

Merged
merged 3 commits into from
Feb 14, 2023

Conversation

paulineribeyre
Copy link
Contributor

@paulineribeyre paulineribeyre commented Feb 13, 2023

Jira Ticket: PXP-10558

see uc-cdis/pelican#69

New Features

  • The gen3 kube-setup-pelicanjob command now create a Fence OIDC client for use by the Pelican export job

Breaking Changes

Bug Fixes

Improvements

Dependency updates

Deployment changes

gen3_log_info "kube-setup-sower-jobs" "creating fence oidc client for $hostname"
secrets=$(g3kubectl exec -c fence $(gen3 pod fence) -- fence-create client-create --client pelican-export-job --grant-types client_credentials | tail -1)
# secrets looks like ('CLIENT_ID', 'CLIENT_SECRET')
if [[ ! $secrets =~ (\'(.*)\', \'(.*)\') ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

just a thought, we could use regex on this statement to simplify it a bit. This is fine though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah maybe
though this is a copy/paste of how it's written everywhere else in cloud-automation, so it's consistent 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants