definitions

package
v0.0.0-...-3daf094 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIsolationNetworkPolicyDefinition

func GetIsolationNetworkPolicyDefinition(namespace string, temp bool) *networking.NetworkPolicy

GetIsolationNetworkPolicyDefinition returns a NetworkPolicy that isolates non-ops, non temporary team namespaces from everything but ops-labeled and themselves

func GetLimitRangeDefinition

func GetLimitRangeDefinition(namespaceName string) *core.LimitRange

func GetRoleBindingDefinition

func GetRoleBindingDefinition(namespaceName string, subjectName string, roleName string,
	roleRefName string, roleType string) *rbac.RoleBinding

Types

type Namespace

type Namespace struct {
	Name           string            `yaml:"name"`
	Annotations    map[string]string `yaml:"annotations,omitempty"`
	PrivilegedMode string            `yaml:"privilegedmode"`
	Team, Stage    string
}

Jump to

Keyboard shortcuts

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