Skip to content

Empty ingress resource created when all services in ingress.yaml are disabled #449

@spwoodcock

Description

@spwoodcock

Background

  • The ingress.yaml template creates an ingress resource even when all services it manages (raster, vector, multidim, mockOidcServer, docServer) are disabled.
  • This results in an ingress with paths: null, which is invalid.

In ArgoCD I get an error that the resource is out of sync:

Failed sync attempt to : one or more synchronization tasks completed unsuccessfully, reason: Ingress.networking.k8s.io "eoapi-ingress" is invalid: spec.rules[0].http.paths: Required value (retried 5 times).

Goals

  • Am trying to deploy only the STAC element of eoAPI, so stac-fastapi will be served under the root path (no subdomains).

  • For Argo I thought I could simply:

  ignoreDifferences:
    - group: networking.k8s.io
      kind: Ingress
      name: fair-eoapi-ingress
      jsonPointers:
        - /spec/rules/0/http/paths
  • But that doesn't work. It would be nicer if the chart could be configured to not cause sync issues.

If this is confirmed and a desirable thing to fix, let me know if you would prefer I make a PR for it 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions