Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRD not fetching correctly if aliases or names/kind overlap #1254

Open
laidbackware opened this issue Feb 23, 2024 · 0 comments
Open

CRD not fetching correctly if aliases or names/kind overlap #1254

laidbackware opened this issue Feb 23, 2024 · 0 comments

Comments

@laidbackware
Copy link

Example 1
I have 2 CRDs with different names and API FQDNs/versions, but overlapping aliases. As shown below:

image

In the CRD browser the second CRD (based alphabetically on the API FQDN) shows the resources of the first. Given it is just the aliases that overlap I would expect the plugin to function to treat each CRD separately.

image

➜ k get compositions -A
NAME                                                     XR-KIND               XR-APIVERSION                                 AGE
xkafkainstances.bitnami.messaging.tanzu.vmware.com       XKafkaInstance        bitnami.messaging.tanzu.vmware.com/v1alpha1   15h
xmongodbinstances.bitnami.database.tanzu.vmware.com      XMongoDBInstance      bitnami.database.tanzu.vmware.com/v1alpha1    15h
xmysqlinstances.bitnami.database.tanzu.vmware.com        XMySQLInstance        bitnami.database.tanzu.vmware.com/v1alpha1    15h
xpostgresqlinstances.bitnami.database.tanzu.vmware.com   XPostgreSQLInstance   bitnami.database.tanzu.vmware.com/v1alpha1    15h
xrabbitmqclusters.bitnami.messaging.tanzu.vmware.com     XRabbitmqCluster      bitnami.messaging.tanzu.vmware.com/v1alpha1   15h
xredisclusters.bitnami.caching.tanzu.vmware.com          XRedisCluster         bitnami.caching.tanzu.vmware.com/v1alpha1     15h
➜ k get components -A
NAMESPACE               NAME                              RESUMPTIONS   READY   REASON   AGE
alm-catalog             app-config-server-1.0.0           False         True    Ready    14h
alm-catalog             app-config-web-1.0.0              False         True    Ready    14h
alm-catalog             app-config-worker-1.0.0           False         True    Ready    14h
alm-catalog             carvel-package-1.0.0              False         True    Ready    14h
alm-catalog             deployer-1.0.0                    False         True    Ready    14h
alm-catalog             source-package-translator-1.0.0   False         True    Ready    14h
conventions-component   conventions-1.0.0                 False         True    Ready    14h
git-writer-catalog      git-writer-1.0.0                  False         True    Ready    14h
git-writer-catalog      git-writer-pr-1.0.0               False         True    Ready    14h
source-provider         source-git-provider-1.0.0         True          True    Ready    14h
tbs-catalog             buildpack-build-1.0.0             True          True    Ready    14h

Example 2

I have 2 CRDs with identical names and kind, but different alias and CRD FQDN/versions. As shown below:

image

In the CRD browser both CRDs show as empty.

image

In the cluster I can see that the first CRD (based alphabetically on the API FQDN) has no resources, but the second does. I'd expect the plugin to show the FRQN when browsing a CRD if names overlap to delineate and to show their results separately.

➜  k get secretexports -A
No resources found
➜ k get secretexports.replication.apiresources.multicluster.x-tanzu.vmware.com -A
No resources found
➜ k get secretexports.secretgen.carvel.dev -A
NAMESPACE        NAME           DESCRIPTION           AGE
metadata-store   app-tls-cert   Reconcile succeeded   15h
tap-install      tap-registry   Reconcile succeeded   16h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant