resources

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultResourceCPUCores            = float32(0.5)
	DefaultResourceMemoryMB            = int32(256)
	DefaultResourceRequestFactorCPU    = 0.25
	DefaultResourceRequestFactorMemory = 0.5
)

TODO: Configure these defaults per stage

Variables

This section is empty.

Functions

func CreateDeployment

func CreateDeployment(ctx *core.DeploymentContext) (*appsv1.Deployment, error)

CreateDeployment creates a kubernetes Deployment from a riser deployment

func CreateNamespace

func CreateNamespace(namespace *core.Namespace) (*corev1.Namespace, error)

func CreateService

func CreateService(ctx *core.DeploymentContext) (*corev1.Service, error)

Types

type SealedSecret

type SealedSecret struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec SealedSecretSpec `json:"spec"`
}

func CreateSealedSecret

func CreateSealedSecret(plaintextSecret string, secretMeta *core.SecretMeta, namespace string, certBytes []byte) (*SealedSecret, error)

TODO: Consider using something like https://github.com/awnumar/memguard instead of passing the secret as a string

type SealedSecretSpec

type SealedSecretSpec struct {
	EncryptedData map[string][]byte `json:"encryptedData"`
}

type VirtualService

type VirtualService struct {
	metav1.ObjectMeta `json:"metadata"`
	metav1.TypeMeta   `json:",inline"`
	Spec              *istionet.VirtualService `json:"spec"`
}

VirtualService represents an istio VirtualService

func CreateVirtualService

func CreateVirtualService(ctx *core.DeploymentContext) (*VirtualService, error)

Jump to

Keyboard shortcuts

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