Skip to content

Commit

Permalink
Remove/comment out Windows images on EE
Browse files Browse the repository at this point in the history
To fix hash release building.
  • Loading branch information
coutinhop committed Sep 18, 2023
1 parent f2861b5 commit 4614e95
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
2 changes: 2 additions & 0 deletions hack/gen-versions/calico.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var (
ComponentCalicoCNIWindows = component{
Version: "{{ .Version }}",
Image: "{{ .Image }}",
Registry: "{{ .Registry }}",
}
{{- end }}
{{ with index .Components "calico/kube-controllers" }}
Expand Down Expand Up @@ -73,6 +74,7 @@ var (
ComponentCalicoNodeWindows = component{
Version: "{{ .Version }}",
Image: "{{ .Image }}",
Registry: "{{ .Registry }}",
}
{{- end }}
{{ with .Components.typha }}
Expand Down
4 changes: 2 additions & 2 deletions hack/gen-versions/enterprise.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ var (
ComponentTigeraNodeWindows = component{
Version: "{{ .Version }}",
Image: "{{ .Image }}",
Registry: "{{ .Registry }}",
}
{{- end }}
{{ with .Components.typha }}
Expand Down Expand Up @@ -339,6 +340,7 @@ var (
ComponentTigeraCNIWindows = component{
Version: "{{ .Version }}",
Image: "{{ .Image }}",
Registry: "{{ .Registry }}",
}
{{- end }}
{{ with index .Components "cloud-controllers" }}
Expand Down Expand Up @@ -413,11 +415,9 @@ var (
ComponentQueryServer,
ComponentTigeraKubeControllers,
ComponentTigeraNode,
ComponentTigeraNodeWindows,
ComponentTigeraTypha,
ComponentTigeraCNI,
ComponentTigeraCNIFIPS,
ComponentTigeraCNIWindows,
ComponentCloudControllers,
ComponentElasticsearchMetrics,
ComponentESGateway,
Expand Down
10 changes: 6 additions & 4 deletions pkg/components/calico.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ var (
}

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

ComponentCalicoKubeControllers = component{
Expand Down Expand Up @@ -64,8 +65,9 @@ var (
}

ComponentCalicoNodeWindows = component{
Version: "master",
Image: "calico/node-windows",
Version: "master",
Image: "calico/node-windows",
Registry: "",
}

ComponentCalicoTypha = component{
Expand Down
12 changes: 6 additions & 6 deletions pkg/components/enterprise.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,9 @@ var (
}

ComponentTigeraNodeWindows = component{
Version: "master",
Image: "tigera/cnx-node-windows",
Version: "master",
Image: "tigera/cnx-node-windows",
Registry: "",
}

ComponentTigeraTypha = component{
Expand All @@ -291,8 +292,9 @@ var (
}

ComponentTigeraCNIWindows = component{
Version: "master",
Image: "tigera/cni-windows",
Version: "master",
Image: "tigera/cni-windows",
Registry: "",
}

ComponentCloudControllers = component{
Expand Down Expand Up @@ -361,11 +363,9 @@ var (
ComponentQueryServer,
ComponentTigeraKubeControllers,
ComponentTigeraNode,
ComponentTigeraNodeWindows,
ComponentTigeraTypha,
ComponentTigeraCNI,
ComponentTigeraCNIFIPS,
ComponentTigeraCNIWindows,
ComponentCloudControllers,
ComponentElasticsearchMetrics,
ComponentESGateway,
Expand Down
3 changes: 1 addition & 2 deletions pkg/render/windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ func (c *windowsComponent) ResolveImages(is *operatorv1.ImageSet) error {
}

if c.cfg.Installation.Variant == operatorv1.TigeraSecureEnterprise {
c.cniImage = appendIfErr(components.GetReference(components.ComponentTigeraCNIWindows, reg, path, prefix, is))
c.nodeImage = appendIfErr(components.GetReference(components.ComponentTigeraNodeWindows, reg, path, prefix, is))
return fmt.Errorf("%s is not currently supported on product variant %s", WindowsNodeObjectName, operatorv1.TigeraSecureEnterprise)
} else {
c.cniImage = appendIfErr(components.GetReference(components.ComponentCalicoCNIWindows, reg, path, prefix, is))
c.nodeImage = appendIfErr(components.GetReference(components.ComponentCalicoNodeWindows, reg, path, prefix, is))
Expand Down

0 comments on commit 4614e95

Please sign in to comment.