builtinresource

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deployment_test

func Deployment_test() error

func HorizontalPodAutoscaler_test

func HorizontalPodAutoscaler_test() error

func Ingress_test

func Ingress_test() error

func Service_test

func Service_test() error

Types

type Deployment

type Deployment struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   struct {
		Name string `yaml:"name"`
	} `yaml:"metadata"`
	Spec struct {
		Selector struct {
			MatchLabels struct {
				App string `yaml:"app"`
			} `yaml:"matchLabels"`
		} `yaml:"selector"`
		Replicas int `yaml:"replicas"`
		Template struct {
			Metadata struct {
				Labels struct {
					App string `yaml:"app"`
				} `yaml:"labels"`
			} `yaml:"metadata"`
			Spec struct {
				ImagePullSecrets []Deployment_ImagePullSecrets `yaml:"imagePullSecrets"`
				Containers       []Deployment_Containers       `yaml:"containers"`
			} `yaml:"spec"`
		} `yaml:"template"`
	} `yaml:"spec"`
}

type Deployment_Containers

type Deployment_Containers struct {
	Name            string                        `yaml:"name"`
	Image           string                        `yaml:"image"`
	ImagePullPolicy string                        `yaml:"imagePullPolicy"`
	Ports           []Deployment_Containers_Ports `yaml:"ports"`
}

type Deployment_Containers_Ports

type Deployment_Containers_Ports struct {
	ContainerPort int `yaml:"containerPort"`
}

type Deployment_ImagePullSecrets

type Deployment_ImagePullSecrets struct {
	Name string `yaml:"name"`
}

type HorizontalPodAutoscaler

type HorizontalPodAutoscaler struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   struct {
		Name string `yaml:"name"`
	} `yaml:"metadata"`
	Spec struct {
		ScaleTargetRef struct {
			APIVersion string `yaml:"apiVersion"`
			Kind       string `yaml:"kind"`
			Name       string `yaml:"name"`
		} `yaml:"scaleTargetRef"`
		MinReplicas                    int `yaml:"minReplicas"`
		MaxReplicas                    int `yaml:"maxReplicas"`
		TargetCPUUtilizationPercentage int `yaml:"targetCPUUtilizationPercentage"`
	} `yaml:"spec"`
}

type Ingress

type Ingress struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   struct {
		Name        string `yaml:"name"`
		Annotations struct {
			NginxIngressKubernetesIoProxyBodySize string `yaml:"nginx.ingress.kubernetes.io/proxy-body-size"`
		} `yaml:"annotations"`
	} `yaml:"metadata"`
	Spec struct {
		Rules []Ingress_Rules `yaml:"rules"`
	} `yaml:"spec"`
}

type Ingress_Rules

type Ingress_Rules struct {
	Host string `yaml:"host"`
	HTTP struct {
		Paths []Ingress_Rules_Paths `yaml:"paths"`
	} `yaml:"http"`
}

type Ingress_Rules_Paths

type Ingress_Rules_Paths struct {
	Path     string `yaml:"path"`
	PathType string `yaml:"pathType"`
	Backend  struct {
		Service struct {
			Name string `yaml:"name"`
			Port struct {
				Number int `yaml:"number"`
			} `yaml:"port"`
		} `yaml:"service"`
	} `yaml:"backend"`
}

type NodePort

type NodePort struct {
	Kind       string `yaml:"kind"`
	APIVersion string `yaml:"apiVersion"`
	Metadata   struct {
		Name string `yaml:"name"`
	} `yaml:"metadata"`
	Spec struct {
		Type     string `yaml:"type"`
		Selector struct {
			IoKomposeService string `yaml:"io.kompose.service"`
		} `yaml:"selector"`
		Ports []NodePort_Ports `yaml:"ports"`
	} `yaml:"spec"`
}

type NodePort_Ports

type NodePort_Ports struct {
	NodePort   int `yaml:"nodePort"`
	Port       int `yaml:"port"`
	TargetPort int `yaml:"targetPort"`
}

type Service

type Service struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   struct {
		Name   string `yaml:"name"`
		Labels struct {
			App string `yaml:"app"`
		} `yaml:"labels"`
	} `yaml:"metadata"`
	Spec struct {
		Type     string          `yaml:"type"`
		Ports    []Service_Ports `yaml:"ports"`
		Selector struct {
			App string `yaml:"app"`
		} `yaml:"selector"`
	} `yaml:"spec"`
}

type Service_Ports

type Service_Ports struct {
	Port       int    `yaml:"port"`
	TargetPort int    `yaml:"targetPort"`
	Protocol   string `yaml:"protocol"`
}

Jump to

Keyboard shortcuts

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