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 k8s toolchain to 1.19.0 #3166

Merged
merged 20 commits into from Aug 27, 2020
Merged

Conversation

meyskens
Copy link
Contributor

@meyskens meyskens commented Aug 10, 2020

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:

Bump Kubernetes dependencies to 1.19

@jetstack-bot jetstack-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. labels Aug 10, 2020
@jetstack-bot jetstack-bot added area/acme Indicates a PR directly modifies the ACME Issuer code area/testing Issues relating to testing approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 10, 2020
@jetstack-bot jetstack-bot added the area/deploy Indicates a PR modifies deployment configuration label Aug 10, 2020
@meyskens
Copy link
Contributor Author

/kind cleanup

@jetstack-bot jetstack-bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Aug 10, 2020
@meyskens meyskens mentioned this pull request Aug 10, 2020
Copy link
Collaborator

@JoshVanL JoshVanL left a 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

test/integration/framework/apiserver.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@meyskens
Copy link
Contributor Author

Due to Go modules not a hard requirement any longer.

/hold till 1.19 is out

@jetstack-bot jetstack-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 10, 2020
@meyskens meyskens added this to the v1.0 milestone Aug 12, 2020
@jetstack-bot jetstack-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 12, 2020
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
@jetstack-bot jetstack-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 26, 2020
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
@meyskens meyskens changed the title Update k8s toolchain to 0.19.0-rc.3 Update k8s toolchain to 0.19.0-rc.4 Aug 26, 2020
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>
@meyskens meyskens changed the title Update k8s toolchain to 0.19.0-rc.4 Update k8s toolchain to 1.19.0 Aug 27, 2020
@meyskens
Copy link
Contributor Author

/test pull-cert-manager-e2e-v1-17
/test pull-cert-manager-e2e-v1-16
/test pull-cert-manager-e2e-v1-15
/test pull-cert-manager-e2e-v1-14
/test pull-cert-manager-e2e-v1-13
/test pull-cert-manager-e2e-v1-12
/test pull-cert-manager-e2e-v1-11

meyskens and others added 2 commits August 27, 2020 11:02
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Copy link
Collaborator

@JoshVanL JoshVanL left a 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.

pkg/acme/webhook/cmd/server/start.go Outdated Show resolved Hide resolved
pkg/webhook/server/server.go Outdated Show resolved Hide resolved
pkg/webhook/server/server.go Outdated Show resolved Hide resolved
test/integration/certificates/issuing_controller_test.go Outdated Show resolved Hide resolved
test/integration/certificates/issuing_controller_test.go Outdated Show resolved Hide resolved
@JoshVanL
Copy link
Collaborator

/test pull-cert-manager-e2e-v1-19
/test pull-cert-manager-e2e-v1-17
/test pull-cert-manager-e2e-v1-16
/test pull-cert-manager-e2e-v1-15
/test pull-cert-manager-e2e-v1-14
/test pull-cert-manager-e2e-v1-13
/test pull-cert-manager-e2e-v1-12
/test pull-cert-manager-e2e-v1-11

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>
@meyskens
Copy link
Contributor Author

/test pull-cert-manager-e2e-v1-19
/test pull-cert-manager-e2e-v1-17
/test pull-cert-manager-e2e-v1-16
/test pull-cert-manager-e2e-v1-15
/test pull-cert-manager-e2e-v1-14
/test pull-cert-manager-e2e-v1-13
/test pull-cert-manager-e2e-v1-12
/test pull-cert-manager-e2e-v1-11

Copy link
Member

@wallrj wallrj left a 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)
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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


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"
Copy link
Member

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.

Copy link
Contributor Author

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
})
Copy link
Member

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...))
}
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -26,6 +26,8 @@ import (
"net/http"
"time"

"github.com/jetstack/cert-manager/pkg/webhook/server/util"
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 27, 2020
@jetstack-bot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@meyskens
Copy link
Contributor Author

/hold

Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
@jetstack-bot jetstack-bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 27, 2020
@meyskens
Copy link
Contributor Author

/unhold

@jetstack-bot jetstack-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 27, 2020
@meyskens
Copy link
Contributor Author

Server terminated abruptly (error code: 14, error message: 'Connect Failed', log file: '/bazel-scratch/.cache/bazel/_bazel_root/e50ce42c8209d553b7e7491e69e67e89/server/jvm.out')

seems we're pushing our infra a bit...

/test pull-cert-manager-e2e-v1-18

@wallrj
Copy link
Member

wallrj commented Aug 27, 2020

/lgtm

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 27, 2020
@jetstack-bot jetstack-bot merged commit 6f2fc8e into cert-manager:master Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/acme Indicates a PR directly modifies the ACME Issuer code area/deploy Indicates a PR modifies deployment configuration area/testing Issues relating to testing dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants