Skip to content

Commit

Permalink
Fix static checks
Browse files Browse the repository at this point in the history
  • Loading branch information
coutinhop committed Jul 12, 2023
1 parent 3aed045 commit 558c496
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 10 deletions.
5 changes: 2 additions & 3 deletions hack/gen-versions/calico.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,19 @@ var (

CalicoImages = []component{
ComponentCalicoCNI,
ComponentCalicoCNIWindows,
ComponentCalicoCNIFIPS,
ComponentCalicoCNIWindows,
ComponentCalicoKubeControllers,
ComponentCalicoKubeControllersFIPS,
ComponentCalicoNode,
ComponentCalicoNodeFIPS,
ComponentCalicoNodeWindows,
ComponentCalicoNodeWindows,
ComponentCalicoTypha,
ComponentCalicoTyphaFIPS,
ComponentFlexVolume,
ComponentOperatorInit,
ComponentCalicoAPIServer,
ComponentCalicoAPIServerFIPS,
ComponentWindowsUpgrade,
ComponentCalicoCSI,
ComponentCalicoCSIFIPS,
ComponentCalicoCSIRegistrar,
Expand Down
4 changes: 3 additions & 1 deletion hack/gen-versions/enterprise.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ var (
Registry: "{{ .Registry }}",
}
{{- end }}
{pkg/components/calico.go{ with index .Components "flexvol" }}
{{ with index .Components "flexvol" }}
ComponentFlexVolumePrivate = component{
Version: "{{ .Version }}",
Image: "{{ .Image }}",
Expand Down Expand Up @@ -413,9 +413,11 @@ var (
ComponentQueryServer,
ComponentTigeraKubeControllers,
ComponentTigeraNode,
ComponentTigeraNodeWindows,
ComponentTigeraTypha,
ComponentTigeraCNI,
ComponentTigeraCNIFIPS,
ComponentTigeraCNIWindows,
ComponentCloudControllers,
ComponentElasticsearchMetrics,
ComponentESGateway,
Expand Down
11 changes: 6 additions & 5 deletions pkg/components/calico.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ var (
Registry: "",
}

ComponentCalicoCNIWindows = component{
Version: "master",
Image: "calico/cni-windows",
}

ComponentCalicoCNIFIPS = component{
Version: "master-fips",
Image: "calico/cni",
Registry: "",
}

ComponentCalicoCNIWindows = component{
Version: "master",
Image: "calico/cni-windows",
}

ComponentCalicoKubeControllers = component{
Version: "master",
Image: "calico/kube-controllers",
Expand Down Expand Up @@ -134,6 +134,7 @@ var (
ComponentCalicoKubeControllersFIPS,
ComponentCalicoNode,
ComponentCalicoNodeFIPS,
ComponentCalicoNodeWindows,
ComponentCalicoTypha,
ComponentCalicoTyphaFIPS,
ComponentFlexVolume,
Expand Down
1 change: 0 additions & 1 deletion pkg/controller/utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ var _ = Describe("GetK8sServiceEndPoint", func() {
type fakeClient struct {
discovery discovery.DiscoveryInterface
kubernetes.Interface
objects map[client.ObjectKey]client.Object
}

type fakeDiscovery struct {
Expand Down
22 changes: 22 additions & 0 deletions pkg/crds/operator/operator.tigera.io_installations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2957,6 +2957,7 @@ spec:
type: object
type: array
type: object
x-kubernetes-map-type: atomic
weight:
description: Weight associated with
matching the corresponding nodeSelectorTerm,
Expand Down Expand Up @@ -3076,10 +3077,12 @@ spec:
type: object
type: array
type: object
x-kubernetes-map-type: atomic
type: array
required:
- nodeSelectorTerms
type: object
x-kubernetes-map-type: atomic
type: object
podAffinity:
description: Describes pod affinity scheduling
Expand Down Expand Up @@ -3177,6 +3180,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaceSelector:
description: A label query over
the set of namespaces that the
Expand Down Expand Up @@ -3249,6 +3253,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaces:
description: namespaces specifies
a static list of namespace names
Expand Down Expand Up @@ -3373,6 +3378,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaceSelector:
description: A label query over the
set of namespaces that the term applies
Expand Down Expand Up @@ -3440,6 +3446,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaces:
description: namespaces specifies a
static list of namespace names that
Expand Down Expand Up @@ -3565,6 +3572,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaceSelector:
description: A label query over
the set of namespaces that the
Expand Down Expand Up @@ -3637,6 +3645,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaces:
description: namespaces specifies
a static list of namespace names
Expand Down Expand Up @@ -3761,6 +3770,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaceSelector:
description: A label query over the
set of namespaces that the term applies
Expand Down Expand Up @@ -3828,6 +3838,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaces:
description: namespaces specifies a
static list of namespace names that
Expand Down Expand Up @@ -10623,6 +10634,7 @@ spec:
type: object
type: array
type: object
x-kubernetes-map-type: atomic
weight:
description: Weight associated with
matching the corresponding nodeSelectorTerm,
Expand Down Expand Up @@ -10754,10 +10766,12 @@ spec:
type: object
type: array
type: object
x-kubernetes-map-type: atomic
type: array
required:
- nodeSelectorTerms
type: object
x-kubernetes-map-type: atomic
type: object
podAffinity:
description: Describes pod affinity scheduling
Expand Down Expand Up @@ -10863,6 +10877,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaceSelector:
description: A label query over
the set of namespaces that
Expand Down Expand Up @@ -10943,6 +10958,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaces:
description: namespaces specifies
a static list of namespace
Expand Down Expand Up @@ -11077,6 +11093,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaceSelector:
description: A label query over
the set of namespaces that the
Expand Down Expand Up @@ -11149,6 +11166,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaces:
description: namespaces specifies
a static list of namespace names
Expand Down Expand Up @@ -11284,6 +11302,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaceSelector:
description: A label query over
the set of namespaces that
Expand Down Expand Up @@ -11364,6 +11383,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaces:
description: namespaces specifies
a static list of namespace
Expand Down Expand Up @@ -11498,6 +11518,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaceSelector:
description: A label query over
the set of namespaces that the
Expand Down Expand Up @@ -11570,6 +11591,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
namespaces:
description: namespaces specifies
a static list of namespace names
Expand Down

0 comments on commit 558c496

Please sign in to comment.