kubevela / catalog

Catalog of community maintained components and traits.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FluxCD Addon]Cannot see Resource Graph in Kustomization

chengleqi opened this issue · comments

I have a Deployment resource and a Service resource in my Kustomization App But VelaUX didn't show these resource.

image

Expect
show all the resources like HelmRelease in the Resource Graph like below:
image

commented

The reason is there is a built-in topology-rule of helmRelease and it's sub-resources. Are you interested in contributing to solve this issue by adding a topology-rule for kutomize. Here are some related docs: https://kubevela.net/docs/platform-engineers/addon/addon-cue#auxiliary-resources , https://kubevela.net/docs/reference/topology-rule.

Thanks. I'd like to tackle this one.
/assign

I see. The HelmRelease type resource are built-in velaql .
I'd better put the kustomize rule in configmap and let vela merge it.

Hi guys. I found this can only be implemented by built-in velaql way like HelmRelease.

velaql can list all the resource the HelmRelease has because of the helmRelease2AnyListOption func but we cannot pass function or pass dynamic relevant labels through configmap. And a Deployment doesn't have OwnerReferences with its Kustomization so it also cannot be listed through GetOwnerReferences when the ListOption func is missed.

This time we can just add Kustomization type beside the HelmRelease but I think we should find a better way to improve the extendability of configmap way.

@wangyikewxgm @wonderflow @FogDong

pass dynamic relevant labels through configmap

This could be potential solution for extensibility.