k8sobject

package
v1.10.5 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenClusterRoleName added in v1.1.0

func GenClusterRoleName(namespace string) string

func GetClusterRole added in v1.1.0

func GetClusterRole(teamComp *s2hv1.Team, namespace string) runtime.Object

func GetClusterRoleBinding added in v1.1.0

func GetClusterRoleBinding(teamComp *s2hv1.Team, namespace string) runtime.Object

func GetDeployment

func GetDeployment(scheme *runtime.Scheme, teamComp *s2hv1.Team, namespaceName string,
	configs *internal.SamsahaiConfig) runtime.Object

func GetResourceQuota

func GetResourceQuota(teamComp *s2hv1.Team, namespaceName string, resources corev1.ResourceList) runtime.Object

func GetRole

func GetRole(teamComp *s2hv1.Team, namespaceName string) runtime.Object

func GetRoleBinding

func GetRoleBinding(teamComp *s2hv1.Team, namespaceName string) runtime.Object

func GetSecret

func GetSecret(scheme *runtime.Scheme, teamComp *s2hv1.Team, namespaceName string, kvs ...KeyValue) runtime.Object

func GetService

func GetService(scheme *runtime.Scheme, teamComp *s2hv1.Team, namespaceName string) runtime.Object

func GetServiceAccount

func GetServiceAccount(teamComp *s2hv1.Team, namespaceName string) runtime.Object

func GetTeamSecretName

func GetTeamSecretName(teamName string) string

func IsK8sObjectChanged

func IsK8sObjectChanged(found, target runtime.Object) bool

Types

type KeyValue

type KeyValue struct {
	Key   string
	Value intstr.IntOrString
}

Jump to

Keyboard shortcuts

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