initcmd

package
v2.1.153 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// JenkinsBuildPackURL URL of Draft packs for Jenkins X
	JenkinsBuildPackURL = "https://github.com/jenkins-x/draft-packs.git"
)

Variables

This section is empty.

Functions

func NewCmdInit

func NewCmdInit(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdInit creates a command object for the generic "init" action, which primes a Kubernetes cluster so it's ready for Jenkins X to be installed

Types

type InitFlags

type InitFlags struct {
	Domain                     string
	Provider                   string
	Namespace                  string
	UserClusterRole            string
	TillerClusterRole          string
	IngressClusterRole         string
	TillerNamespace            string
	IngressNamespace           string
	IngressService             string
	IngressDeployment          string
	ExternalIP                 string
	VersionsRepository         string
	VersionsGitRef             string
	DraftClient                bool
	HelmClient                 bool
	Helm3                      bool
	HelmBin                    string
	RecreateExistingDraftRepos bool
	NoTiller                   bool
	RemoteTiller               bool
	GlobalTiller               bool
	SkipIngress                bool
	SkipTiller                 bool
	SkipClusterRole            bool
	OnPremise                  bool
	Http                       bool
	NoGitValidate              bool
	ExternalDNS                bool
}

InitFlags the flags for running init

type InitOptions

type InitOptions struct {
	*opts.CommonOptions
	Client clientset.Clientset
	Flags  InitFlags
}

InitOptions the options for running init

func (*InitOptions) AddIngressFlags

func (o *InitOptions) AddIngressFlags(cmd *cobra.Command)

func (*InitOptions) AddInitFlags

func (o *InitOptions) AddInitFlags(cmd *cobra.Command)

func (*InitOptions) EnableClusterAdminRole

func (o *InitOptions) EnableClusterAdminRole() error

func (*InitOptions) HelmBinary

func (o *InitOptions) HelmBinary() string

HelmBinary returns name of configured Helm binary

func (*InitOptions) InitIngress

func (o *InitOptions) InitIngress() error

func (*InitOptions) Run

func (o *InitOptions) Run() error

Run performs initialization

func (*InitOptions) ValidateGit

func (o *InitOptions) ValidateGit() error

ValidateGit validates that git is configured correctly

Jump to

Keyboard shortcuts

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