diff --git a/pkg/apis/authentication/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/authentication/v1alpha1/zz_generated.deepcopy.go index b0280cd..cfe2bf0 100644 --- a/pkg/apis/authentication/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/authentication/v1alpha1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ //go:build !ignore_autogenerated /* -Copyright 2024 zncdatadev. +Copyright 2024 ZNCDataDev. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/apis/listeners/v1alpha1/listener_types.go b/pkg/apis/listeners/v1alpha1/listener_types.go index 5b423f2..6863b68 100644 --- a/pkg/apis/listeners/v1alpha1/listener_types.go +++ b/pkg/apis/listeners/v1alpha1/listener_types.go @@ -34,10 +34,14 @@ type ListenerSpec struct { ClassName string `json:"className,omitempty"` // +kubebuilder:validation:Optional - ExtraPodMatchLabels map[string]string `json:"extraPodMatchLabels,omitempty"` + ExtraPodSelectorLabels map[string]string `json:"extraPodSelectorLabels,omitempty"` // +kubebuilder:validation:Optional Ports []PortSpec `json:"ports,omitempty"` + + // +kubebuilder:validation:Optional + // +kubebuilder:default=true + PublishNotReadyAddresses bool `json:"publishNotReadyAddresses,omitempty"` } type PortSpec struct { diff --git a/pkg/apis/listeners/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/listeners/v1alpha1/zz_generated.deepcopy.go index 38f79b5..d0aca77 100644 --- a/pkg/apis/listeners/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/listeners/v1alpha1/zz_generated.deepcopy.go @@ -210,8 +210,8 @@ func (in *ListenerList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ListenerSpec) DeepCopyInto(out *ListenerSpec) { *out = *in - if in.ExtraPodMatchLabels != nil { - in, out := &in.ExtraPodMatchLabels, &out.ExtraPodMatchLabels + if in.ExtraPodSelectorLabels != nil { + in, out := &in.ExtraPodSelectorLabels, &out.ExtraPodSelectorLabels *out = make(map[string]string, len(*in)) for key, val := range *in { (*out)[key] = val