Documentation ¶
Index ¶
- type Deployment
- type DeploymentMetadata
- type DeploymentSpec
- type DeploymentSpecSelector
- type Ingress
- type IngressBackend
- type IngressBackendService
- type IngressMetadata
- type IngressSpec
- type IngressSpecRule
- type IngressSpecRuleHttp
- type IngressSpecRuleHttpPath
- type Namespace
- type NamespaceMetadata
- type Node
- type NodeMetadata
- type Pod
- type PodMetadata
- type PodMetadataOwnerReference
- type PodSpec
- type PodSpecContainer
- type PodSpecContainersResources
- type PodSpecContainersResourcesItem
- type PodSpecContainersSecurityContext
- type Resource
- type Service
- type ServiceMetadata
- type ServiceSpec
- type ServiceSpecPort
- type Statefulset
- type StatefulsetMetadata
- type StatefulsetSpec
- type StatefulsetSpecSelector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
type Deployment struct { Metadata DeploymentMetadata `json:"metadata"` Spec DeploymentSpec `json:"spec"` }
type DeploymentMetadata ¶
type DeploymentSpec ¶
type DeploymentSpec struct { Replicas int32 `json:"replicas"` Selector DeploymentSpecSelector `json:"selector"` }
type DeploymentSpecSelector ¶
type Ingress ¶
type Ingress struct { Metadata IngressMetadata `json:"metadata"` Spec IngressSpec `json:"spec"` }
type IngressBackend ¶
type IngressBackend struct {
Service *IngressBackendService `json:"service,omitempty"`
}
type IngressBackendService ¶
type IngressBackendService struct {
Name string `json:"name,omitempty"`
}
type IngressMetadata ¶
type IngressSpec ¶
type IngressSpec struct { DefaultBackend *IngressBackend `json:"defaultBackend,omitempty"` Rules []*IngressSpecRule `json:"rules,omitempty"` }
type IngressSpecRule ¶
type IngressSpecRule struct {
Http *IngressSpecRuleHttp `json:"http,omitempty"`
}
type IngressSpecRuleHttp ¶
type IngressSpecRuleHttp struct {
Paths []*IngressSpecRuleHttpPath `json:"paths,omitempty"`
}
type IngressSpecRuleHttpPath ¶
type IngressSpecRuleHttpPath struct {
Backend *IngressBackend `json:"backend,omitempty"`
}
type Namespace ¶
type Namespace struct {
Metadata NamespaceMetadata `json:"metadata"`
}
type NamespaceMetadata ¶
type Node ¶
type Node struct {
Metadata NodeMetadata `json:"metadata"`
}
type NodeMetadata ¶
type Pod ¶
type Pod struct { Metadata PodMetadata `json:"metadata"` Spec PodSpec `json:"spec"` }
type PodMetadata ¶
type PodMetadata struct { Name string `json:"name"` Namespace string `json:"namespace"` Labels map[string]string `json:"labels,omitempty"` // Annotations map[string]string `json:"annotations,omitempty"` // for the moment we do not need annoations OwnerReferences []PodMetadataOwnerReference `json:"ownerReferences,omitempty"` }
type PodSpec ¶
type PodSpec struct { Containers []PodSpecContainer `json:"containers"` NodeName string `json:"nodeName"` }
type PodSpecContainer ¶
type PodSpecContainer struct { Image string `json:"image"` Name string `json:"name"` SecurityContext *PodSpecContainersSecurityContext `json:"securityContext,omitempty"` Resources *PodSpecContainersResources `json:"resources,omitempty"` LivenessProbe *map[string]interface{} `json:"livenessProbe,omitempty"` ReadinessProbe *map[string]interface{} `json:"readinessProbe,omitempty"` StartupProbe *map[string]interface{} `json:"startupProbe,omitempty"` }
type PodSpecContainersResources ¶
type PodSpecContainersResources struct { Limits PodSpecContainersResourcesItem `json:"limits,omitempty"` Requests PodSpecContainersResourcesItem `json:"requests,omitempty"` }
type Resource ¶
type Resource interface { Pod | Deployment | Statefulset | Service | Ingress | Namespace | Node | kyvernov1.ClusterPolicy }
type Service ¶
type Service struct { Metadata ServiceMetadata `json:"metadata"` Spec ServiceSpec `json:"spec"` }
type ServiceMetadata ¶
type ServiceSpec ¶
type ServiceSpec struct { Selector map[string]string `json:"selector,omitempty"` Ports []ServiceSpecPort `json:"ports,omitempty"` }
type ServiceSpecPort ¶
type Statefulset ¶
type Statefulset struct { Metadata StatefulsetMetadata `json:"metadata"` Spec StatefulsetSpec `json:"spec"` }
type StatefulsetMetadata ¶
type StatefulsetSpec ¶
type StatefulsetSpec struct { Replicas int32 `json:"replicas"` Selector DeploymentSpecSelector `json:"selector,omitempty"` }
type StatefulsetSpecSelector ¶
Click to show internal directories.
Click to hide internal directories.