common

package
v1.20.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Index

Constants

View Source
const (
	CalicoNamespace     = "calico-system"
	TyphaDeploymentName = "calico-typha"
	NodeDaemonSetName   = "calico-node"

	TigeraPrometheusNamespace = "tigera-prometheus"

	// ComplianceFeature name
	ComplianceFeature = "compliance-reports"
	// ThreatDefenseFeature feature name
	ThreatDefenseFeature = "threat-defense"
	// ExportLogsFeature to 3rd party systems feature name
	ExportLogsFeature = "export-logs"
)

Variables

This section is empty.

Functions

func GetExpectedTyphaScale added in v1.15.1

func GetExpectedTyphaScale(nodes int) int

GetTyphaScaleCount will return the number of Typhas needed for the number of nodes.

Types

type VersionInfo added in v1.18.0

type VersionInfo struct {
	Major int
	Minor int
}

VersionInfo contains information about the version of Kubernetes API the cluster is using Major and Minor fields map to the v<Major>.<Minor>+ part of the version string

func GetKubernetesVersion added in v1.18.0

func GetKubernetesVersion(clientset kubernetes.Interface) (*VersionInfo, error)

func (*VersionInfo) ProvidesCertV1API added in v1.18.0

func (v *VersionInfo) ProvidesCertV1API() bool

ProvidesCertV1API returns if k8s.io/api/certificates/v1 is supported given the current k8s version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL