Skip to content

Create ingress instead of route in OpenShift #1484

@alexlionnel

Description

@alexlionnel

Describe the bug
Ingress resource is not created when i create a grafana instance using grafana operator

Version
I am using grafana-operator v5.8.0 and openshift 4.12.53

To Reproduce
Steps to reproduce the behavior:

  1. Install grafana-operator from openshift interface
  2. create a grafana ressource using this yml config
apiVersion: grafana.integreatly.org/v1beta1
kind: Grafana
metadata:
  name: grafana
  labels:
    dashboards: "grafana"
  namespace: grafana-project
spec:
  config:
    log:
      mode: "console"
    auth:
      disable_login_form: "false"
    security:
      admin_user: root
      admin_password: secret
  ingress:
    spec:
      ingressClassName: openshift-default
      rules:
        - host: <my_domain.com>
          http:
            paths:
              - backend:
                  service:
                    name: grafana-service
                    port:
                      number: 3000
                path: /
                pathType: Prefix

Expected behavior
Ingress resource should be created but it isn't
Same result with ingressClassName: nginx

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededtriage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions