mirror of https://github.com/knative/pkg.git
Added Audience field in duckv1.Addressable (#2798)
* Added Audience field in duckv1.Addressable * generated the DeepCopy functions to include the new field Signed-off-by: Abhijeet Gaurav <abhijeetdav24aug@gmail.com> * removing one empty line Co-authored-by: Christoph Stäbler <cstabler@redhat.com> --------- Signed-off-by: Abhijeet Gaurav <abhijeetdav24aug@gmail.com> Co-authored-by: Christoph Stäbler <cstabler@redhat.com>
This commit is contained in:
parent
211243a92d
commit
66bf5af149
|
|
@ -48,6 +48,10 @@ type Addressable struct {
|
|||
// according to https://www.rfc-editor.org/rfc/rfc7468.
|
||||
// +optional
|
||||
CACerts *string `json:"CACerts,omitempty"`
|
||||
|
||||
// Audience is the OIDC audience for this address.
|
||||
// +optional
|
||||
Audience *string `json:"audience,omitempty"`
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -72,6 +72,11 @@ func (in *Addressable) DeepCopyInto(out *Addressable) {
|
|||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.Audience != nil {
|
||||
in, out := &in.Audience, &out.Audience
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue