mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
Merge pull request #1739 from kahirokunn/fix-typo
fix: correct typo in AutoscalerReference type name
This commit is contained in:
@@ -74,7 +74,7 @@ type CanarySpec struct {
|
||||
|
||||
// AutoscalerRef references an autoscaling resource
|
||||
// +optional
|
||||
AutoscalerRef *AutoscalerRefernce `json:"autoscalerRef,omitempty"`
|
||||
AutoscalerRef *AutoscalerReference `json:"autoscalerRef,omitempty"`
|
||||
|
||||
// Reference to NGINX ingress resource
|
||||
// +optional
|
||||
@@ -474,7 +474,7 @@ func (l *LocalObjectReference) IsKnativeService() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
type AutoscalerRefernce struct {
|
||||
type AutoscalerReference struct {
|
||||
// API version of the scaler
|
||||
// +required
|
||||
APIVersion string `json:"apiVersion,omitempty"`
|
||||
|
||||
@@ -154,7 +154,7 @@ func (in *AlertProviderStatus) DeepCopy() *AlertProviderStatus {
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *AutoscalerRefernce) DeepCopyInto(out *AutoscalerRefernce) {
|
||||
func (in *AutoscalerReference) DeepCopyInto(out *AutoscalerReference) {
|
||||
*out = *in
|
||||
if in.PrimaryScalerQueries != nil {
|
||||
in, out := &in.PrimaryScalerQueries, &out.PrimaryScalerQueries
|
||||
@@ -171,12 +171,12 @@ func (in *AutoscalerRefernce) DeepCopyInto(out *AutoscalerRefernce) {
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalerRefernce.
|
||||
func (in *AutoscalerRefernce) DeepCopy() *AutoscalerRefernce {
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalerReference.
|
||||
func (in *AutoscalerReference) DeepCopy() *AutoscalerReference {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(AutoscalerRefernce)
|
||||
out := new(AutoscalerReference)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
@@ -471,7 +471,7 @@ func (in *CanarySpec) DeepCopyInto(out *CanarySpec) {
|
||||
out.TargetRef = in.TargetRef
|
||||
if in.AutoscalerRef != nil {
|
||||
in, out := &in.AutoscalerRef, &out.AutoscalerRef
|
||||
*out = new(AutoscalerRefernce)
|
||||
*out = new(AutoscalerReference)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
if in.IngressRef != nil {
|
||||
|
||||
@@ -396,7 +396,7 @@ func newDeploymentControllerTestCanary(cc canaryConfigs) *flaggerv1.Canary {
|
||||
APIVersion: "apps/v1",
|
||||
Kind: "Deployment",
|
||||
},
|
||||
AutoscalerRef: &flaggerv1.AutoscalerRefernce{
|
||||
AutoscalerRef: &flaggerv1.AutoscalerReference{
|
||||
Name: "podinfo",
|
||||
APIVersion: "autoscaling/v2beta2",
|
||||
Kind: "HorizontalPodAutoscaler",
|
||||
|
||||
@@ -103,7 +103,7 @@ func Test_setPrimaryScaledObjectQueries(t *testing.T) {
|
||||
TargetRef: flaggerv1.LocalObjectReference{
|
||||
Name: "podinfo",
|
||||
},
|
||||
AutoscalerRef: &flaggerv1.AutoscalerRefernce{
|
||||
AutoscalerRef: &flaggerv1.AutoscalerReference{
|
||||
Name: "podinfo",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -138,7 +138,7 @@ func TestController_verifyCanary(t *testing.T) {
|
||||
},
|
||||
Spec: flaggerv1.CanarySpec{
|
||||
Provider: "knative",
|
||||
AutoscalerRef: &flaggerv1.AutoscalerRefernce{},
|
||||
AutoscalerRef: &flaggerv1.AutoscalerReference{},
|
||||
TargetRef: flaggerv1.LocalObjectReference{
|
||||
Kind: "Service",
|
||||
APIVersion: "serving.knative.dev/v1",
|
||||
|
||||
@@ -298,7 +298,7 @@ func newDeploymentTestCanary() *flaggerv1.Canary {
|
||||
APIVersion: "apps/v1",
|
||||
Kind: "Deployment",
|
||||
},
|
||||
AutoscalerRef: &flaggerv1.AutoscalerRefernce{
|
||||
AutoscalerRef: &flaggerv1.AutoscalerReference{
|
||||
Name: "podinfo",
|
||||
APIVersion: "autoscaling/v2beta2",
|
||||
Kind: "HorizontalPodAutoscaler",
|
||||
@@ -360,7 +360,7 @@ func newDeploymentTestCanaryAB() *flaggerv1.Canary {
|
||||
APIVersion: "apps/v1",
|
||||
Kind: "Deployment",
|
||||
},
|
||||
AutoscalerRef: &flaggerv1.AutoscalerRefernce{
|
||||
AutoscalerRef: &flaggerv1.AutoscalerReference{
|
||||
Name: "podinfo",
|
||||
APIVersion: "autoscaling/v2beta2",
|
||||
Kind: "HorizontalPodAutoscaler",
|
||||
|
||||
Reference in New Issue
Block a user