Update AuthStatus to have list of ServiceAccountNames (#3032)

This commit is contained in:
Christoph Stäbler 2024-05-07 11:21:24 +02:00 committed by GitHub
parent 1d1616aa15
commit 360b72e494
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -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"`
}

View File

@ -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
}