deploy

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyntheticAppPortName      = "web"
	SyntheticAppContainerName = "go-synthetic"
)

Variables

This section is empty.

Functions

func CreateGCPSecretResources

func CreateGCPSecretResources(ctx context.Context, kubeClient client.Client, namespace string, serviceAccount []byte) error

func CreateResources

func CreateResources(ctx context.Context, kubeClient client.Client, deployOpts ...DeployOption) error

func OperatorLogs

func OperatorLogs(ctx context.Context, restConfig *rest.Config, kubeClient client.Client, operatorNamespace string) (string, error)

OperatorLogs returns the operator pods logs.

func SyntheticAppResources

func SyntheticAppResources(scheme *runtime.Scheme) (*appsv1.Deployment, *corev1.Service, error)

func WaitForOperatorReady

func WaitForOperatorReady(ctx context.Context, kubeClient client.Client) error

WaitForOperatorReady waits until the GMP operator is ready to serve webhooks.

Types

type DeployOption

type DeployOption func(*deployOptions)

func WithDisableGCM

func WithDisableGCM(disableGCM bool) DeployOption

func WithMeta

func WithMeta(projectID, cluster, location string) DeployOption

func WithOperatorNamespace

func WithOperatorNamespace(namespace string) DeployOption

func WithPublicNamespace

func WithPublicNamespace(namespace string) DeployOption

Jump to

Keyboard shortcuts

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