k8sobject

package
v1.18.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 16 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) client.Object

func GetClusterRoleBinding added in v1.1.0

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

func GetDeployment

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

func GetEmptyResourceQuota added in v1.11.1

func GetEmptyResourceQuota(namespaceName string) client.Object

func GetResourceQuota

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

func GetRole

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

func GetRoleBinding

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

func GetSecret

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

func GetService

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

func GetServiceAccount

func GetServiceAccount(teamComp *s2hv1.Team, namespaceName string) client.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