onyxia-api icon indicating copy to clipboard operation
onyxia-api copied to clipboard

Expose property annotations not applied

Open titigmr opened this issue 7 months ago • 3 comments

When I configuring a region configuration with the following expose property:


"expose": {
  "domain": "mydomain.fr",
  "route": false,
  "ingress": true,
  "annotations": {
    "route.openshift.io/insecureEdgeTerminationPolicy": "Redirect",
    "route.openshift.io/termination": "edge"
  }
}

The ingress created by the service does not include the provided annotations.

Region configuration reference: docs/region-configuration.md

onyxia-api: v4.7.0

titigmr avatar Aug 29 '25 15:08 titigmr

I think we don't want to provide a fix for that, as those parameters are read by the frontend to inject data. Schema overwrite is a more clean feature.

fcomte avatar Sep 03 '25 11:09 fcomte

Okay, but if we want to configure all ingresses for all catalog, we need to add this schema for each services (this generate a large values.yaml). Do you have a suggestion for that?

titigmr avatar Oct 02 '25 13:10 titigmr

You can use the schema override at instance level feature to define that once and for all : https://docs.onyxia.sh/admin-doc/catalog-of-services/override-schema-for-a-specific-instance. That should be clean and simple for your use-case.

Note that, if you are creating a catalog specifically a single instance, you can also hardcode the annotations into the values.yaml (and/or directly in the templates). That's the easiest solution albeit less flexible

olevitt avatar Oct 02 '25 13:10 olevitt