This commit is contained in:
@@ -18,6 +18,7 @@ package v1alpha1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
|
|
||||||
"k8s.io/apimachinery/pkg/api/meta"
|
"k8s.io/apimachinery/pkg/api/meta"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
@@ -96,6 +97,7 @@ func (d *Project) IsReady() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (d *Project) ConnectionRef(ctx context.Context, refresolver *RefResolver) (*ConnectionRef, error) {
|
func (d *Project) ConnectionRef(ctx context.Context, refresolver *RefResolver) (*ConnectionRef, error) {
|
||||||
|
fmt.Println(d.Spec.OrganizationRef)
|
||||||
// Check if using direct Zitadel ID reference
|
// Check if using direct Zitadel ID reference
|
||||||
if d.Spec.OrganizationRef.ID != "" {
|
if d.Spec.OrganizationRef.ID != "" {
|
||||||
return &d.Spec.OrganizationRef.ConnectionRef, nil
|
return &d.Spec.OrganizationRef.ConnectionRef, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user