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

updating to k8s 1.30 dependencies and kubebuilder v4 #6848

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

Neo2308
Copy link
Contributor

@Neo2308 Neo2308 commented Oct 29, 2024

Description of the change:
Updating go, k8s, kubebuilder and supporting dependencies to the proper version to support go 1.22 and k8s 1.30.

Motivation for the change:
To keep this project aligned with kubbuilder and support k8s 1.30.

Checklist

If the pull request includes user-facing changes, extra documentation is required:

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 29, 2024
Signed-off-by: Adam D. Cornett <adc@redhat.com>
@@ -83,6 +83,7 @@ func NewCmd() *cobra.Command {

f.AddTo(cmd.Flags())
cmd.Flags().AddGoFlagSet(zapfs)
cmd.MarkFlagsRequiredTogether("metrics-secure", "metrics-authn-authz")
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be tweaked. There's a requirement only in one direction. When metrics-authn-authz is specified, metrics-secure must also be specified. However converse is not true.

There might be existing use of metrics-secure in the wild. If we required metrics-authn-authz to be specified with it, all of those existing usages would break.

We want to require that the connection is secure if credentials are exchanged. But if credentials are not exchanged, we don't care about whether the connection is secure.

Copy link
Contributor

Choose a reason for hiding this comment

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

So sounds like this would need to be custom if logic, since I don't think cobra offers anything like this, unless you know of something?

Copy link
Contributor

Choose a reason for hiding this comment

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

Added the below condition to account for this as an Args function for cobra like we do in other cobra cli's for custom flag validation

c32ccdb#diff-d47d8a84d35cfdd54322d503604e6ff0b2f5454d3f1133bfc4faa8faeb9b476dR78-R83

Signed-off-by: Adam D. Cornett <adc@redhat.com>
@acornett21 acornett21 changed the title (WIP) Fixing builds for k8s 1.30 update updating to k8s 1.30 dependencies and go 1.22 Nov 4, 2024
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 4, 2024
@acornett21 acornett21 changed the title updating to k8s 1.30 dependencies and go 1.22 updating to k8s 1.30 dependencies and kubebuilder v4 Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants