util

package
v1.1.0-alpha.1....-acf7b57 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClusterRoleBindingIfNotExists

func CreateClusterRoleBindingIfNotExists(client clientset.Interface, clusterRoleBinding *rbac.ClusterRoleBinding) error

CreateClusterRoleBindingIfNotExists creates a ClusterRoleBinding if the target resource doesn't exist. If the resource exists already, this function will update the resource instead.

func CreateClusterRoleIfNotExists

func CreateClusterRoleIfNotExists(client clientset.Interface, clusterRole *rbac.ClusterRole) error

CreateClusterRoleIfNotExists creates a ClusterRole if the target resource doesn't exist. If the resource exists already, this function will update the resource instead.

func CreateConfigMapIfNotExists

func CreateConfigMapIfNotExists(client clientset.Interface, cm *v1.ConfigMap) error

CreateConfigMapIfNotExists creates a ConfigMap if the target resource doesn't exist. If the resource exists already, this function will update the resource instead.

func CreateRoleBindingIfNotExists

func CreateRoleBindingIfNotExists(client clientset.Interface, roleBinding *rbac.RoleBinding) error

CreateRoleBindingIfNotExists creates a RoleBinding if the target resource doesn't exist. If the resource exists already, this function will update the resource instead.

func CreateRoleIfNotExists

func CreateRoleIfNotExists(client clientset.Interface, role *rbac.Role) error

CreateRoleIfNotExists creates a Role if the target resource doesn't exist. If the resource exists already, this function will update the resource instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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