fix required

[ZITADOPER-10]
This commit is contained in:
Haim Kortovich
2025-04-02 16:28:20 -05:00
parent 22f1c1ac6a
commit a6bfad68ba
20 changed files with 13 additions and 63 deletions

View File

@@ -84,8 +84,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
script: script:

View File

@@ -86,8 +86,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
required: required:

View File

@@ -79,8 +79,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
type: array type: array
@@ -135,8 +133,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
triggerType: triggerType:

View File

@@ -86,8 +86,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
userGrants: userGrants:
@@ -133,8 +131,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
roleKeys: roleKeys:

View File

@@ -128,8 +128,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
redirectUris: redirectUris:

View File

@@ -97,8 +97,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
required: required:

View File

@@ -81,8 +81,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
roleKeys: roleKeys:
@@ -140,8 +138,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
projectRoleAssertion: projectRoleAssertion:

View File

@@ -124,8 +124,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
purpose: purpose:

View File

@@ -82,12 +82,6 @@ rules:
- get - get
- patch - patch
- update - update
- apiGroups:
- crdb.cockroachlabs.co
resources:
- clusters/finalizers
verbs:
- update
- apiGroups: - apiGroups:
- policy - policy
resources: resources:
@@ -109,6 +103,12 @@ rules:
- patch - patch
- update - update
- watch - watch
- apiGroups:
- postgresql.cnpg.io
resources:
- clusters/finalizers
verbs:
- update
- apiGroups: - apiGroups:
- postgresql.cnpg.io - postgresql.cnpg.io
resources: resources:

View File

@@ -6,42 +6,36 @@ import (
type OIDCAppRef struct { type OIDCAppRef struct {
// ObjectReference is a reference to a object. // ObjectReference is a reference to a object.
// +kubebuilder:validation:Required
// +operator-sdk:csv:customresourcedefinitions:type=spec // +operator-sdk:csv:customresourcedefinitions:type=spec
corev1.ObjectReference `json:",inline"` corev1.ObjectReference `json:",inline"`
} }
type PostgreSQLClusterRef struct { type PostgreSQLClusterRef struct {
// ObjectReference is a reference to a object. // ObjectReference is a reference to a object.
// +kubebuilder:validation:Required
// +operator-sdk:csv:customresourcedefinitions:type=spec // +operator-sdk:csv:customresourcedefinitions:type=spec
corev1.ObjectReference `json:",inline"` corev1.ObjectReference `json:",inline"`
} }
type ZitadelClusterRef struct { type ZitadelClusterRef struct {
// ObjectReference is a reference to a object. // ObjectReference is a reference to a object.
// +kubebuilder:validation:Required
// +operator-sdk:csv:customresourcedefinitions:type=spec // +operator-sdk:csv:customresourcedefinitions:type=spec
corev1.ObjectReference `json:",inline"` corev1.ObjectReference `json:",inline"`
} }
type OrganizationRef struct { type OrganizationRef struct {
// ObjectReference is a reference to a object. // ObjectReference is a reference to a object.
// +kubebuilder:validation:Required
// +operator-sdk:csv:customresourcedefinitions:type=spec // +operator-sdk:csv:customresourcedefinitions:type=spec
corev1.ObjectReference `json:",inline"` corev1.ObjectReference `json:",inline"`
} }
type ProjectRef struct { type ProjectRef struct {
// ObjectReference is a reference to a object. // ObjectReference is a reference to a object.
// +kubebuilder:validation:Required
// +operator-sdk:csv:customresourcedefinitions:type=spec // +operator-sdk:csv:customresourcedefinitions:type=spec
corev1.ObjectReference `json:",inline"` corev1.ObjectReference `json:",inline"`
} }
type ActionRef struct { type ActionRef struct {
// ObjectReference is a reference to a object. // ObjectReference is a reference to a object.
// +kubebuilder:validation:Required
// +operator-sdk:csv:customresourcedefinitions:type=spec // +operator-sdk:csv:customresourcedefinitions:type=spec
corev1.ObjectReference `json:",inline"` corev1.ObjectReference `json:",inline"`
} }

View File

@@ -85,8 +85,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
script: script:

View File

@@ -87,8 +87,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
required: required:

View File

@@ -80,8 +80,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
type: array type: array
@@ -136,8 +134,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
triggerType: triggerType:

View File

@@ -87,8 +87,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
userGrants: userGrants:
@@ -134,8 +132,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
roleKeys: roleKeys:

View File

@@ -129,8 +129,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
redirectUris: redirectUris:

View File

@@ -98,8 +98,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
required: required:

View File

@@ -82,8 +82,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
roleKeys: roleKeys:
@@ -141,8 +139,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
projectRoleAssertion: projectRoleAssertion:

View File

@@ -125,8 +125,6 @@ spec:
UID of the referent. UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string type: string
required:
- ""
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
purpose: purpose:

View File

@@ -81,12 +81,6 @@ rules:
- get - get
- patch - patch
- update - update
- apiGroups:
- crdb.cockroachlabs.co
resources:
- clusters/finalizers
verbs:
- update
- apiGroups: - apiGroups:
- policy - policy
resources: resources:
@@ -108,6 +102,12 @@ rules:
- patch - patch
- update - update
- watch - watch
- apiGroups:
- postgresql.cnpg.io
resources:
- clusters/finalizers
verbs:
- update
- apiGroups: - apiGroups:
- postgresql.cnpg.io - postgresql.cnpg.io
resources: resources:

View File

@@ -94,7 +94,7 @@ type ZitadelClusterReconciler struct {
// +kubebuilder:rbac:groups=zitadel.topmanage.com,resources=zitadelclusters/finalizers,verbs=update // +kubebuilder:rbac:groups=zitadel.topmanage.com,resources=zitadelclusters/finalizers,verbs=update
// +kubebuilder:rbac:groups=postgresql.cnpg.io,resources=clusters,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=postgresql.cnpg.io,resources=clusters,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=postgresql.cnpg.io,resources=clusters/status,verbs=get;update;patch // +kubebuilder:rbac:groups=postgresql.cnpg.io,resources=clusters/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=crdb.cockroachlabs.co,resources=clusters/finalizers,verbs=update // +kubebuilder:rbac:groups=postgresql.cnpg.io,resources=clusters/finalizers,verbs=update
// +kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests,verbs=get;list;watch;create;patch;delete // +kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests,verbs=get;list;watch;create;patch;delete
// +kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests/status,verbs=get;update;patch // +kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests/approval,verbs=update // +kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests/approval,verbs=update