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:
Arunesh Pandey 2023-03-06 11:39:59 -08:00
parent b3a7698554
commit b2eebecd68

View File

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