deploy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Copyright 2021 Google LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

Types

type CNI

type CNI interface {
	Deploy(context.Context) error
	SetKClient(kubernetes.Interface)
	Healthy(context.Context) error
}

type CNISpec

type CNISpec struct {
	Kind string    `yaml:"kind"`
	Spec yaml.Node `yaml:"spec"`
}

type Cluster

type Cluster interface {
	Deploy(context.Context) error
}

type ClusterSpec

type ClusterSpec struct {
	Kind string    `yaml:"kind"`
	Spec yaml.Node `yaml:"spec"`
}

type Deployment

type Deployment struct {
	Cluster Cluster
	Ingress Ingress
	CNI     CNI
}

func NewDeployment

func NewDeployment(cfg *DeploymentConfig) (*Deployment, error)

type DeploymentConfig

type DeploymentConfig struct {
	Cluster ClusterSpec `yaml:"cluster"`
	Ingress IngressSpec `yaml:"ingress"`
	CNI     CNISpec     `yaml:"cni"`
}

type Ingress

type Ingress interface {
	Deploy(context.Context) error
	SetKClient(kubernetes.Interface)
	Healthy(context.Context) error
}

type IngressSpec

type IngressSpec struct {
	Kind string    `yaml:"kind"`
	Spec yaml.Node `yaml:"spec"`
}

type KindSpec

type KindSpec struct {
	Name                     string        `yaml:"name"`
	Recycle                  bool          `yaml:"recycle"`
	Version                  string        `yaml:"version"`
	Image                    string        `yaml:"image"`
	Retain                   bool          `yaml:"retain"`
	Wait                     time.Duration `yaml:"wait"`
	Kubecfg                  string        `yaml:"kubecfg"`
	DeployWithClient         bool          `yaml:"deployWithClient"`
	GoogleArtifactRegistries []string      `yaml:"googleArtifactRegistries"`
}

func (*KindSpec) Deploy

func (k *KindSpec) Deploy(ctx context.Context) error

type MeshnetSpec

type MeshnetSpec struct {
	Image       string `yaml:"image"`
	ManifestDir string `yaml:"manifests"`
	// contains filtered or unexported fields
}

func (*MeshnetSpec) Deploy

func (m *MeshnetSpec) Deploy(ctx context.Context) error

func (*MeshnetSpec) Healthy

func (m *MeshnetSpec) Healthy(ctx context.Context) error

func (*MeshnetSpec) SetKClient

func (m *MeshnetSpec) SetKClient(c kubernetes.Interface)

type MetalLBSpec

type MetalLBSpec struct {
	Version     string `yaml:"version"`
	IPCount     int    `yaml:"ip_count"`
	ManifestDir string `yaml:"manifests"`
	// contains filtered or unexported fields
}

func (*MetalLBSpec) Deploy

func (m *MetalLBSpec) Deploy(ctx context.Context) error

func (*MetalLBSpec) Healthy

func (m *MetalLBSpec) Healthy(ctx context.Context) error

func (*MetalLBSpec) SetKClient

func (m *MetalLBSpec) SetKClient(c kubernetes.Interface)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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