Documentation ¶
Index ¶
- Constants
- Variables
- func AllObjectKinds() []string
- func GetClusterRoleAPIVersion() string
- func GetClusterRoleBindingAPIVersion() string
- func GetHorizontalPodAutoscalerAPIVersion(version string) string
- func GetIngressAPIVersion() string
- func GetNetworkPolicyAPIVersion() string
- func GetPodDisruptionBudgetAPIVersion() string
- func GetRoleAPIVersion() string
- func GetRoleBindingAPIVersion() string
- func GetSCCAPIVersion() string
- func GetScaledObjectAPIVersion(version string) string
- func GetServiceMonitorAPIVersion() string
- func IsDeploymentLike(gvk schema.GroupVersionKind) bool
- func RegisterObjectKind(name string, objectKind Matcher)
- type Matcher
- type MatcherFunc
Constants ¶
const (
// Any represents the ObjectKind that matches any object.
Any = "Any"
)
const (
// ClusterRole represents Kubernetes ClusterRole objects. Case sensitive.
ClusterRole = "ClusterRole"
)
const (
// ClusterRoleBinding represents Kubernetes ClusterRoleBinding objects. Case sensitive.
ClusterRoleBinding = "ClusterRoleBinding"
)
const (
// DeploymentLike is the name of the DeploymentLike ObjectKind.
DeploymentLike = "DeploymentLike"
)
const (
// HorizontalPodAutoscaler represents Kubernetes HorizontalPodAutoscaler objects. Case sensitive.
HorizontalPodAutoscaler = "HorizontalPodAutoscaler"
)
const (
// Ingress represents Kubernetes Ingress objects.
Ingress = "Ingress"
)
const (
// NetworkPolicy represents Kubernetes NetworkPolicy objects.
NetworkPolicy = "NetworkPolicy"
)
const (
// PodDisruptionBudget represents Kubernetes PodDisruptionBudget objects.
PodDisruptionBudget = "PodDisruptionBudget"
)
const (
// Role represents Kubernetes Role objects. Case sensitive.
Role = "Role"
)
const (
// RoleBinding represents Kubernetes RoleBinding objects. Case sensitive.
RoleBinding = "RoleBinding"
)
const (
// ScaledObject represents Kubernetes ScaledObject objects. Case sensitive.
ScaledObject = "ScaledObject"
)
const (
// Service represents Kubernetes Service objects.
SecurityContextConstraints = "SecurityContextConstraints"
)
const (
// Service represents Kubernetes Service objects.
Service = "Service"
)
const (
// ServiceAccount represents Kubernetes ServiceAccount objects.
ServiceAccount = "ServiceAccount"
)
const ( // ServiceMonitor represents Prometheus Service Monitor objects. ServiceMonitor = k8sMonitoring.ServiceMonitorsKind )
Variables ¶
var (
ScaledObjectV1Alpha1 = kedaV1Alpha1.SchemeGroupVersion.WithKind(ScaledObject)
)
Functions ¶
func AllObjectKinds ¶
func AllObjectKinds() []string
AllObjectKinds will return all the object kind names that are registered
func GetClusterRoleAPIVersion ¶
func GetClusterRoleAPIVersion() string
GetClusterRoleAPIVersion returns ClusterRole's APIVersion
func GetClusterRoleBindingAPIVersion ¶
func GetClusterRoleBindingAPIVersion() string
GetClusterRoleBindingAPIVersion returns ClusterRoleBinding's APIVersion
func GetHorizontalPodAutoscalerAPIVersion ¶
GetHorizontalPodAutoscalerAPIVersion returns HorizontalPodAutoscaler's APIVersion
func GetIngressAPIVersion ¶ added in v0.6.1
func GetIngressAPIVersion() string
GetIngressAPIVersion returns Ingress's apiversion
func GetNetworkPolicyAPIVersion ¶
func GetNetworkPolicyAPIVersion() string
GetNetworkPolicyAPIVersion returns networkpolicy's apiversion
func GetPodDisruptionBudgetAPIVersion ¶ added in v0.6.3
func GetPodDisruptionBudgetAPIVersion() string
GetPodDisruptionBudgetAPIVersion returns pdb's apiversion
func GetRoleAPIVersion ¶
func GetRoleAPIVersion() string
GetRoleAPIVersion returns Role's APIVersion
func GetRoleBindingAPIVersion ¶
func GetRoleBindingAPIVersion() string
GetRoleBindingAPIVersion returns RoleBinding's APIVersion
func GetSCCAPIVersion ¶ added in v0.6.5
func GetSCCAPIVersion() string
GetSCCAPIVersion returns SCC's apiversion
func GetScaledObjectAPIVersion ¶ added in v0.6.8
GetScaledObjectAPIVersion returns ScaledObject's APIVersion
func GetServiceMonitorAPIVersion ¶ added in v0.6.5
func GetServiceMonitorAPIVersion() string
GetServiceMonitorAPIVersion returns servicemonitor's apiversion
func IsDeploymentLike ¶ added in v0.6.3
func IsDeploymentLike(gvk schema.GroupVersionKind) bool
func RegisterObjectKind ¶ added in v0.6.1
RegisterObjectKind allows a matcher function to be registered for a given object kind
Types ¶
type Matcher ¶
type Matcher interface {
Matches(gvk schema.GroupVersionKind) bool
}
A Matcher selects a certain subset of GVKs.
func ConstructMatcher ¶
ConstructMatcher constructs a matcher that matches objects that fall into one of the given object kinds.
type MatcherFunc ¶ added in v0.6.1
type MatcherFunc func(gvk schema.GroupVersionKind) bool
MatcherFunc takes in a GVK and decides if it matches an object kind
func (MatcherFunc) Matches ¶ added in v0.6.1
func (f MatcherFunc) Matches(gvk schema.GroupVersionKind) bool