Documentation ¶
Overview ¶
Copyright (c) 2016-2024 Tigera, Inc. All rights reserved.
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 ( DEFAULT_IPV4_POOL_CIDR = "192.168.0.0/16" DEFAULT_IPV4_POOL_BLOCK_SIZE = 26 DEFAULT_IPV6_POOL_BLOCK_SIZE = 122 DEFAULT_IPV4_POOL_NAME = "default-ipv4-ippool" DEFAULT_IPV6_POOL_NAME = "default-ipv6-ippool" DEFAULT_MONITOR_IP_POLL_INTERVAL = 60 * time.Second // KubeadmConfigConfigMap is defined in k8s.io/kubernetes, which we can't import due to versioning issues. KubeadmConfigConfigMap = "kubeadm-config" // Rancher clusters store their state in this config map in the kube-system namespace. RancherStateConfigMap = "full-cluster-state" OSTypeLinux = "lin" OSTypeWindows = "win" )
Variables ¶
var VERSION string
Version string, set during build.
Functions ¶
func ConfigureLogging ¶
func ConfigureLogging()
func CreateOrUpdate ¶
func CreateOrUpdate(ctx context.Context, client client.Interface, node *libapi.Node) (*libapi.Node, error)
CreateOrUpdate creates the Node if ResourceVersion is not specified, or Update if it's specified.
func GenerateIPv6ULAPrefix ¶
generateIPv6ULAPrefix return a random generated ULA IPv6 prefix as per RFC 4193. The pool is generated from bytes pulled from a secure random source.
func MonitorIPAddressSubnets ¶
func MonitorIPAddressSubnets()
Types ¶
This section is empty.