diff --git a/apis/dash/v1alpha1/dashapplication_types.go b/apis/dash/v1alpha1/dashapplication_types.go index fe0fedc..c0d5720 100644 --- a/apis/dash/v1alpha1/dashapplication_types.go +++ b/apis/dash/v1alpha1/dashapplication_types.go @@ -41,7 +41,7 @@ type Container struct { type Ingress struct { // +optional // Annotations for ingress - Annotations map[string]string `json:"serviceAnnotations,omitempty"` + Annotations map[string]string `json:"annotations,omitempty"` // IngressClassName is the name of an IngressClass cluster resource. Ingress // controller implementations use this field to know whether they should be // serving this Ingress resource, by a transitive connection diff --git a/apis/dash/v1alpha1/zz_generated.deepcopy.go b/apis/dash/v1alpha1/zz_generated.deepcopy.go index fc49285..7b57d41 100644 --- a/apis/dash/v1alpha1/zz_generated.deepcopy.go +++ b/apis/dash/v1alpha1/zz_generated.deepcopy.go @@ -167,6 +167,13 @@ func (in *DashApplicationStatus) DeepCopy() *DashApplicationStatus { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Ingress) DeepCopyInto(out *Ingress) { *out = *in + if in.Annotations != nil { + in, out := &in.Annotations, &out.Annotations + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } if in.IngressClassName != nil { in, out := &in.IngressClassName, &out.IngressClassName *out = new(string) diff --git a/config/crd/bases/dash.plural.sh_dashapplications.yaml b/config/crd/bases/dash.plural.sh_dashapplications.yaml index 5c3fcd3..2bf91d8 100644 --- a/config/crd/bases/dash.plural.sh_dashapplications.yaml +++ b/config/crd/bases/dash.plural.sh_dashapplications.yaml @@ -66,6 +66,11 @@ spec: description: Ingress spec. If not specified only LoadBalancer service is created properties: + annotations: + additionalProperties: + type: string + description: Annotations for ingress + type: object host: description: "Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations