generators

package
v0.0.0-...-30450d6 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartDirectory

type ChartDirectory struct {
	// Path to the chart values.yaml file
	Values string
	// Name of .tgz file containing chart
	Chart string
	// Images is the name of the file
	// containing default certified images
	Images string
}

ChartDirectory contains information on the helm charts available to the the operator

type ImageCatalog

type ImageCatalog struct {
	Pachd     *aimlv1beta1.ImageOverride `json:"pachd,omitempty"`
	Console   *aimlv1beta1.ImageOverride `json:"console,omitempty"`
	Postgres  *aimlv1beta1.ImageOverride `json:"postgres,omitempty"`
	Etcd      *aimlv1beta1.ImageOverride `json:"etcd,omitempty"`
	Worker    *aimlv1beta1.ImageOverride `json:"worker,omitempty"`
	PgBouncer *aimlv1beta1.ImageOverride `json:"pgbouncer,omitempty"`
	Utilities *aimlv1beta1.ImageOverride `json:"utilities,omitempty"`
}

ImageCatalog consists the certified images required to deploy a Pachyderm cluster

type PachydermCluster

type PachydermCluster struct {
	Pod                 *corev1.Pod
	ClusterRoleBindings []*rbacv1.ClusterRoleBinding
	ClusterRoles        []*rbacv1.ClusterRole
	RoleBindings        []*rbacv1.RoleBinding
	Roles               []*rbacv1.Role
	ServiceAccounts     []*corev1.ServiceAccount
	Services            []*corev1.Service
	// contains filtered or unexported fields
}

PachydermCluster is a structure that contains all the Kubernetes resources that make up a Pachyderm cluster

func PrepareCluster

func PrepareCluster(pd *aimlv1beta1.Pachyderm) (*PachydermCluster, error)

PrepareCluster takes a pachyderm custom resource and returns child resources based on the pachyderm custom resource TODO: decode any input here

func (*PachydermCluster) ConfigMaps

func (c *PachydermCluster) ConfigMaps() []*corev1.ConfigMap

ConfigMaps returns a slice of pachyderm cluster configmaps

func (*PachydermCluster) Deployments

func (c *PachydermCluster) Deployments() []*appsv1.Deployment

Deployments returns slice of deployments generated by the helm template command

func (*PachydermCluster) EtcdStatefulSet

func (c *PachydermCluster) EtcdStatefulSet() *appsv1.StatefulSet

EtcdStatefulSet returns the etcd statefulset resource

func (*PachydermCluster) Pachyderm

func (c *PachydermCluster) Pachyderm() *aimlv1beta1.Pachyderm

Pachyderm returns the pachyderm resource used to configure components

func (*PachydermCluster) PostgreStatefulset

func (c *PachydermCluster) PostgreStatefulset() *appsv1.StatefulSet

PostgreStatefulset returns the postgresql statefulset resource

func (*PachydermCluster) Secrets

func (c *PachydermCluster) Secrets() []*corev1.Secret

Secrets returns secrets used by the pachyderm resource

func (*PachydermCluster) StorageClasses

func (c *PachydermCluster) StorageClasses() []*storagev1.StorageClass

StorageClasses returns a new etcd storage class if an existing one is not used or provided

type Resources

type Resources struct {
	Requests map[string]string
	Limits   map[string]string
}

Resources provides a way to access resource limits from the template

Jump to

Keyboard shortcuts

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