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

liqoctl: add identity command #2216

Draft
wants to merge 62 commits into
base: network-external
Choose a base branch
from

Conversation

aleoli
Copy link
Member

@aleoli aleoli commented Dec 13, 2023

Description

This pr implements the generate and the update APIs for certificate rotation. It also restarts pods that are using the certificate.

Now, you can use the liqoctl generate identity command on a cluster and apply the output to the other one.

Note: if the certificate is expired you probably need to update certificates in both directions (applying this couple of commands twice, starting from different clusters)

How Has This Been Tested?

  • locally

@adamjensenbot
Copy link
Collaborator

Hi @aleoli. Thanks for your PR!

I am @adamjensenbot.
You can interact with me issuing a slash command in the first line of a comment.
Currently, I understand the following commands:

  • /rebase: Rebase this PR onto the master branch (You can add the option test=true to launch the tests
    when the rebase operation is completed)
  • /merge: Merge this PR into the master branch
  • /build Build Liqo components
  • /test Launch the E2E and Unit tests
  • /hold, /unhold Add/remove the hold label to prevent merging with /merge

Make sure this PR appears in the liqo changelog, adding one of the following labels:

  • kind/breaking: 💥 Breaking Change
  • kind/feature: 🚀 New Feature
  • kind/bug: 🐛 Bug Fix
  • kind/cleanup: 🧹 Code Refactoring
  • kind/docs: 📝 Documentation

@cheina97 cheina97 force-pushed the network-external branch 2 times, most recently from c281dd6 to 3c6ccec Compare December 21, 2023 09:51
@aleoli aleoli force-pushed the aol/liqoctl-ideneity branch 3 times, most recently from 6ea7c08 to ee112fe Compare December 27, 2023 14:59
@aleoli aleoli marked this pull request as ready for review December 27, 2023 15:48
@aleoli aleoli added the hold Prevent bot merging label Dec 28, 2023
Comment on lines +34 to +54
// output implements the logic to output the generated Configuration resource.
func (o *Options) output(conf *corev1.Secret) error {
var outputFormat string
switch {
case o.generateOptions != nil:
outputFormat = o.generateOptions.OutputFormat
default:
return fmt.Errorf("unable to determine output format")
}
var printer printers.ResourcePrinter
switch outputFormat {
case yamlLabel:
printer = &printers.YAMLPrinter{}
case jsonLabel:
printer = &printers.JSONPrinter{}
default:
return fmt.Errorf("unsupported output format %q", outputFormat)
}

return printer.PrintObj(conf, os.Stdout)
}
Copy link
Member

Choose a reason for hiding this comment

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

This should be moved in generate.go or types.go

@fra98 fra98 added the kind/feature New feature or request label Jan 30, 2024
@fra98 fra98 marked this pull request as draft October 9, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold Prevent bot merging kind/feature New feature or request size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants