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

feat: support cert-manager #685

Merged
merged 7 commits into from
Sep 24, 2021
Merged

feat: support cert-manager #685

merged 7 commits into from
Sep 24, 2021

Conversation

lingsamuel
Copy link
Member

@lingsamuel lingsamuel commented Sep 16, 2021

Please answer these questions before submitting a pull request

Why submit this pull request?


New feature or improvement

  • Support manage secrets with cert-manager

APISIX ingress controller now only supports secerts with cert and key fields, which is not Kubernetes style. Secrets created by cert-manager contain the standrd k8s-style fields ca.crt, tls.crt and tls.key.

This PR makes APISIX ingress controller to support both old field names and k8s standard field names, which allows APISIX ingress controller to work with cert-manager.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 413 files.

Valid Invalid Ignored Fixed
220 2 191 0
Click to see the invalid file list
  • docs/en/latest/practices/cert-manager/ca.yaml
  • docs/en/latest/practices/cert-manager/issuer.yaml

Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Sep 16, 2021

Codecov Report

Merging #685 (b8033da) into master (5c9cdbe) will decrease coverage by 0.15%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #685      +/-   ##
==========================================
- Coverage   35.04%   34.88%   -0.16%     
==========================================
  Files          60       60              
  Lines        5967     5994      +27     
==========================================
  Hits         2091     2091              
- Misses       3625     3652      +27     
  Partials      251      251              
Impacted Files Coverage Δ
pkg/apisix/schema.go 63.26% <ø> (ø)
pkg/ingress/controller.go 1.06% <ø> (ø)
pkg/ingress/secret.go 0.00% <0.00%> (ø)
pkg/kube/translation/apisix_ssl.go 0.00% <0.00%> (ø)
pkg/kube/translation/translator.go 47.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c9cdbe...b8033da. Read the comment docs.

pkg/ingress/secret.go Outdated Show resolved Hide resolved
pkg/ingress/secret.go Outdated Show resolved Hide resolved
pkg/ingress/secret.go Show resolved Hide resolved
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Copy link
Member

@tao12345666333 tao12345666333 left a comment

Choose a reason for hiding this comment

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

LGTM!!!

@tao12345666333 tao12345666333 added changelog Issues with this label should be added to changelog when public a new release enhancement New feature or request labels Sep 24, 2021
@tao12345666333 tao12345666333 added this to the 1.3.0 milestone Sep 24, 2021
@tao12345666333 tao12345666333 merged commit 1b71fa3 into master Sep 24, 2021
@tao12345666333 tao12345666333 deleted the cert-manager branch September 24, 2021 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog Issues with this label should be added to changelog when public a new release enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Integrate cert-manager to manage secrets
4 participants