preflight

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPreflight added in v0.9.11

func InitPreflight() (string, []byte, error)

Types

type PreflightConfig added in v0.9.13

type PreflightConfig struct {
	metav1.TypeMeta   `json:",inline" yaml:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
	Spec              *PreflightSpec `json:"spec" yaml:"spec"`
	QliksenseHomePath string         `json:"-" yaml:"-"`
}

func NewPreflightConfig added in v0.9.13

func NewPreflightConfig(qHome string) *PreflightConfig

NewPreflightConfig create empty PreflightConfig object if preflit/preflight-config.yaml not exist

func NewPreflightConfigEmpty added in v0.9.13

func NewPreflightConfigEmpty(qHome string) *PreflightConfig

NewPreflightConfigEmpty create empty PreflightConfig object

func (*PreflightConfig) AddImage added in v0.9.13

func (p *PreflightConfig) AddImage(imageFor, imageName string)

func (*PreflightConfig) AddMinK8sV added in v0.9.13

func (p *PreflightConfig) AddMinK8sV(version string)

func (*PreflightConfig) GetConfigFilePath added in v0.9.13

func (p *PreflightConfig) GetConfigFilePath() string

GetConfigFilePath return preflight-config.yaml file path

func (*PreflightConfig) GetImageMap added in v0.9.13

func (p *PreflightConfig) GetImageMap() map[string]string

func (*PreflightConfig) GetImageName added in v0.9.13

func (p *PreflightConfig) GetImageName(imageFor string) string

func (*PreflightConfig) GetMinK8sVersion added in v0.9.13

func (p *PreflightConfig) GetMinK8sVersion() string

func (*PreflightConfig) Initialize added in v0.9.13

func (p *PreflightConfig) Initialize() error

func (*PreflightConfig) IsExistOnDisk added in v0.9.13

func (p *PreflightConfig) IsExistOnDisk() bool

func (*PreflightConfig) Write added in v0.9.13

func (p *PreflightConfig) Write() error

Write write PreflightConfig object into the ~/.qliksense/preflight/preflight-config.yaml file

type PreflightSpec added in v0.9.13

type PreflightSpec struct {
	MinK8sVersion string            `json:"minK8sVersion,omitempty" yaml:"minK8sVersion,omitempty"`
	Images        map[string]string `json:"images,omitempty" yaml:"images,omitempty"`
}

type QliksensePreflight

type QliksensePreflight struct {
	Q *qliksense.Qliksense
}

func (*QliksensePreflight) CheckDeployment added in v0.9.12

func (qp *QliksensePreflight) CheckDeployment(namespace string, kubeConfigContents []byte) error

func (*QliksensePreflight) CheckDns

func (qp *QliksensePreflight) CheckDns(namespace string, kubeConfigContents []byte) error

func (*QliksensePreflight) CheckK8sVersion

func (qp *QliksensePreflight) CheckK8sVersion(namespace string, kubeConfigContents []byte) error

func (*QliksensePreflight) CheckPod added in v0.9.12

func (qp *QliksensePreflight) CheckPod(namespace string, kubeConfigContents []byte) error

func (*QliksensePreflight) CheckService added in v0.9.12

func (qp *QliksensePreflight) CheckService(namespace string, kubeConfigContents []byte) error

func (*QliksensePreflight) CreateRoleCheck added in v0.9.12

func (qp *QliksensePreflight) CreateRoleCheck(namespace string, kubeConfigContents []byte) error

func (*QliksensePreflight) GetPreflightConfigObj added in v0.9.13

func (qp *QliksensePreflight) GetPreflightConfigObj() *PreflightConfig

func (*QliksensePreflight) RunAllPreflightChecks

func (qp *QliksensePreflight) RunAllPreflightChecks(namespace string, kubeConfigContents []byte)

Jump to

Keyboard shortcuts

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