mirror of https://github.com/knative/pkg.git
Added Audience field in duckv1.Destination (#2797)
* Added Audience field in duckv1.Destination * generated the DeepCopy functions to include the new field Signed-off-by: Abhijeet Gaurav <abhijeetdav24aug@gmail.com> * removed trailing whitespaces from both lines Signed-off-by: Abhijeet Gaurav <abhijeetdav24aug@gmail.com> --------- Signed-off-by: Abhijeet Gaurav <abhijeetdav24aug@gmail.com>
This commit is contained in:
parent
66bf5af149
commit
27252a376b
|
|
@ -40,6 +40,14 @@ type Destination struct {
|
|||
// by the Addressable target, if any.
|
||||
// +optional
|
||||
CACerts *string `json:"CACerts,omitempty"`
|
||||
|
||||
// Audience is the OIDC audience.
|
||||
// This need only be set, if the target is not an Addressable
|
||||
// and thus the Audience can't be received from the Addressable itself.
|
||||
// In case the Addressable specifies an Audience too, the Destinations
|
||||
// Audience takes preference.
|
||||
// +optional
|
||||
Audience *string `json:"audience,omitempty"`
|
||||
}
|
||||
|
||||
// Validate the Destination has all the necessary fields and check the
|
||||
|
|
|
|||
|
|
@ -366,6 +366,11 @@ func (in *Destination) DeepCopyInto(out *Destination) {
|
|||
*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