You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can one create this sort of config via dhall-kubernetes? I'm not seeing any sort of VirtualService in the dhall-kubernetes Resource definitions, which is to be expected since this is Istio-specific nonsense. However, I'm also not able to find any way of extending k8s.Resource with extra definitions.
I'd like to be able to write something along the lines of
let istio =
{ apiVersion ="networking.istio.io/v1beta1"
, kind ="VirtualService"
, metadata = { name ="foo", namespace ="bar" }
...
}
in [ k8s.Resource.Service service, k8s.Resource.Deployment deployment, istio ]
but ofc this doesn't work since the type of istio is not in the large type union that is all dhall-kubernetes resource types.
How does one accomplish this sort of pattern with dhall-kubernetes?
The text was updated successfully, but these errors were encountered:
It works pretty good for the most part, however one issue with this approach is if you have multiple types with different resource group/version combos. I was working on making a more comprehensive generator style here: dhall-lang/dhall-haskell#2135 but haven't had a chance to finish this work yet.
Kubernetes tools like Istio require the creation of yaml like
Notably,
kind: VirtualService
is not part of kubernetes andapiVersion
refers to a non-kubernetes api. (See https://istio.io/latest/docs/reference/config/networking/virtual-service/ for more info.)How can one create this sort of config via dhall-kubernetes? I'm not seeing any sort of
VirtualService
in the dhall-kubernetesResource
definitions, which is to be expected since this is Istio-specific nonsense. However, I'm also not able to find any way of extendingk8s.Resource
with extra definitions.I'd like to be able to write something along the lines of
but ofc this doesn't work since the type of
istio
is not in the large type union that is all dhall-kubernetes resource types.How does one accomplish this sort of pattern with dhall-kubernetes?
The text was updated successfully, but these errors were encountered: