CRDs-catalog
CRDs-catalog copied to clipboard
add alternative permissionlist naming
Apparently this CRD may (also) need to be called permissionlist rather than (just) permission
I couldn't find the CRD that creates the CR type PermissionList
:
https://github.com/rabbitmq/messaging-topology-operator/tree/main/config/crd/bases
Can you share a link to the CRD itself?
my GitOps contains the following (redacted):
apiVersion: rabbitmq.com/v1beta1
kind: PermissionList
metadata:
name: rabbitmq-permission-list
annotations:
refresh: dummy-refresh-annotation
items:
- apiVersion: rabbitmq.com/v1beta1
kind: Permission
metadata:
name: redacted
spec:
user: redacted
vhost: redacted
permissions:
configure: ".*"
write: ".*"
read: ".*"
rabbitmqClusterReference:
name: rabbitmq
- apiVersion: rabbitmq.com/v1beta1
kind: Permission
metadata:
name: redacted
spec:
user: redacted
vhost: redacted
permissions:
configure: ".*"
write: ".*"
read: ".*"
rabbitmqClusterReference:
name: rabbitmq
if you look at the permissions CRD, you see this:
status:
acceptedNames:
categories:
- all
kind: Permission
listKind: PermissionList
plural: permissions
singular: permission
I would wager that the CRD extractor does not currently support this. Perhaps my patch is not the right one, even if it does superficially fix the problem. I also see this being a bit hard to support by the templating mechanism seeking a designated file name.
from reading around, I understand that listKind
has the same schema as the "regular" kind, correct?
I'm wondering if creating duplicate schemas with just different names is the right way to handle this use case.