mirror of https://github.com/knative/pkg.git
Update AuthStatus to have list of ServiceAccountNames (#3032)
This commit is contained in:
parent
1d1616aa15
commit
360b72e494
|
@ -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"`
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue