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 ¶
const ( CalicoRegistry = "docker.io/" TigeraRegistry = "gcr.io/unique-caldron-775/cnx/" // 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. ECKRegistry = "quay.io/" InitRegistry = "quay.io/" CSRInitRegistry = "quay.io/" )
Default registries for Calico and Tigera.
const UseDefault = "UseDefault"
Variables ¶
var ( CalicoRelease string = "v3.26.0" ComponentCalicoCNI = component{ Version: "v3.26.0", Image: "calico/cni", } ComponentCalicoCNIFIPS = component{ Version: "v3.26.0-fips", Image: "calico/cni", } ComponentCalicoKubeControllers = component{ Version: "v3.26.0", Image: "calico/kube-controllers", } ComponentCalicoNode = component{ Version: "v3.26.0", Image: "calico/node", } ComponentCalicoTypha = component{ Version: "v3.26.0", Image: "calico/typha", } ComponentFlexVolume = component{ Version: "v3.26.0", Image: "calico/pod2daemon-flexvol", } ComponentCalicoAPIServer = component{ Version: "v3.26.0", Image: "calico/apiserver", } ComponentWindowsUpgrade = component{ Version: "v3.26.0", Image: "calico/windows-upgrade", } ComponentCalicoCSI = component{ Version: "v3.26.0", Image: "calico/csi", } ComponentCalicoCSIRegistrar = component{ Version: "v3.26.0", Image: "calico/node-driver-registrar", } ComponentOperatorInit = component{ Version: version.VERSION, Image: "tigera/operator", } CalicoImages = []component{ ComponentCalicoCNI, ComponentCalicoCNIFIPS, ComponentCalicoKubeControllers, ComponentCalicoNode, ComponentCalicoTypha, ComponentFlexVolume, ComponentOperatorInit, ComponentCalicoAPIServer, ComponentWindowsUpgrade, ComponentCalicoCSI, ComponentCalicoCSIRegistrar, } )
var ( ComponentCSRInitContainer = component{ Version: "v1.1.7", Image: "tigera/key-cert-provisioner", } CommonImages = []component{ ComponentCSRInitContainer, } )
var ( EnterpriseRelease string = "v3.16.1" ComponentAPIServer = component{ Version: "v3.16.1", Image: "tigera/cnx-apiserver", } ComponentComplianceBenchmarker = component{ Version: "v3.16.1", Image: "tigera/compliance-benchmarker", } ComponentComplianceController = component{ Version: "v3.16.1", Image: "tigera/compliance-controller", } ComponentComplianceReporter = component{ Version: "v3.16.1", Image: "tigera/compliance-reporter", } ComponentComplianceServer = component{ Version: "v3.16.1", Image: "tigera/compliance-server", } ComponentComplianceSnapshotter = component{ Version: "v3.16.1", Image: "tigera/compliance-snapshotter", } ComponentDeepPacketInspection = component{ Version: "v3.16.1", Image: "tigera/deep-packet-inspection", } ComponentEckElasticsearch = component{ Version: "7.17.9", } ComponentEckKibana = component{ Version: "7.17.9", } ComponentElasticTseeInstaller = component{ Version: "v3.16.1", Image: "tigera/intrusion-detection-job-installer", } ComponentElasticsearch = component{ Version: "v3.16.1", Image: "tigera/elasticsearch", } ComponentElasticsearchFIPS = component{ Version: "v3.16.1-fips", Image: "tigera/elasticsearch", } ComponentECKElasticsearchOperator = component{ Version: "2.6.1", } ComponentElasticsearchOperator = component{ Version: "v3.16.1", Image: "tigera/eck-operator", } ComponentEsCurator = component{ Version: "v3.16.1", Image: "tigera/es-curator", } ComponentEsProxy = component{ Version: "v3.16.1", Image: "tigera/es-proxy", } ComponentESGateway = component{ Version: "v3.16.1", Image: "tigera/es-gateway", } ComponentLinseed = component{ Version: "v3.16.1", Image: "tigera/linseed", } ComponentFluentd = component{ Version: "v3.16.1", Image: "tigera/fluentd", } ComponentFluentdWindows = component{ Version: "v3.16.1", Image: "tigera/fluentd-windows", } ComponentGuardian = component{ Version: "v3.16.1", Image: "tigera/guardian", } ComponentIntrusionDetectionController = component{ Version: "v3.16.1", Image: "tigera/intrusion-detection-controller", } ComponentAnomalyDetectionJobs = component{ Version: "v3.16.1", Image: "tigera/anomaly_detection_jobs", } ComponentAnomalyDetectionAPI = component{ Version: "v3.16.1", Image: "tigera/anomaly-detection-api", } ComponentKibana = component{ Version: "v3.16.1", Image: "tigera/kibana", } ComponentManager = component{ Version: "v3.16.1", Image: "tigera/cnx-manager", } ComponentDex = component{ Version: "v3.16.1", Image: "tigera/dex", } ComponentManagerProxy = component{ Version: "v3.16.1", Image: "tigera/voltron", } ComponentPacketCapture = component{ Version: "v3.16.1", Image: "tigera/packetcapture", } ComponentPolicyRecommendation = component{ Version: "v3.16.1", Image: "tigera/policy-recommendation", } ComponentEgressGateway = component{ Version: "v3.16.1", Image: "tigera/egress-gateway", } ComponentL7Collector = component{ Version: "v3.16.1", Image: "tigera/l7-collector", } ComponentEnvoyProxy = component{ Version: "v3.16.1", Image: "tigera/envoy", } ComponentDikastes = component{ Version: "v3.16.1", Image: "tigera/dikastes", } ComponentCoreOSPrometheus = component{ Version: "v2.43.1", } ComponentPrometheus = component{ Version: "v3.16.1", Image: "tigera/prometheus", } ComponentTigeraPrometheusService = component{ Version: "v3.16.1", Image: "tigera/prometheus-service", } ComponentCoreOSAlertmanager = component{ Version: "v0.25.0", } ComponentPrometheusAlertmanager = component{ Version: "v3.16.1", Image: "tigera/alertmanager", } ComponentQueryServer = component{ Version: "v3.16.1", Image: "tigera/cnx-queryserver", } ComponentTigeraKubeControllers = component{ Version: "v3.16.1", Image: "tigera/kube-controllers", } ComponentTigeraNode = component{ Version: "v3.16.1", Image: "tigera/cnx-node", } ComponentTigeraTypha = component{ Version: "v3.16.1", Image: "tigera/typha", } ComponentTigeraCNI = component{ Version: "v3.16.1", Image: "tigera/cni", } ComponentTigeraCNIFIPS = component{ Version: "v3.16.1-fips", Image: "tigera/cni", } ComponentCloudControllers = component{ Version: "v3.16.1", Image: "tigera/cloud-controllers", } ComponentElasticsearchMetrics = component{ Version: "v3.16.1", Image: "tigera/elasticsearch-metrics", } ComponentTigeraWindowsUpgrade = component{ Version: "v3.16.1", Image: "tigera/calico-windows-upgrade", } ComponentFlexVolumePrivate = component{ Version: "v3.16.1", Image: "tigera/pod2daemon-flexvol", } ComponentCSIPrivate = component{ Version: "v3.16.1", Image: "tigera/csi", } ComponentCSINodeDriverRegistrarPrivate = component{ Version: "v3.16.1", Image: "tigera/node-driver-registrar", } // 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, ComponentDeepPacketInspection, ComponentElasticTseeInstaller, ComponentElasticsearch, ComponentElasticsearchFIPS, ComponentElasticsearchOperator, ComponentEsCurator, ComponentEsProxy, ComponentFluentd, ComponentFluentdWindows, ComponentGuardian, ComponentIntrusionDetectionController, ComponentAnomalyDetectionJobs, ComponentAnomalyDetectionAPI, ComponentKibana, ComponentManager, ComponentDex, ComponentManagerProxy, ComponentPacketCapture, ComponentPolicyRecommendation, ComponentEgressGateway, ComponentL7Collector, ComponentEnvoyProxy, ComponentPrometheus, ComponentTigeraPrometheusService, ComponentPrometheusAlertmanager, ComponentQueryServer, ComponentTigeraKubeControllers, ComponentTigeraNode, ComponentTigeraTypha, ComponentTigeraCNI, ComponentTigeraCNIFIPS, ComponentCloudControllers, ComponentElasticsearchMetrics, ComponentESGateway, ComponentLinseed, ComponentTigeraWindowsUpgrade, ComponentDikastes, ComponentFlexVolumePrivate, ComponentCSIPrivate, ComponentCSINodeDriverRegistrarPrivate, } )
Functions ¶
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 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 }
ReplicatedPodResourceOverrides represents a type that contains the data needed to override a component DaemonSet or Deployment resource.