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

Allow users to choose the kind of isser (ClusterIssuer or Issuer) #8

Closed
matipan opened this issue Jul 27, 2019 · 8 comments
Closed

Comments

@matipan
Copy link

matipan commented Jul 27, 2019

We currently let the user choose the kind of cert-manager issuer, the two available options are Issuer and ClusterIssuer. However, we don't use the value of that field when we set the annotations.

Expected Behaviour

I would expect that when I set the kind field inside issuerRef that change would be reflected on the ingress's annotations.

Current Behaviour

We can set the kind field inside issuerRef but it's a no-op.

Possible Solution

I see the following two options:

  • Only allow the issuer kind and remove the kind field so that we are not misleading the user
  • Use the value of kind to set the cert-manager's annotations

I've implemented the second one and test it out on my cluster. It works OK and it was a very simple change, but I don't know if this is what we want. Lets discuss 😄

Steps to Reproduce (for bugs)

  1. Set the kind in issuerRef to ClusterIssuer and notice that the annotation continues to be for an issuer.

Context

I was trying to create a new function ingress using the existing ClusterIssuer in my cluster, this issuer is created by ofc-bootstrap when installing ofc in the cluster.

Your Environment

  • Docker version docker version (e.g. Docker 17.0.05 ):

  • What version and distriubtion of Kubernetes are you using? kubectl version

Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T16:23:09Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.7-gke.8", GitCommit:"7d3d6f113e933ed1b44b78dff4baf649258415e5", GitTreeState:"clean", BuildDate:"2019-06-19T16:37:16Z", GoVersion:"go1.11.5b4", Compiler:"gc", Platform:"linux/amd64"}
  • Operating System and version (e.g. Linux, Windows, MacOS):
    Windows

  • Link to your project or a code example to reproduce issue:

  • What network driver are you using and what CIDR? i.e. Weave net / Flannel
    Calico on GKE

@matipan
Copy link
Author

matipan commented Jul 27, 2019

Derek assign: me

@matipan
Copy link
Author

matipan commented Jul 27, 2019

Maybe we don't have derek here 😆

@affix
Copy link
Contributor

affix commented Jul 29, 2019

I would also like this feature @matipan :)

@affix
Copy link
Contributor

affix commented Aug 11, 2019

Derek close

@affix
Copy link
Contributor

affix commented Aug 11, 2019

@alexellis we can close this now

@alexellis
Copy link
Member

Let's change the file for a redirect to the faas repo? https://github.com/openfaas-incubator/ingress-operator/blob/master/.DEREK.yml

@alexellis
Copy link
Member

Released in this version: https://github.com/openfaas-incubator/ingress-operator/releases/tag/0.3.1

@alexellis
Copy link
Member

Thank you all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants