From 50dc3244acb871b4a4b6a44ab099c89956f1f5cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20St=C3=A4bler?= Date: Tue, 7 May 2024 10:34:50 +0200 Subject: [PATCH] Update AuthStatus to have list of ServiceAccountNames --- apis/duck/v1/auth_types.go | 5 +++++ apis/duck/v1/zz_generated.deepcopy.go | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/apis/duck/v1/auth_types.go b/apis/duck/v1/auth_types.go index 3169664b6c..5d76a7b422 100644 --- a/apis/duck/v1/auth_types.go +++ b/apis/duck/v1/auth_types.go @@ -22,4 +22,9 @@ type AuthStatus struct { // ServiceAccountName is the name of the generated service account // used for this components OIDC authentication. ServiceAccountName *string `json:"serviceAccountName,omitempty"` + + // ServiceAccountNames is the list of names of the generated service accounts + // used for this components OIDC authentication. This list can have len() > 1, + // when the component uses multiple identities (e.g. in case of a Parallel). + ServiceAccountNames []string `json:"serviceAccountNames,omitempty"` } diff --git a/apis/duck/v1/zz_generated.deepcopy.go b/apis/duck/v1/zz_generated.deepcopy.go index bc3174b2ba..9dab1a912c 100644 --- a/apis/duck/v1/zz_generated.deepcopy.go +++ b/apis/duck/v1/zz_generated.deepcopy.go @@ -158,6 +158,11 @@ func (in *AuthStatus) DeepCopyInto(out *AuthStatus) { *out = new(string) **out = **in } + if in.ServiceAccountNames != nil { + in, out := &in.ServiceAccountNames, &out.ServiceAccountNames + *out = make([]string, len(*in)) + copy(*out, *in) + } return }