resources

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 36 Imported by: 10

Documentation

Overview

Package resources holds simple functions for synthesizing child resources from a Revision resource and any relevant Revision controller configuration.

Index

Constants

View Source
const (
	// QueueContainerName is the name of the queue proxy side car
	QueueContainerName = "queue-proxy"

	// AppLabelKey is the label defining the application's name.
	AppLabelKey = "app"
)

Variables

This section is empty.

Functions

func BuildPodSpec added in v0.14.0

func BuildPodSpec(rev *v1.Revision, containers []corev1.Container, cfg *config.Config) *corev1.PodSpec

BuildPodSpec creates a PodSpec from the given revision and containers. cfg can be passed as nil if not within revision reconciliation context.

func BuildUserContainers added in v0.16.0

func BuildUserContainers(rev *v1.Revision) []corev1.Container

BuildUserContainers makes an array of containers from the Revision template.

func MakeDeployment

func MakeDeployment(rev *v1.Revision, cfg *config.Config) (*appsv1.Deployment, error)

MakeDeployment constructs a K8s Deployment resource from a revision.

func MakeImageCache

func MakeImageCache(rev *v1.Revision, containerName, image string) *caching.Image

MakeImageCache makes an caching.Image resources from a revision.

func MakePA added in v0.8.0

func MakePA(rev *v1.Revision, deployment *appsv1.Deployment) *autoscalingv1alpha1.PodAutoscaler

MakePA makes a Knative Pod Autoscaler resource from a revision.

func MakeQueueProxyCertificate added in v0.41.0

func MakeQueueProxyCertificate(namespace *corev1.Namespace, certClass string) *v1alpha1.Certificate

MakeQueueProxyCertificate creates a KnativeCertificate to be used by Queue-Proxy for system-internal-tls.

Types

This section is empty.

Directories

Path Synopsis
Package names holds simple functions for synthesizing resource names.
Package names holds simple functions for synthesizing resource names.

Jump to

Keyboard shortcuts

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