carlosedp / cluster-monitoring

Cluster monitoring stack for clusters based on Prometheus Operator
MIT License
740 stars 201 forks source link

Patched ingress to resolve 'unkown spec serviceName' #115

Closed mimartin12 closed 2 years ago

mimartin12 commented 2 years ago

Patches the ingress so that Make no longer fails with errors similar to

Error from server (Invalid): error when creating "manifests/ingress-alertmanager.yaml": Ingress.extensions "alertmanager-main" is invalid: spec.rules[0].http.paths[0].pathType: Required value: pathType must be specified

and

[error validating "manifests/ingress-grafana.yaml": error validating data: [ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "serviceName" in io.k8s.api.networking.v1.IngressBackend, ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "servicePort" in io.k8s.api.networking.v1.IngressBackend]; if you choose to ignore these errors, turn validation off with --validate=false, error validating "manifests/ingress-prometheus.yaml"

I also added in pathType: Prefix since pathType is required to be specified.

mimartin12 commented 2 years ago

@carlosedp,

Any chance you could review this?

Thanks!

carlosedp commented 2 years ago

Thanks! Sorry about the delay.