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

The ingress deployed via the operator can not use https/tls as it misses the ingress:tls.hosts stanza #13

Open
titou10titou10 opened this issue Jan 30, 2024 · 0 comments

Comments

@titou10titou10
Copy link

The title says it all, the ingress deployed via the operator can not use https/tls as it misses the ingress:tls.hosts stanza

https ingress is supposely to be enable like this NexusRepo:

apiVersion: sonatype.com/v1alpha1
kind: NexusRepo
metadata:
  name: nexusrepo-sample
  namespace: outils
spec:
  ingress:
    enabled: true
    name: nexus-ingress
    host: nexus3.abc.def.ggi
    defaultRule: true
    tls:
      enabled: true
      secretName: nexus3-tls

This generates ingress like this:

kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
  name: nxrm-ha-nexus-ingress
  labels:
    app.kubernetes.io/managed-by: Helm
spec:
  tls:
    - secretName: nexus3-tls
  {...}

The ingress misses thetls.hostsdefinitions to generate an "https" route

kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
  name: nxrm-ha-nexus-ingress
  labels:
    app.kubernetes.io/managed-by: Helm
spec:
  tls:
    - hosts:
        - nexus3.abc.def.ggi
      secretName: nexus3-tls
  {...}

To generate an https route, the ingress must be like this:

The fix is in this PR: #12

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

1 participant