jx: github.com/jenkins-x/jx/pkg/cmd/initcmd Index | Files

package initcmd

import "github.com/jenkins-x/jx/pkg/cmd/initcmd"

Index

Package Files

init.go

Constants

const (

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

func NewCmdInit Uses

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

type InitFlags Uses

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 Uses

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

InitOptions the options for running init

func (*InitOptions) AddIngressFlags Uses

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

func (*InitOptions) AddInitFlags Uses

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

func (*InitOptions) EnableClusterAdminRole Uses

func (o *InitOptions) EnableClusterAdminRole() error

func (*InitOptions) HelmBinary Uses

func (o *InitOptions) HelmBinary() string

HelmBinary returns name of configured Helm binary

func (*InitOptions) InitIngress Uses

func (o *InitOptions) InitIngress() error

func (*InitOptions) Run Uses

func (o *InitOptions) Run() error

Run performs initialization

func (*InitOptions) ValidateGit Uses

func (o *InitOptions) ValidateGit() error

ValidateGit validates that git is configured correctly

Package initcmd imports 22 packages (graph) and is imported by 5 packages. Updated 2019-11-14. Refresh now. Tools for package owners.