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

Update secret hook commands for new syntax #14432

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

wallyworld
Copy link
Member

This PR is the first of several which will update the secret hook commands to conform to the approved syntax.
The front end is wired up but the apiserver side is still todo.
The create and update commands are done. Still todo is get and remove.

Checklist

If an item is not applicable, use ~strikethrough~.

  • Code style: imports ordered, good names, simple structure, etc
  • Comments saying why design decisions were made
  • Go unit tests, with comments saying what you're testing
  • [ ] Integration tests, with comments saying what you're testing
  • [ ] doc.go added or updated in changed packages

QA steps

None yet - more PRs needed.

@wallyworld wallyworld added the 3.0 label Aug 5, 2022
@wallyworld wallyworld force-pushed the secret-create-update branch 6 times, most recently from ea550c3 to f4914db Compare August 8, 2022 00:43
Copy link
Member

@hpidcock hpidcock left a comment

Choose a reason for hiding this comment

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

Probably need to discuss better names for time periods.

return "", errors.NotValidf("rotate interval %q", arg.RotateInterval)
func toValue[T any](v *T) T {
if v == nil {
return *new(T)
Copy link
Member

Choose a reason for hiding this comment

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

can't this just be

var x T
return x

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, tomato, tomarto?

apiserver/facades/agent/secretsmanager/secrets.go Outdated Show resolved Hide resolved
core/secrets/rotate.go Outdated Show resolved Hide resolved
core/secrets/rotate.go Outdated Show resolved Hide resolved
core/secrets/rotate.go Outdated Show resolved Hide resolved
@wallyworld
Copy link
Member Author

/merge

@jujubot jujubot merged commit 0ffacc3 into juju:develop Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants