Skip to content

not every ingress controller is nginx #725

@msporleder

Description

@msporleder

if solrNodesRequireTLS {
if annotations == nil {
annotations = make(map[string]string, 1)
}
_, ok := annotations["nginx.ingress.kubernetes.io/backend-protocol"]
if !ok {
annotations["nginx.ingress.kubernetes.io/backend-protocol"] = "HTTPS"
}
} else {
if annotations == nil {
annotations = make(map[string]string, 1)
}
_, ok := annotations["nginx.ingress.kubernetes.io/backend-protocol"]
if !ok {
annotations["nginx.ingress.kubernetes.io/backend-protocol"] = "HTTP"
}
}

Although this is pretty harmless as noise I'm not sure why this assumption was hard-coded in.

Can you consider adding if customOptions.IngressClassName == "nginx" or similar?

Metadata

Metadata

Assignees

No one assigned

    Labels

    cloudnetworkingRelated to Services or Ingresses
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions