Add initialAdmin to reconcile
[ZITADOPER-1]
This commit is contained in:
@@ -54,7 +54,7 @@ type OrganizationStatus struct {
|
||||
// +kubebuilder:default=""
|
||||
OrgId string `json:"orgId"`
|
||||
// +kubebuilder:default=""
|
||||
AdminId string `json:"AdminId"`
|
||||
AdminId string `json:"adminId"`
|
||||
}
|
||||
|
||||
func (d *OrganizationStatus) SetCondition(condition metav1.Condition) {
|
||||
|
||||
@@ -96,7 +96,7 @@ spec:
|
||||
status:
|
||||
description: OrganizationStatus defines the observed state of Organization
|
||||
properties:
|
||||
AdminId:
|
||||
adminId:
|
||||
default: ""
|
||||
type: string
|
||||
conditions:
|
||||
@@ -174,7 +174,7 @@ spec:
|
||||
default: ""
|
||||
type: string
|
||||
required:
|
||||
- AdminId
|
||||
- adminId
|
||||
- orgId
|
||||
type: object
|
||||
type: object
|
||||
|
||||
@@ -102,6 +102,10 @@ func (wr *wrappedOrganizationReconciler) Reconcile(ctx context.Context, ztdClien
|
||||
Name: "organization",
|
||||
Reconcile: wr.reconcileOrg,
|
||||
},
|
||||
{
|
||||
Name: "admin",
|
||||
Reconcile: wr.reconcileInitialAdmin,
|
||||
},
|
||||
}
|
||||
for _, p := range phases {
|
||||
err := p.Reconcile(ctx, ztdClient)
|
||||
|
||||
Reference in New Issue
Block a user