socketservice

package
v1.43.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RedeployAppVersion

func RedeployAppVersion(appID string, sequence int64, clusterSocket *ClusterSocket) error

RedeployAppVersion will force trigger a redeploy of the app version, even if it's currently deployed if clusterSocket is nil, a redeploy to all the cluster sockets (downstreams - which theoratically should always be 1) will be triggered

func Start

func Start() *socket.Server

SocketService uses special cluster authorization

Types

type AppInformersArgs

type AppInformersArgs struct {
	AppID     string   `json:"app_id"`
	Informers []string `json:"informers"`
	Sequence  int64    `json:"sequence"`
}

type ClusterSocket

type ClusterSocket struct {
	ClusterID             string
	SocketID              string
	LastDeployedSequences map[string]int64
}

type DeployArgs

type DeployArgs struct {
	AppID                string                `json:"app_id"`
	AppSlug              string                `json:"app_slug"`
	KubectlVersion       string                `json:"kubectl_version"`
	AdditionalNamespaces []string              `json:"additional_namespaces"`
	ImagePullSecret      string                `json:"image_pull_secret"`
	Namespace            string                `json:"namespace"`
	PreviousManifests    string                `json:"previous_manifests"`
	Manifests            string                `json:"manifests"`
	Wait                 bool                  `json:"wait"`
	ResultCallback       string                `json:"result_callback"`
	ClearNamespaces      []string              `json:"clear_namespaces"`
	ClearPVCs            bool                  `json:"clear_pvcs"`
	AnnotateSlug         bool                  `json:"annotate_slug"`
	IsRestore            bool                  `json:"is_restore"`
	RestoreLabelSelector *metav1.LabelSelector `json:"restore_label_selector"`
}

Jump to

Keyboard shortcuts

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