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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -94,7 +94,7 @@ type ZitadelClusterReconciler struct {
// +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/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/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests/approval,verbs=update