mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 01:26:59 +02:00
Define Labels type and JSON tags for ProviderSpecific fields
The current example of CRD source is missing the `Labels` type definition. It also does not have the JSON tag for the `Name` and `Value` fields of the `ProviderSpecificProperty` type. As such, creating a CRD from these types will result in errors. This change fixes the two issues highlighted above.
This commit is contained in:
parent
b3a7698554
commit
b2eebecd68
@ -15,10 +15,11 @@ Here is typical example of [CRD API type](https://github.com/kubernetes-sigs/ext
|
||||
type TTL int64
|
||||
type Targets []string
|
||||
type ProviderSpecificProperty struct {
|
||||
Name string
|
||||
Value string
|
||||
Name string `json:"name,omitempty"`
|
||||
Value string `json:"value,omitempty"`
|
||||
}
|
||||
type ProviderSpecific []ProviderSpecificProperty
|
||||
type Labels map[string]string
|
||||
|
||||
type Endpoint struct {
|
||||
// The hostname of the DNS record
|
||||
|
Loading…
Reference in New Issue
Block a user