resources

package
v0.0.0-...-2e32a30 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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 DeploymentMetadata struct {
	Name      string            `json:"name"`
	Namespace string            `json:"namespace"`
	Labels    map[string]string `json:"labels,omitempty"`
}

type DeploymentSpec

type DeploymentSpec struct {
	Replicas int32                  `json:"replicas"`
	Selector DeploymentSpecSelector `json:"selector"`
}

type DeploymentSpecSelector

type DeploymentSpecSelector struct {
	MatchLabels map[string]string `json:"matchLabels"`
}

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 IngressMetadata struct {
	Name      string            `json:"name"`
	Namespace string            `json:"namespace"`
	Labels    map[string]string `json:"labels,omitempty"`
}

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 NamespaceMetadata struct {
	Name        string            `json:"name"`
	Labels      map[string]string `json:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

type Node

type Node struct {
	Metadata NodeMetadata `json:"metadata"`
}

type NodeMetadata

type NodeMetadata struct {
	Name        string            `json:"name"`
	Labels      map[string]string `json:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

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 PodMetadataOwnerReference

type PodMetadataOwnerReference struct {
	Kind       string `json:"kind"`
	Name       string `json:"name"`
	ApiVersion string `json:"apiVersion"`
}

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 PodSpecContainersResourcesItem

type PodSpecContainersResourcesItem struct {
	Cpu    string `json:"cpu,omitempty"`
	Memory string `json:"memory,omitempty"`
}

type PodSpecContainersSecurityContext

type PodSpecContainersSecurityContext struct {
	AllowPrivilegeEscalation bool                   `json:"allowPrivilegeEscalation"`
	Capabilites              map[string]interface{} `json:"capabilities,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 ServiceMetadata struct {
	Name      string            `json:"name"`
	Namespace string            `json:"namespace"`
	Labels    map[string]string `json:"labels,omitempty"`
}

type ServiceSpec

type ServiceSpec struct {
	Selector map[string]string `json:"selector,omitempty"`
	Ports    []ServiceSpecPort `json:"ports,omitempty"`
}

type ServiceSpecPort

type ServiceSpecPort struct {
	Name       string `json:"name,omitempty"`
	Port       int32  `json:"port,omitempty"`
	TargetPort int32  `json:"targetPort,omitempty"`
	Protocol   string `json:"protocol,omitempty"`
}

type Statefulset

type Statefulset struct {
	Metadata StatefulsetMetadata `json:"metadata"`
	Spec     StatefulsetSpec     `json:"spec"`
}

type StatefulsetMetadata

type StatefulsetMetadata struct {
	Name      string            `json:"name"`
	Namespace string            `json:"namespace"`
	Labels    map[string]string `json:"labels,omitempty"`
}

type StatefulsetSpec

type StatefulsetSpec struct {
	Replicas int32                  `json:"replicas"`
	Selector DeploymentSpecSelector `json:"selector,omitempty"`
}

type StatefulsetSpecSelector

type StatefulsetSpecSelector struct {
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
}

Jump to

Keyboard shortcuts

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