clusterfile

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterfileConfigMapNamespace = "kube-system"
	ClusterfileConfigMapName      = "sealer-clusterfile"
	ClusterfileConfigMapDataName  = "Clusterfile"
)

Variables

This section is empty.

Functions

func GetClusterFromFile

func GetClusterFromFile(filepath string) (cluster *v2.Cluster, err error)

Types

type ClusterFile

type ClusterFile struct {
	// contains filtered or unexported fields
}

func DecodeClusterfile added in v0.9.2

func DecodeClusterfile(reader io.Reader) (*ClusterFile, error)

func (*ClusterFile) GetApplication added in v0.9.1

func (c *ClusterFile) GetApplication() *v2.Application

func (*ClusterFile) GetCluster

func (c *ClusterFile) GetCluster() v2.Cluster

func (*ClusterFile) GetConfigs

func (c *ClusterFile) GetConfigs() []v1.Config

func (*ClusterFile) GetKubeadmConfig

func (c *ClusterFile) GetKubeadmConfig() *kubeadm.KubeadmConfig

func (*ClusterFile) GetPlugins

func (c *ClusterFile) GetPlugins() []v1.Plugin

func (*ClusterFile) SaveAll added in v0.9.0

func (c *ClusterFile) SaveAll(opts SaveOptions) error

func (*ClusterFile) SetApplication added in v0.11.0

func (c *ClusterFile) SetApplication(app v2.Application)

func (*ClusterFile) SetCluster added in v0.9.0

func (c *ClusterFile) SetCluster(cluster v2.Cluster)

type Interface

type Interface interface {
	GetCluster() v2.Cluster
	SetCluster(v2.Cluster)
	SetApplication(app v2.Application)
	GetConfigs() []v1.Config
	GetPlugins() []v1.Plugin
	GetApplication() *v2.Application
	GetKubeadmConfig() *kubeadm.KubeadmConfig
	SaveAll(opts SaveOptions) error
}

func GetActualClusterFile added in v0.9.2

func GetActualClusterFile() (Interface, bool, error)

func NewClusterFile

func NewClusterFile(b []byte) (Interface, error)

type SaveOptions added in v0.9.0

type SaveOptions struct {
	// if true ,will commit clusterfile to cluster
	CommitToCluster bool
	ConfPath        string
}

Jump to

Keyboard shortcuts

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