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 chart requirements #6167

Merged
merged 1 commit into from
Sep 15, 2020
Merged

Update chart requirements #6167

merged 1 commit into from
Sep 15, 2020

Conversation

aledbf
Copy link
Member

@aledbf aledbf commented Sep 15, 2020

What this PR does / why we need it:

  • Require k8s v1.16 or higher
  • Update admissionregistration to v1
  • Add webhooks apiVersions v1
  • Enable mimalloc by default
  • Update jettech/kube-webhook-certgen to v1.3.0
  • Switch webhooks service to networking instead extensions

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Which issue/s this PR fixes

How Has This Been Tested?

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 15, 2020
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 15, 2020
@aledbf
Copy link
Member Author

aledbf commented Sep 15, 2020

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 15, 2020
@aledbf
Copy link
Member Author

aledbf commented Sep 15, 2020

/assign @ChiefAlexander

@@ -12,10 +12,10 @@ webhooks:
- name: validate.nginx.ingress.kubernetes.io
rules:
- apiGroups:
- extensions
- networking.k8s.io
apiVersions:
- v1beta1
Copy link
Contributor

Choose a reason for hiding this comment

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

cant you remove this as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, if we want to support k8s between 1.16 and 1.19

clientConfig:
service:
namespace: {{ .Release.Namespace }}
name: {{ include "ingress-nginx.controller.fullname" . }}-admission
path: /extensions/v1beta1/ingresses
path: /networking/v1beta1/ingresses
Copy link
Contributor

Choose a reason for hiding this comment

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

is this still v1beta1? My short googling failed me in finding that answer.

Copy link
Member Author

Choose a reason for hiding this comment

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

v1 is available since v1.19.

@ChiefAlexander
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 15, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aledbf, ChiefAlexander

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

@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 15, 2020
@aledbf aledbf merged commit 27598b5 into kubernetes:master Sep 15, 2020
@aledbf aledbf deleted the chart branch September 16, 2020 10:36
@@ -293,7 +293,7 @@ controller:
## Enable mimalloc as a drop-in replacement for malloc.
## ref: https://github.com/microsoft/mimalloc
##
enableMimalloc: false
enableMimalloc: true
Copy link
Contributor

@sslavic sslavic Oct 5, 2020

Choose a reason for hiding this comment

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

@aledbf was there any special reason to enable mimalloc by default as part of raising min requirement to k8s 1.16 APIs?

If not, wish enabling mimalloc by default was a separate PR (or part of default config changes PR) and had changelog entry. I guess changelog entry can be added still for previous release.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking again, I guess it makes sense, default config changes were for ingress-nginx binary defaults, while chart defaults are separate.

And also grouping multiple chart default changes into one PR is consistent with grouping multiple binary config defaults changes in one PR.

@@ -12,10 +12,10 @@ webhooks:
- name: validate.nginx.ingress.kubernetes.io
rules:
- apiGroups:
- extensions
Copy link
Contributor

Choose a reason for hiding this comment

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

@aledbf what's rationale to drop validating Ingresses with extensions/v1beta1? networking.k8s.io is available since k8s 1.14 but while extensions is supported why not keep validating those too? Ingress extensions/v1beta1 API will be dropped only in v1.22 (see https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/)

Copy link
Member Author

Choose a reason for hiding this comment

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

@sslavic because the client-go v1.19 removed the extensions package.
If you have ingresses in the old extensions/v1beta1 will be converted to networking.k8s.io, the version used in ingress-nginx, by the API server

Copy link
Member Author

Choose a reason for hiding this comment

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

but while extensions is supported why not keep validating those too?

Because networking.k8s.io/v1 only works in v1.19 and we need to support 1.16, 1.17, 1.18, and 1.19
(not sure we can keep doing this long term)

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants