templates

package
v0.0.0-...-7de36fb Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterRoleBinding

func ClusterRoleBinding(namespace, name string) *rbacv1.ClusterRoleBinding

ClusterRoleBinding creates a clusterRoleBinding template.

func ConfigMap

func ConfigMap(namespace, name string) *coreAPI.ConfigMap

ConfigMap creates a configMap template.

func Deployment

func Deployment(namespace, deploymentName string, replicas int32) *appsAPI.Deployment

Deployment creates a deployment template.

func HeadlessService

func HeadlessService(identifier *config.KubeRessourceIdentifier) *coreAPI.Service

HeadlessService creates a service template.

func Ingress

func Ingress(namespace string) *networkAPI.Ingress

Ingress creates an ingress template.

func IngressClass

func IngressClass(namespace string) *networkAPI.IngressClass

IngressClass creates an ingressClass template.

func Namespace

func Namespace(namespace string) *coreAPI.Namespace

Namespace creates a namespace template.

func PersistentVolume

func PersistentVolume(identifier *config.KubeRessourceIdentifier) *coreAPI.PersistentVolume

PersistentVolume creates a PV template.

func PersistentVolumeClaim

func PersistentVolumeClaim(identifier *config.KubeRessourceIdentifier) *coreAPI.PersistentVolumeClaim

PersistentVolumeClaim return a PVC template.

func Pod

Pod creates a Pod template.

func Secret

func Secret(name string) *coreAPI.Secret

Secret creates a secret template.

func ServiceAccount

func ServiceAccount(namespace, serviceAccountName string) *coreAPI.ServiceAccount

ServiceAccount creates a serviceAccount.

func ServiceClusterIP

func ServiceClusterIP(namespace, serviceName string, portNum int) *coreAPI.Service

ServiceClusterIP creates a ClusterIP-Service template.

func ServiceLoadBalancer

func ServiceLoadBalancer(namespace, serviceName string, portNum int) *coreAPI.Service

ServiceLoadBalancer creates a LB-Service template.

func StatefulSet

func StatefulSet(identifier *config.KubeRessourceIdentifier) *appsAPI.StatefulSet

StatefulSet return a statefulSet template.

func StorageClass

func StorageClass(name string, reclaimPolicy coreAPI.PersistentVolumeReclaimPolicy) *storagev1.StorageClass

StorageClass creates a storageClass template.

Types

This section is empty.

Jump to

Keyboard shortcuts

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