Skip to content

Commit

Permalink
Merge pull request #27 from mindwm/workaround-istiod-mutation-webhook…
Browse files Browse the repository at this point in the history
…-ingress-gateway

Workaround for istiod mutation webhook and ingressgateway
  • Loading branch information
metacoma committed May 31, 2024
2 parents a4cf55f + 22b1b96 commit 5d4c868
Showing 1 changed file with 35 additions and 33 deletions.
68 changes: 35 additions & 33 deletions main.k
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,35 @@ mindwm_app = ArgoCdOrder.make({

]
}
argocdSchema.argoHelmRelease({
namespace = config.istio.system.namespace,
name = "istio-base"
chart = charts.istio_base
version = config.istio.version
}) | {
spec.ignoreDifferences = [
{
group = "admissionregistration.k8s.io"
kind = "ValidatingWebhookConfiguration"
name = "istiod-default-validator"
jsonPointers = ["/webhooks/0/failurePolicy"]
}
]
}


argocdSchema.argoHelmRelease({
namespace = config.istio.system.namespace,
name = "istiod"
chart = charts.istiod
version = config.istio.version
values = {
defaults.pilot.resources.requests.cpu = config.istio.pilot.cpu_req
}

})
]
[

argocdSchema.argoHelmRelease({
namespace = nats.nats_namespace
Expand Down Expand Up @@ -144,43 +173,10 @@ mindwm_app = ArgoCdOrder.make({
version = "1.15.2"
})

argocdSchema.argoHelmRelease({
namespace = config.istio.system.namespace,
name = "istio-base"
chart = charts.istio_base
version = config.istio.version
}) | {
spec.ignoreDifferences = [
{
group = "admissionregistration.k8s.io"
kind = "ValidatingWebhookConfiguration"
name = "istiod-default-validator"
jsonPointers = ["/webhooks/0/failurePolicy"]
}
]
}


argocdSchema.argoHelmRelease({
namespace = config.istio.system.namespace,
name = "istiod"
chart = charts.istiod
version = config.istio.version
values = {
defaults.pilot.resources.requests.cpu = config.istio.pilot.cpu_req
}

})
]
[


argocdSchema.argoHelmRelease({
namespace = config.istio.gateway.namespace
name = "istio-ingressgateway"
chart = charts.istio_gateway
version = config.istio.version
})

# required by redpanda-operator
# https://docs.redpanda.com/current/deploy/deployment-option/self-hosted/kubernetes/k-deployment-overview/
Expand Down Expand Up @@ -244,6 +240,12 @@ mindwm_app = ArgoCdOrder.make({
CrossPlaneFunction.makeCrossPlaneFunction(CrossPlaneFunction.kcl)
CrossPlaneFunction.makeCrossPlaneFunction(CrossPlaneFunction.auto_ready)
CrossPlaneProvider.makeCrossPlaneProvider(CrossPlaneProvider.kubernetes)
argocdSchema.argoHelmRelease({
namespace = config.istio.gateway.namespace
name = "istio-ingressgateway"
chart = charts.istio_gateway
version = config.istio.version
})
]
CrossPlaneProvider.makeCrossPlaneProviderHelm(CrossPlaneProvider.helm)
[
Expand Down

0 comments on commit 5d4c868

Please sign in to comment.