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 k8s toolchain to 1.19.0 #3166
Conversation
/kind cleanup |
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.
Just a couple comments from me :)
/assign @meyskens
Due to Go modules not a hard requirement any longer. /hold till 1.19 is out |
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
/test pull-cert-manager-e2e-v1-17 |
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
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.
Couple things from me.
/test pull-cert-manager-e2e-v1-19 |
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
/test pull-cert-manager-e2e-v1-19 |
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.
Just a few nits which you can feel free to ignore if you prefer.
/lgtm
@@ -186,7 +186,7 @@ func buildControllerContext(ctx context.Context, stopCh <-chan struct{}, opts *o | |||
intscheme.AddToScheme(scheme.Scheme) | |||
log.V(logf.DebugLevel).Info("creating event broadcaster") | |||
eventBroadcaster := record.NewBroadcaster() | |||
eventBroadcaster.StartLogging(log.V(logf.DebugLevel).Info) | |||
eventBroadcaster.StartLogging(logf.WithInfof(log.V(logf.DebugLevel)).Infof) |
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.
This is the fix for the logging panic.
go.mod
Outdated
k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6 | ||
k8s.io/kubectl v0.19.0 | ||
k8s.io/utils v0.0.0-20200729134348-d5654de09c73 | ||
sigs.k8s.io/controller-runtime v0.6.1-0.20200728202347-cea989b02ed0 |
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.
I think there's a 0.6.2 version available : https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.6.2
pkg/ctl/scheme.go
Outdated
|
||
acmeinstall "github.com/jetstack/cert-manager/pkg/internal/apis/acme/install" | ||
cminstall "github.com/jetstack/cert-manager/pkg/internal/apis/certmanager/install" | ||
metainstall "github.com/jetstack/cert-manager/pkg/internal/apis/meta/install" |
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.
Sorry to be a pain, but why did the cert-manager imports move to the top?
I thought convention was to put them in a separate block at the bottom.
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.
Fixed
} | ||
b.(*corev1.List).Items = metaList.Items | ||
return nil | ||
}) |
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.
How weird that the core API package doesn't have an install
and doesn't include the conversions.
|
||
func (l *LogWithFormat) Infof(format string, a ...interface{}) { | ||
l.Info(fmt.Sprintf(format, a...)) | ||
} |
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.
Maybe worth a comment or two explaining why this is here and whether in future we expect to be able to just use klog directly?
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.
done
pkg/webhook/server/server.go
Outdated
@@ -26,6 +26,8 @@ import ( | |||
"net/http" | |||
"time" | |||
|
|||
"github.com/jetstack/cert-manager/pkg/webhook/server/util" |
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.
Nit: move this with the other CM imports.
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.
fixed
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: meyskens, wallrj 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 |
/hold |
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
/unhold |
seems we're pushing our infra a bit... /test pull-cert-manager-e2e-v1-18 |
/lgtm |
What this PR does / why we need it:
This updates all our dependancies to Kubernetes v1.19-rc.3.
This is a requirement to use klog v2 see #3143. This is why this is still the RC version, we will upgrade to stable as soon as possible which will be in time for our v1.0 release.
This PR is split out of #3143 as a lot was changed in the API machinery causing us to fix some issues,
Special notes for your reviewer:
This was cherry picked out of #3143 if you see changes that look weird please say so
Removed due to squashing but big thanks to @JoshVanL to help spit out the conversion bugs we found
Release note: