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:
Abhijeet Gaurav 2023-09-05 20:14:17 +05:30 committed by GitHub
parent 66bf5af149
commit 27252a376b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

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

View File

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