GithubHelp home page GithubHelp logo

Comments (3)

NissesSenap avatar NissesSenap commented on August 13, 2024

@alexlionnel do you want to use ingress, or do you actually want to use OCP routes?
There is a root object that you can use instead grafana.spec.route

If I remember correctly, we have more or less removed the possibility to create an ingress from OCP users without thinking of it.

from grafana-operator.

alexlionnel avatar alexlionnel commented on August 13, 2024

In fact, i want to use an ingress with tls config, using cert manager

 ingress:
    metadata:
      cert-manager.io/cluster-issuer: letsencrypt-issuer
    spec:
      ingressClassName: openshift-default
      tls:
        - hosts:
          - <my_domain.com>
        secretName: secret-cert-tls
      rules:
        - host: <my_domain.com>
          http:
            paths:
              - backend:
                  service:
                    name: grafana-service
                    port:
                      number: 3000
                path: /
                pathType: Prefix

But ingress is not created

from grafana-operator.

NissesSenap avatar NissesSenap commented on August 13, 2024

With our current implementation, that is not possible.
We did an assumption that anyone using OCP would only want to use routes.

func (r *IngressReconciler) Reconcile(ctx context.Context, cr *v1beta1.Grafana, status *v1beta1.GrafanaStatus, vars *v1beta1.OperatorReconcileVars, scheme *runtime.Scheme) (v1beta1.OperatorStageStatus, error) {
logger := log.FromContext(ctx).WithName("IngressReconciler")
if r.isOpenShift {
logger.Info("reconciling route", "platform", "openshift")
return r.reconcileRoute(ctx, cr, status, vars, scheme)
} else {
logger.Info("reconciling ingress", "platform", "kubernetes")
return r.reconcileIngress(ctx, cr, status, vars, scheme)
}
}

As a workaround, I recommend that you setup an ingress separately from the operator.
I will mark this as a bug, if you or someone else have time to create a fix for this, that would be great.
The maintainers have lots to do, and I don't think this will be a priority one thing for us to solve.

Sorry for the inconvenience.

from grafana-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.