Add organizationAdmin
[ZITADOPER-1]
This commit is contained in:
@@ -26,6 +26,13 @@ import (
|
||||
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
|
||||
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
|
||||
|
||||
type OrganizationAdmin struct {
|
||||
FirstName string `json:"firstName"`
|
||||
LastName string `json:"lastName"`
|
||||
Email string `json:"email"`
|
||||
UserName string `json:"userName"`
|
||||
}
|
||||
|
||||
// OrganizationSpec defines the desired state of Organization
|
||||
type OrganizationSpec struct {
|
||||
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
|
||||
@@ -33,6 +40,7 @@ type OrganizationSpec struct {
|
||||
// +kubebuilder:validation:Required
|
||||
// +operator-sdk:csv:customresourcedefinitions:type=spec
|
||||
ZitadelClusterRef ZitadelClusterRef `json:"zitadelClusterRef" webhook:"inmutable"`
|
||||
OrganizationAdmin OrganizationAdmin `json:"organizationAdmin"`
|
||||
}
|
||||
|
||||
// OrganizationStatus defines the observed state of Organization
|
||||
@@ -45,6 +53,8 @@ type OrganizationStatus struct {
|
||||
Conditions []metav1.Condition `json:"conditions,omitempty"`
|
||||
// +kubebuilder:default=""
|
||||
OrgId string `json:"orgId"`
|
||||
// +kubebuilder:default=""
|
||||
AdminId string `json:"AdminId"`
|
||||
}
|
||||
|
||||
func (d *OrganizationStatus) SetCondition(condition metav1.Condition) {
|
||||
|
||||
@@ -448,6 +448,21 @@ func (in *Organization) DeepCopyObject() runtime.Object {
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *OrganizationAdmin) DeepCopyInto(out *OrganizationAdmin) {
|
||||
*out = *in
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrganizationAdmin.
|
||||
func (in *OrganizationAdmin) DeepCopy() *OrganizationAdmin {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(OrganizationAdmin)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *OrganizationList) DeepCopyInto(out *OrganizationList) {
|
||||
*out = *in
|
||||
@@ -500,6 +515,7 @@ func (in *OrganizationRef) DeepCopy() *OrganizationRef {
|
||||
func (in *OrganizationSpec) DeepCopyInto(out *OrganizationSpec) {
|
||||
*out = *in
|
||||
out.ZitadelClusterRef = in.ZitadelClusterRef
|
||||
out.OrganizationAdmin = in.OrganizationAdmin
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrganizationSpec.
|
||||
|
||||
Reference in New Issue
Block a user