manifest

package
v0.0.0-...-5af6bcd Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AppManifests

type AppManifests struct {
	Manifests

	CompsMenifests []*CompManifests
}

type Builder

type Builder interface {
	Build() *AppManifests
}

func NewTemplateBuilder

func NewTemplateBuilder(template *template.AppTemplate) Builder

type CompManifests

type CompManifests struct {
	Manifests

	Name string

	Deployment  *app_v1.Deployment
	DaemonSet   *app_v1.DaemonSet
	StatefulSet *app_v1.StatefulSet
	ReplicaSet  *app_v1.ReplicaSet
	Job         *batch_v1.Job
	CronJob     *batch_v1.CronJob

	HPA *autoscaling_v1.HorizontalPodAutoscaler
}

type ManifestType

type ManifestType int
const (
	ConfigMap ManifestType = iota
	Secret
	ServiceAccount
	ClusterRole
	ClusterRoleBinding
	Role
	RoleBinding
	Ingress
	Service
	Deployment
	DaemonSet
	StatefulSet
	ReplicaSet
	Job
	CronJob
	HPA
)

type Manifests

type Manifests struct {
	ConfigMaps []*core_v1.ConfigMap
	Secrets    []*core_v1.Secret
	Services   []*core_v1.Service

	ServiceAccount     *core_v1.ServiceAccount
	ClusterRole        *rbac_v1.ClusterRole
	ClusterRoleBinding *rbac_v1.ClusterRoleBinding
	Role               *rbac_v1.Role
	RoleBinding        *rbac_v1.RoleBinding
	Ingress            *networking_v1.Ingress
}

Jump to

Keyboard shortcuts

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