utils

package
v0.0.0-...-4334866 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: EPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheImages

func CacheImages(clientset *kubernetes.Clientset)

CacheImages creates the daemonset responsible for ensuring images are cached

func DeleteDaemonsetIfExists

func DeleteDaemonsetIfExists(clientset *kubernetes.Clientset)

DeleteDaemonsetIfExists first checks if the daemonset exists, and deletes it if it does. Useful for ensuring no daemonset is already present from a previous rollout.

func EnsureDaemonsetExists

func EnsureDaemonsetExists(clientset *kubernetes.Clientset)

EnsureDaemonsetExists checks that the daemonset is still present, and recreates it if necessary

func GetServiceAccountToken

func GetServiceAccountToken(serviceAccountID, serviceAccountSecret, oidcProvider string) string

GetServiceAccountToken retrieves service accout token from the OIDC provider

func LogNumNodesScheduled

func LogNumNodesScheduled(clientset *kubernetes.Clientset, user string)

LogNumNodesScheduled logs the basic status of the daemonset.

func RefreshCache

func RefreshCache(clientset *kubernetes.Clientset)

RefreshCache forces a refresh of all pods in the daemonset, to ensure images with mutable tags (e.g. nightlies) are up-to-date.

Types

This section is empty.

Jump to

Keyboard shortcuts

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