-
Notifications
You must be signed in to change notification settings - Fork 53
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
upgrade to k8s 1.28 #306
upgrade to k8s 1.28 #306
Conversation
f8a3d21
to
6a939a3
Compare
@@ -67,9 +68,10 @@ func main() { | |||
ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts))) | |||
|
|||
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{ | |||
Scheme: scheme, | |||
MetricsBindAddress: metricsAddr, | |||
Port: 9443, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielvegamyhre this is one issue I am unsure on.
I am not sure what 9443 corresponds too and what that option is now.
/hold
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The port was for the webhook server.
The metricsAddr that you have :8080
from the flag is being set on the now new server.Options{BindAddress: ":8080"}
The webhook has it's own options now set using WebhookServer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for helping on that one. Added this.
@@ -231,6 +231,8 @@ CODEGEN_ROOT = $(shell $(GO_CMD) env GOMODCACHE)/k8s.io/code-generator@$(CODEGEN | |||
code-generator: | |||
@GOBIN=$(PROJECT_DIR)/bin GO111MODULE=on $(GO_CMD) install k8s.io/code-generator/cmd/client-gen@$(CODEGEN_VERSION) | |||
cp -f $(CODEGEN_ROOT)/generate-groups.sh $(PROJECT_DIR)/bin/ | |||
cp -f $(CODEGEN_ROOT)/generate-internal-groups.sh $(PROJECT_DIR)/bin/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did running generate-internal-groups.sh
become necessary for 1.28?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk but it fails without it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is deprecated actually so maybe it won't follow normal behavior. :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to set the webhook server at :9443, you can do that with the WebhookServer and it's options.
6a939a3
to
4eaa68c
Compare
/hold cancel |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielvegamyhre, kannon92 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #304