Documentation ¶
Index ¶
Constants ¶
const GroupName = "lakom.extensions.gardener.cloud"
GroupName is the group name use in this package
Variables ¶
var ( // SchemeBuilder used to register the Shoot resource. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a pointer to SchemeBuilder.AddToScheme. AddToScheme = SchemeBuilder.AddToScheme )
var AllowedScopes sets.Set[ScopeType] = sets.New(KubeSystem, KubeSystemManagedByGardener, Cluster)
AllowedScopes lists the scopes that can be chosen for lakom.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type LakomConfig ¶
type LakomConfig struct { metav1.TypeMeta // The scope in which lakom will verify pods Scope *ScopeType }
LakomConfig contains information about the Lakom service configuration.
func (*LakomConfig) DeepCopy ¶
func (in *LakomConfig) DeepCopy() *LakomConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LakomConfig.
func (*LakomConfig) DeepCopyInto ¶
func (in *LakomConfig) DeepCopyInto(out *LakomConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LakomConfig) DeepCopyObject ¶
func (in *LakomConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScopeType ¶
type ScopeType string
ScopeType determines the namespaces and labels that will be monitored by lakom webhooks
const ( // KubeSystem denotes the `kube-system` namespace KubeSystem ScopeType = "KubeSystem" // KubeSystemManagedByGardener denotes pods in the `kube-system` namespace that have a `managed-by/gardener` label KubeSystemManagedByGardener ScopeType = "KubeSystemManagedByGardener" // Cluster denotes the whole cluster Cluster ScopeType = "Cluster" )