Documentation ¶
Overview ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func GetCSRContainerDefaultResources() corev1.ResourceRequirements
- func GetReference(c Component, registry, imagePath, imagePrefix string, is *operator.ImageSet) (string, error)
- func ReplaceImagePath(image, imagePath string) string
- type Component
- type ReplicatedPodResourceOverrides
Constants ¶
const ( CalicoRegistry = "docker.io/" TigeraRegistry = "quay.io/" // For production InitRegistry should match TigeraRegistry. // For the master branch and other testing scenarios we switch TigeraRegistry to // point to a testing repo but the init image will be pushed to quay, so having // these separate allows pulling the proper test images for the Tigera components // and Init image when testing. InitRegistry = "quay.io/" )
Default registries for Calico and Tigera.
const UseDefault = "UseDefault"
Variables ¶
var ( CalicoRelease string = "v3.29.1" ComponentCalicoCNI = Component{ Version: "v3.29.1", Image: "calico/cni", Registry: "", } ComponentCalicoCNIFIPS = Component{ Version: "v3.29.1-fips", Image: "calico/cni", Registry: "", } ComponentCalicoCNIWindows = Component{ Version: "v3.29.1", Image: "calico/cni-windows", Registry: "", } ComponentCalicoCSRInitContainer = Component{ Version: "v3.29.1", Image: "calico/key-cert-provisioner", Registry: "", } ComponentCalicoKubeControllers = Component{ Version: "v3.29.1", Image: "calico/kube-controllers", Registry: "", } ComponentCalicoKubeControllersFIPS = Component{ Version: "v3.29.1-fips", Image: "calico/kube-controllers", Registry: "", } ComponentCalicoNode = Component{ Version: "v3.29.1", Image: "calico/node", Registry: "", } ComponentCalicoNodeFIPS = Component{ Version: "v3.29.1-fips", Image: "calico/node", Registry: "", } ComponentCalicoNodeWindows = Component{ Version: "v3.29.1", Image: "calico/node-windows", Registry: "", } ComponentCalicoTypha = Component{ Version: "v3.29.1", Image: "calico/typha", Registry: "", } ComponentCalicoTyphaFIPS = Component{ Version: "v3.29.1-fips", Image: "calico/typha", Registry: "", } ComponentCalicoFlexVolume = Component{ Version: "v3.29.1", Image: "calico/pod2daemon-flexvol", Registry: "", } ComponentCalicoAPIServer = Component{ Version: "v3.29.1", Image: "calico/apiserver", Registry: "", } ComponentCalicoAPIServerFIPS = Component{ Version: "v3.29.1-fips", Image: "calico/apiserver", Registry: "", } ComponentCalicoCSI = Component{ Version: "v3.29.1", Image: "calico/csi", Registry: "", } ComponentCalicoCSIFIPS = Component{ Version: "v3.29.1-fips", Image: "calico/csi", Registry: "", } ComponentCalicoCSIRegistrar = Component{ Version: "v3.29.1", Image: "calico/node-driver-registrar", Registry: "", } ComponentCalicoCSIRegistrarFIPS = Component{ Version: "v3.29.1-fips", Image: "calico/node-driver-registrar", Registry: "", } ComponentOperatorInit = Component{ Version: version.VERSION, Image: "tigera/operator", } CalicoImages = []Component{ ComponentCalicoCNI, ComponentCalicoCNIFIPS, ComponentCalicoCNIWindows, ComponentCalicoCSRInitContainer, ComponentCalicoKubeControllers, ComponentCalicoKubeControllersFIPS, ComponentCalicoNode, ComponentCalicoNodeFIPS, ComponentCalicoNodeWindows, ComponentCalicoTypha, ComponentCalicoTyphaFIPS, ComponentCalicoFlexVolume, ComponentCalicoAPIServer, ComponentCalicoAPIServerFIPS, ComponentCalicoCSI, ComponentCalicoCSIFIPS, ComponentCalicoCSIRegistrar, ComponentCalicoCSIRegistrarFIPS, } )
var ( EnterpriseRelease string = "v3.20.0-2.0" ComponentAPIServer = Component{ Version: "v3.20.0-2.0", Image: "tigera/cnx-apiserver", Registry: "", } ComponentComplianceBenchmarker = Component{ Version: "v3.20.0-2.0", Image: "tigera/compliance-benchmarker", Registry: "", } ComponentComplianceController = Component{ Version: "v3.20.0-2.0", Image: "tigera/compliance-controller", Registry: "", } ComponentComplianceReporter = Component{ Version: "v3.20.0-2.0", Image: "tigera/compliance-reporter", Registry: "", } ComponentComplianceServer = Component{ Version: "v3.20.0-2.0", Image: "tigera/compliance-server", Registry: "", } ComponentComplianceSnapshotter = Component{ Version: "v3.20.0-2.0", Image: "tigera/compliance-snapshotter", Registry: "", } ComponentTigeraCSRInitContainer = Component{ Version: "v3.20.0-2.0", Image: "tigera/key-cert-provisioner", Registry: "", } ComponentDeepPacketInspection = Component{ Version: "v3.20.0-2.0", Image: "tigera/deep-packet-inspection", Registry: "", } ComponentEckElasticsearch = Component{ Version: "7.17.25", Registry: "", } ComponentEckKibana = Component{ Version: "7.17.25", Registry: "", } ComponentElasticTseeInstaller = Component{ Version: "v3.20.0-2.0", Image: "tigera/intrusion-detection-job-installer", Registry: "", } ComponentElasticsearch = Component{ Version: "v3.20.0-2.0", Image: "tigera/elasticsearch", Registry: "", } ComponentElasticsearchFIPS = Component{ Version: "v3.20.0-2.0-fips", Image: "tigera/elasticsearch", Registry: "", } ComponentECKElasticsearchOperator = Component{ Version: "2.6.1", Registry: "", } ComponentElasticsearchOperator = Component{ Version: "v3.20.0-2.0", Image: "tigera/eck-operator", Registry: "", } ComponentEsProxy = Component{ Version: "v3.20.0-2.0", Image: "tigera/es-proxy", Registry: "", } ComponentESGateway = Component{ Version: "v3.20.0-2.0", Image: "tigera/es-gateway", Registry: "", } ComponentLinseed = Component{ Version: "v3.20.0-2.0", Image: "tigera/linseed", Registry: "", } ComponentFluentd = Component{ Version: "v3.20.0-2.0", Image: "tigera/fluentd", Registry: "", } ComponentFluentdWindows = Component{ Version: "v3.20.0-2.0", Image: "tigera/fluentd-windows", Registry: "", } ComponentGuardian = Component{ Version: "v3.20.0-2.0", Image: "tigera/guardian", Registry: "", } ComponentIntrusionDetectionController = Component{ Version: "v3.20.0-2.0", Image: "tigera/intrusion-detection-controller", Registry: "", } ComponentSecurityEventWebhooksProcessor = Component{ Version: "v3.20.0-2.0", Image: "tigera/webhooks-processor", Registry: "", } ComponentKibana = Component{ Version: "v3.20.0-2.0", Image: "tigera/kibana", Registry: "", } ComponentManager = Component{ Version: "v3.20.0-2.0", Image: "tigera/cnx-manager", Registry: "", } ComponentDex = Component{ Version: "v3.20.0-2.0", Image: "tigera/dex", Registry: "", } ComponentManagerProxy = Component{ Version: "v3.20.0-2.0", Image: "tigera/voltron", Registry: "", } ComponentPacketCapture = Component{ Version: "v3.20.0-2.0", Image: "tigera/packetcapture", Registry: "", } ComponentPolicyRecommendation = Component{ Version: "v3.20.0-2.0", Image: "tigera/policy-recommendation", Registry: "", } ComponentEgressGateway = Component{ Version: "v3.20.0-2.0", Image: "tigera/egress-gateway", Registry: "", } ComponentL7Collector = Component{ Version: "v3.20.0-2.0", Image: "tigera/l7-collector", Registry: "", } ComponentEnvoyProxy = Component{ Version: "v3.20.0-2.0", Image: "tigera/envoy", Registry: "", } ComponentDikastes = Component{ Version: "v3.20.0-2.0", Image: "tigera/dikastes", Registry: "", } ComponentL7AdmissionController = Component{ Version: "v3.20.0-2.0", Image: "tigera/l7-admission-controller", Registry: "", } ComponentCoreOSPrometheus = Component{ Version: "v2.54.1", Registry: "", } ComponentPrometheus = Component{ Version: "v3.20.0-2.0", Image: "tigera/prometheus", Registry: "", } ComponentTigeraPrometheusService = Component{ Version: "v3.20.0-2.0", Image: "tigera/prometheus-service", Registry: "", } ComponentCoreOSAlertmanager = Component{ Version: "v0.27.0", Registry: "", } ComponentPrometheusAlertmanager = Component{ Version: "v3.20.0-2.0", Image: "tigera/alertmanager", Registry: "", } ComponentQueryServer = Component{ Version: "v3.20.0-2.0", Image: "tigera/cnx-queryserver", Registry: "", } ComponentTigeraKubeControllers = Component{ Version: "v3.20.0-2.0", Image: "tigera/kube-controllers", Registry: "", } ComponentTigeraNode = Component{ Version: "v3.20.0-2.0", Image: "tigera/cnx-node", Registry: "", } ComponentTigeraNodeWindows = Component{ Version: "v3.20.0-2.0", Image: "tigera/cnx-node-windows", Registry: "", } ComponentTigeraTypha = Component{ Version: "v3.20.0-2.0", Image: "tigera/typha", Registry: "", } ComponentTigeraCNI = Component{ Version: "v3.20.0-2.0", Image: "tigera/cni", Registry: "", } ComponentTigeraCNIFIPS = Component{ Version: "v3.20.0-2.0-fips", Image: "tigera/cni", Registry: "", } ComponentTigeraCNIWindows = Component{ Version: "v3.20.0-2.0", Image: "tigera/cni-windows", Registry: "", } ComponentElasticsearchMetrics = Component{ Version: "v3.20.0-2.0", Image: "tigera/elasticsearch-metrics", Registry: "", } ComponentTigeraFlexVolume = Component{ Version: "v3.20.0-2.0", Image: "tigera/pod2daemon-flexvol", Registry: "", } ComponentTigeraCSI = Component{ Version: "v3.20.0-2.0", Image: "tigera/csi", Registry: "", } ComponentTigeraCSINodeDriverRegistrar = Component{ Version: "v3.20.0-2.0", Image: "tigera/node-driver-registrar", Registry: "", } // Only components that correspond directly to images should be included in this list, // Components that are only for providing a version should be left out of this list. EnterpriseImages = []Component{ ComponentAPIServer, ComponentComplianceBenchmarker, ComponentComplianceController, ComponentComplianceReporter, ComponentComplianceServer, ComponentComplianceSnapshotter, ComponentTigeraCSRInitContainer, ComponentDeepPacketInspection, ComponentElasticTseeInstaller, ComponentElasticsearch, ComponentElasticsearchFIPS, ComponentElasticsearchOperator, ComponentEsProxy, ComponentFluentd, ComponentFluentdWindows, ComponentGuardian, ComponentIntrusionDetectionController, ComponentSecurityEventWebhooksProcessor, ComponentKibana, ComponentManager, ComponentDex, ComponentManagerProxy, ComponentPacketCapture, ComponentPolicyRecommendation, ComponentEgressGateway, ComponentL7Collector, ComponentEnvoyProxy, ComponentPrometheus, ComponentTigeraPrometheusService, ComponentPrometheusAlertmanager, ComponentQueryServer, ComponentTigeraKubeControllers, ComponentTigeraNode, ComponentTigeraNodeWindows, ComponentTigeraTypha, ComponentTigeraCNI, ComponentTigeraCNIFIPS, ComponentTigeraCNIWindows, ComponentElasticsearchMetrics, ComponentESGateway, ComponentLinseed, ComponentDikastes, ComponentL7AdmissionController, ComponentTigeraFlexVolume, ComponentTigeraCSI, ComponentTigeraCSINodeDriverRegistrar, } )
Functions ¶
func GetCSRContainerDefaultResources ¶ added in v1.34.0
func GetCSRContainerDefaultResources() corev1.ResourceRequirements
func GetReference ¶ added in v1.4.0
func GetReference(c Component, registry, imagePath, imagePrefix string, is *operator.ImageSet) (string, error)
GetReference returns the fully qualified image to use, including registry and version.
func ReplaceImagePath ¶ added in v1.4.0
Types ¶
type Component ¶ added in v1.36.0
type Component struct { // Image is the full image path and name for this component (e.g., tigera/cnx-node, calico/cni) Image string Version string // Registry is only used for developer workflows. For production builds, the registry // is always determined from user configuration. This field can be overridden // as part of a developer workflow to deploy custom dev images on an individual basis. Registry string }
type ReplicatedPodResourceOverrides ¶ added in v1.27.17
type ReplicatedPodResourceOverrides interface { // GetMetadata returns metadata used to override the DaemonSet/Deployment's metadata. GetMetadata() *opv1.Metadata // GetMinReadySeconds returns the value used to override a DaemonSet/Deployment's minReadySeconds. GetMinReadySeconds() *int32 // GetPodTemplateMetadata returns metadata used to override a DaemonSet/Deployment pod template's metadata. GetPodTemplateMetadata() *opv1.Metadata // GetInitContainers returns the containers used to override a DaemonSet/Deployment's init containers. // Only containers with fields specified (other than its name) should be returned. GetInitContainers() []corev1.Container // GetContainers returns the containers used to override a DaemonSet/Deployment's containers. // Only containers with fields specified (other than its name) should be returned. GetContainers() []corev1.Container // GetAffinity returns the value used to override a DaemonSet/Deployment's affinity. GetAffinity() *corev1.Affinity // GetNodeSelector returns the value used to override a DaemonSet/Deployment's nodeSelector. GetNodeSelector() map[string]string // GetTopologySpreadConstraints returns topology spread constraints to use. GetTopologySpreadConstraints() []corev1.TopologySpreadConstraint // GetTolerations returns the value used to override a DaemonSet/Deployment's tolerations. GetTolerations() []corev1.Toleration GetTerminationGracePeriodSeconds() *int64 GetDeploymentStrategy() *appsv1.DeploymentStrategy // GetPriorityClassName() returns the value used to override a DaemonSet/Deployment's priorityClassName. GetPriorityClassName() string }
ReplicatedPodResourceOverrides represents a type that contains the data needed to override a component DaemonSet or Deployment resource.