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

package create

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

Index

Package Files

create.go create_addon.go create_addon_ambassador.go create_addon_anchore.go create_addon_environment_controller.go create_addon_flagger.go create_addon_gitea.go create_addon_gloo.go create_addon_ingress.go create_addon_istio.go create_addon_knative_build.go create_addon_kubeless.go create_addon_owasp.go create_addon_pipeline_events.go create_addon_prometheus.go create_addon_prow.go create_addon_vault.go create_archetype.go create_branch_pattern.go create_camel.go create_chat.go create_chat_server.go create_chat_token.go create_cluster.go create_cluster_aks.go create_cluster_aws.go create_cluster_eks.go create_cluster_gke.go create_cluster_iks.go create_cluster_minikube.go create_cluster_minishift.go create_cluster_oke.go create_codeship.go create_devpod.go create_docker_auth.go create_docs.go create_domain.go create_domain_gke.go create_env.go create_etc_hosts.go create_git.go create_git_api_token.go create_git_server.go create_git_user.go create_gke_service_account.go create_issue.go create_jenkins.go create_jenkins_token.go create_jhipster.go create_lile.go create_micro.go create_mlquickstart.go create_post_preview_job.go create_project.go create_pullrequest.go create_quickstart.go create_quickstart_location.go create_spring.go create_step.go create_team.go create_terraform.go create_terraform_gke.go create_token.go create_token_addon.go create_tracker.go create_tracker_server.go create_tracker_token.go create_user.go create_variable.go create_vault.go install.go install_dependencies.go

Constants

const (
    DefaultEnvCtrlReleaseName = "jxet"
    DefaultEnvCtrlNamespace   = "jx"
)
const (
    JenkinsCookieName    = "JSESSIONID"
    JenkinsVersionHeader = "X-Jenkins"
)
const (
    // Clusters constant
    Clusters = "clusters"
    // Terraform constant
    Terraform = "terraform"
    // TerraformTemplatesGKE constant
    TerraformTemplatesGKE = "https://github.com/jenkins-x/terraform-jx-templates-gke.git"
)
const (
    JX_GIT_TOKEN = "JX_GIT_TOKEN"
    JX_GIT_USER  = "JX_GIT_USER"

    ServerlessJenkins   = "Serverless Jenkins X Pipelines with Tekton"
    StaticMasterJenkins = "Static Jenkins Server and Jenkinsfiles"

    GitOpsChartYAML = "" /* 174 byte string literal not displayed */

)
const (
    DEFAULT_IBMREPO_URL = "https://registry.bluemix.net/helm/ibm"
)
const (
    DefaultAnchoreName = "anchore"
)
const (
    DefaultFlaggerNamespace = DefaultIstioNamespace
)
const (
    DefaultIstioNamespace = "istio-system"
)
const (
    // Domain to create within managed DNS services
    Domain = "domain"
)
const (
    // JenkinsXMLQuickstartsOrganisation is the default organisation for machine-learning quickstarts
    JenkinsXMLQuickstartsOrganisation = "machine-learning-quickstarts"
)
const (
    // JenkinsXQuickstartsOrganisation is the default organisation for quickstarts
    JenkinsXQuickstartsOrganisation = "jenkins-x-quickstarts"
)
const ProjectID = "project-id"

ProjectID the Google Cloud Project ID

const (
    ValidKubernetesProviders = "" /* 1050 byte string literal not displayed */

)

Variables

var (
    CreateAddonVaultLong = templates.LongDesc(`
		Creates the Vault operator addon

		This addon will install an operator for HashiCorp Vault.""
`)

    CreateAddonVaultExample = templates.Examples(`
		# Create the vault-operator addon
		jx create addon vault-operator
	`)
)
var (
    CreateClusterLong = templates.LongDesc("" /* 1021 byte string literal not displayed */,
    )

    CreateClusterExample = templates.Examples(`

		jx create cluster minikube

`)
)
var (
    InstalLong = templates.LongDesc("" /* 594 byte string literal not displayed */,
    )

    InstalExample = templates.Examples("" /* 347 byte string literal not displayed */,
    )
)
var (
    // DefaultMLQuickstartLocation is the default organisation for machine-learning quickstarts
    DefaultMLQuickstartLocation = v1.QuickStartLocation{
        GitURL:   gits.GitHubURL,
        GitKind:  gits.KindGitHub,
        Owner:    JenkinsXMLQuickstartsOrganisation,
        Includes: []string{"ML-*"},
        Excludes: []string{"WIP-*"},
    }
)
var JenkinsReferenceVersion = semver.Version{Major: 2, Minor: 140, Patch: 0}

func AddDomainOptionsArguments Uses

func AddDomainOptionsArguments(cmd *cobra.Command, options *DomainOptions)

AddDomainOptionsArguments adds common Domain flags to the given cobra command

func AddLabel Uses

func AddLabel(labels string, name string, value string) string

AddLabel adds the given label key and value to the label string

func AuthServiceAccountName Uses

func AuthServiceAccountName(vaultName string) string

AuthServiceAccountName creates a service account name for a given vault and cluster name

func CreateAuthServiceAccount Uses

func CreateAuthServiceAccount(client kubernetes.Interface, vaultName, serviceAccountName string, namespace string) (string, error)

CreateAuthServiceAccount creates a Serivce Account for the Auth service for vault

func FindDevPodLabelFromJenkinsfile Uses

func FindDevPodLabelFromJenkinsfile(filename string, labels []string) (string, error)

FindDevPodLabelFromJenkinsfile finds pod labels from a Jenkinsfile

func InstallVaultOperator Uses

func InstallVaultOperator(o *opts.CommonOptions, namespace string, vs *config.VersionStreamConfig) error

InstallVaultOperator installs a vault operator in the namespace provided

func LoadVersionFromCloudEnvironmentsDir Uses

func LoadVersionFromCloudEnvironmentsDir(wrkDir string, configStore configio.ConfigStore) (string, error)

LoadVersionFromCloudEnvironmentsDir lets load the jenkins-x-platform version

func NewCmdCreate Uses

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

NewCmdCreate creates a command object for the "create" command

func NewCmdCreateAddon Uses

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

NewCmdCreateAddon creates a command object for the "create" command

func NewCmdCreateAddonAmbassador Uses

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

NewCmdCreateAddonAmbassador creates a command object for the "create" command

func NewCmdCreateAddonAnchore Uses

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

NewCmdCreateAddonAnchore creates a command object for the "create" command

func NewCmdCreateAddonEnvironmentController Uses

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

NewCmdCreateAddonEnvironmentController creates a command object for the "create" command

func NewCmdCreateAddonFlagger Uses

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

func NewCmdCreateAddonGitea Uses

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

NewCmdCreateAddonGitea creates a command object for the "create" command

func NewCmdCreateAddonGloo Uses

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

NewCmdCreateAddonGloo creates a command object for the "create" command

func NewCmdCreateAddonIngressController Uses

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

NewCmdCreateAddonIngressController creates a command object for the "create" command

func NewCmdCreateAddonIstio Uses

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

NewCmdCreateAddonIstio creates a command object for the "create" command

func NewCmdCreateAddonKnativeBuild Uses

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

func NewCmdCreateAddonKubeless Uses

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

NewCmdCreateAddonKubeless creates a command object for the "create" command

func NewCmdCreateAddonOwasp Uses

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

func NewCmdCreateAddonPipelineEvents Uses

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

NewCmdCreateAddonPipelineEvents creates a command object for the "create" command

func NewCmdCreateAddonPrometheus Uses

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

func NewCmdCreateAddonProw Uses

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

NewCmdCreateAddonProw creates a command object for the "create" command

func NewCmdCreateAddonVault Uses

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

NewCmdCreateAddonVault creates a command object for the "create addon vault-opeator" command

func NewCmdCreateArchetype Uses

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

NewCmdCreateArchetype creates a command object for the "create" command

func NewCmdCreateBranchPattern Uses

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

NewCmdCreateBranchPattern creates a command object for the "create" command

func NewCmdCreateCamel Uses

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

NewCmdCreateCamel creates a command object for the "create" command

func NewCmdCreateChat Uses

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

NewCmdCreateChat creates a command object for the "create" command

func NewCmdCreateChatServer Uses

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

NewCmdCreateChatServer creates a command object for the "create" command

func NewCmdCreateChatToken Uses

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

NewCmdCreateChatToken creates a command

func NewCmdCreateCluster Uses

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

NewCmdCreateCluster creates a command object for the generic "init" action, which installs the dependencies required to run the jenkins-x platform on a Kubernetes cluster.

func NewCmdCreateClusterAKS Uses

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

NewCmdGet creates a command object for the generic "init" action, which installs the dependencies required to run the jenkins-x platform on a Kubernetes cluster.

func NewCmdCreateClusterAWS Uses

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

NewCmdCreateClusterAWS creates the command

func NewCmdCreateClusterEKS Uses

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

NewCmdCreateClusterEKS creates the command

func NewCmdCreateClusterGKE Uses

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

NewCmdCreateClusterGKE creates a command object for the generic "init" action, which installs the dependencies required to run the jenkins-x platform on a Kubernetes cluster.

func NewCmdCreateClusterIKS Uses

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

NewCmdGet creates a command object for the generic "init" action, which installs the dependencies required to run the jenkins-x platform on a kubernetes cluster.

func NewCmdCreateClusterMinikube Uses

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

NewCmdGet creates a command object for the generic "init" action, which installs the dependencies required to run the jenkins-x platform on a Kubernetes cluster.

func NewCmdCreateClusterMinishift Uses

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

NewCmdGet creates a command object for the generic "init" action, which installs the dependencies required to run the jenkins-x platform on a Kubernetes cluster.

func NewCmdCreateClusterOKE Uses

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

NewCmdGet creates a command object for the generic "init" action, which installs the dependencies required to run the jenkins-x platform on a Kubernetes cluster.

func NewCmdCreateCodeship Uses

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

NewCmdCreateCodeship creates a command object for the "create" command

func NewCmdCreateDevPod Uses

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

NewCmdCreateDevPod creates a command object for the "create" command

func NewCmdCreateDockerAuth Uses

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

NewCmdCreateDockerAuth creates a command object for the "create" command

func NewCmdCreateDocs Uses

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

NewCmdCreateDocs creates a command object for the "create" command

func NewCmdCreateDomain Uses

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

NewCmdCreateDomain creates a command object for the "create" command

func NewCmdCreateDomainGKE Uses

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

NewCmdCreateDomainGKE creates a command object for the "create" command

func NewCmdCreateEnv Uses

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

NewCmdCreateEnv creates a command object for the "create" command

func NewCmdCreateEtcHosts Uses

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

NewCmdCreateEtcHosts creates a command object for the "create" command

func NewCmdCreateGit Uses

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

NewCmdCreateGit creates a command object for the "create" command

func NewCmdCreateGitServer Uses

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

NewCmdCreateGitServer creates a command object for the "create" command

func NewCmdCreateGitToken Uses

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

NewCmdCreateGitToken creates a command

func NewCmdCreateGitUser Uses

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

NewCmdCreateGitUser creates a command

func NewCmdCreateGkeServiceAccount Uses

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

NewCmdCreateGkeServiceAccount creates a command object for the "create" command

func NewCmdCreateIssue Uses

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

NewCmdCreateIssue creates a command object for the "create" command

func NewCmdCreateJHipster Uses

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

NewCmdCreateJHipster creates a command object for the "create" command

func NewCmdCreateJenkins Uses

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

NewCmdCreateJenkins creates a command object for the "create" command

func NewCmdCreateJenkinsUser Uses

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

NewCmdCreateJenkinsUser creates a command

func NewCmdCreateLile Uses

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

NewCmdCreateLile creates a command object for the "create" command

func NewCmdCreateMLQuickstart Uses

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

NewCmdCreateMLQuickstart creates a command object for the "create" command

func NewCmdCreateMicro Uses

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

NewCmdCreateMicro creates a command object for the "create" command

func NewCmdCreatePostPreviewJob Uses

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

NewCmdCreatePostPreviewJob creates a command object for the "create" command

func NewCmdCreateProject Uses

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

NewCmdCreateProject creates a command object for the "create" command

func NewCmdCreatePullRequest Uses

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

NewCmdCreatePullRequest creates a command object for the "create" command

func NewCmdCreateQuickstart Uses

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

NewCmdCreateQuickstart creates a command object for the "create" command

func NewCmdCreateQuickstartLocation Uses

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

NewCmdCreateQuickstartLocation creates a command object for the "create" command

func NewCmdCreateSpring Uses

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

NewCmdCreateSpring creates a command object for the "create" command

func NewCmdCreateStep Uses

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

NewCmdCreateStep creates a command object for the "create" command

func NewCmdCreateTeam Uses

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

NewCmdCreateTeam creates a command object for the "create" command

func NewCmdCreateTerraform Uses

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

NewCmdCreateTerraform creates a command object for the "create" command

func NewCmdCreateTerraformGKE Uses

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

NewCmdCreateTerraform creates a command object for the "create" command

func NewCmdCreateToken Uses

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

NewCmdCreateToken creates a command object for the "create" command

func NewCmdCreateTokenAddon Uses

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

NewCmdCreateTokenAddon creates a command

func NewCmdCreateTracker Uses

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

NewCmdCreateTracker creates a command object for the "create" command

func NewCmdCreateTrackerServer Uses

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

NewCmdCreateTrackerServer creates a command object for the "create" command

func NewCmdCreateTrackerToken Uses

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

NewCmdCreateTrackerToken creates a command

func NewCmdCreateUser Uses

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

NewCmdCreateUser creates a command object for the "create" command

func NewCmdCreateVariable Uses

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

NewCmdCreateVariable creates a command object for the "create" command

func NewCmdCreateVault Uses

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

NewCmdCreateVault creates a command object for the "create" command

func NewCmdInstall Uses

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

NewCmdInstall creates a command object for the generic "install" action, which installs the jenkins-x platform on a Kubernetes cluster.

func NewCmdInstallDependencies Uses

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

NewCmdInstallDependencies creates a command object to install any required dependencies

func ProjectExists Uses

func ProjectExists(ctx context.Context, org *codeship.Organization, codeshipOrg string, codeshipRepo string) (bool, string, error)

type AWSCreateVaultOptions Uses

type AWSCreateVaultOptions struct {
    kubevault.AWSConfig
    AWSTemplatesDir string
    Boot            bool
}

AWSCreateVaultOptions are the AWS specific Vault creation options

type Auth Uses

type Auth struct {
    Auth  string `json:"auth,omitempty"`
    Email string `json:"email,omitempty"`
}

type Cluster Uses

type Cluster interface {
    Name() string
    SetName(string) string
    ClusterName() string
    Provider() string
    SetProvider(string) string
    Context() string
    CreateTfVarsFile(path string) error
    Validate() error
}

Cluster interface for Clusters

type Config Uses

type Config struct {
    Auths map[string]*Auth `json:"auths,omitempty"`
}

type CreateAddonAmbassadorOptions Uses

type CreateAddonAmbassadorOptions struct {
    CreateAddonOptions

    Chart string
}

CreateAddonAmbassadorOptions the options for the create spring command

func (*CreateAddonAmbassadorOptions) Run Uses

func (o *CreateAddonAmbassadorOptions) Run() error

Run implements the command

type CreateAddonAnchoreOptions Uses

type CreateAddonAnchoreOptions struct {
    CreateAddonOptions

    Chart     string
    Password  string
    ConfigDir string
}

CreateAddonAnchoreOptions the options for the create spring command

func (*CreateAddonAnchoreOptions) Run Uses

func (o *CreateAddonAnchoreOptions) Run() error

Run implements the command

type CreateAddonEnvironmentControllerOptions Uses

type CreateAddonEnvironmentControllerOptions struct {
    CreateAddonOptions

    Namespace   string
    Version     string
    ReleaseName string
    SetValues   string
    Timeout     int
    InitOptions initcmd.InitOptions

    // chart parameters
    WebHookURL        string
    GitSourceURL      string
    GitKind           string
    GitUser           string
    GitToken          string
    BuildPackURL      string
    BuildPackRef      string
    ClusterRBAC       bool
    NoClusterAdmin    bool
    ProjectID         string
    DockerRegistry    string
    DockerRegistryOrg string
}

CreateAddonEnvironmentControllerOptions the options for the create spring command

func (*CreateAddonEnvironmentControllerOptions) Run Uses

func (o *CreateAddonEnvironmentControllerOptions) Run() error

Run implements the command

type CreateAddonFlaggerOptions Uses

type CreateAddonFlaggerOptions struct {
    CreateAddonOptions
    Chart                 string
    GrafanaChart          string
    GrafanaVersion        string
    ProductionEnvironment string
    IstioGateway          string
}

func (*CreateAddonFlaggerOptions) Run Uses

func (o *CreateAddonFlaggerOptions) Run() error

Create the addon

type CreateAddonGiteaOptions Uses

type CreateAddonGiteaOptions struct {
    CreateAddonOptions

    Chart    string
    Username string
    Password string
    Email    string
    IsAdmin  bool
    NoUser   bool
    NoToken  bool
}

CreateAddonGiteaOptions the options for the create spring command

func (*CreateAddonGiteaOptions) Run Uses

func (o *CreateAddonGiteaOptions) Run() error

Run implements the command

type CreateAddonGlooOptions Uses

type CreateAddonGlooOptions struct {
    CreateAddonOptions

    GlooNamespace         string
    ClusterIngressProxy   string
    KnativeServeNamespace string
    KnativeServeConfigMap string
}

CreateAddonGlooOptions the options for the create spring command

func (*CreateAddonGlooOptions) Run Uses

func (o *CreateAddonGlooOptions) Run() error

Run implements the command

type CreateAddonIngressControllerOptions Uses

type CreateAddonIngressControllerOptions struct {
    CreateAddonOptions

    InitOptions initcmd.InitOptions
}

CreateAddonIngressControllerOptions the options for the create spring command

func (*CreateAddonIngressControllerOptions) Run Uses

func (o *CreateAddonIngressControllerOptions) Run() error

Run implements the command

type CreateAddonIstioOptions Uses

type CreateAddonIstioOptions struct {
    CreateAddonOptions

    Chart                 string
    Password              string
    ConfigDir             string
    NoInjectorWebhook     bool
    Dir                   string
    IngressGatewayService string
}

CreateAddonIstioOptions the options for the create spring command

func (*CreateAddonIstioOptions) Run Uses

func (o *CreateAddonIstioOptions) Run() error

Run implements the command

type CreateAddonKnativeBuildOptions Uses

type CreateAddonKnativeBuildOptions struct {
    CreateAddonOptions
    // contains filtered or unexported fields
}

func (*CreateAddonKnativeBuildOptions) Run Uses

func (o *CreateAddonKnativeBuildOptions) Run() error

Create the addon

type CreateAddonKubelessOptions Uses

type CreateAddonKubelessOptions struct {
    CreateAddonOptions

    Chart string
}

CreateAddonKubelessOptions the options for the create spring command

func (*CreateAddonKubelessOptions) Run Uses

func (o *CreateAddonKubelessOptions) Run() error

Run implements the command

type CreateAddonOptions Uses

type CreateAddonOptions struct {
    CreateOptions

    Namespace   string
    Version     string
    ReleaseName string
    SetValues   string
    ValueFiles  []string
    HelmUpdate  bool
}

CreateAddonOptions the options for the create spring command

func (*CreateAddonOptions) CreateAddon Uses

func (o *CreateAddonOptions) CreateAddon(addon string) error

func (*CreateAddonOptions) ExposeAddon Uses

func (o *CreateAddonOptions) ExposeAddon(addon string) error

func (*CreateAddonOptions) Run Uses

func (o *CreateAddonOptions) Run() error

Run implements this command

type CreateAddonOwaspOptions Uses

type CreateAddonOwaspOptions struct {
    CreateAddonOptions
    BackoffLimit int32
    Image        string
}

func (*CreateAddonOwaspOptions) Run Uses

func (o *CreateAddonOwaspOptions) Run() error

Create the addon

type CreateAddonPipelineEventsOptions Uses

type CreateAddonPipelineEventsOptions struct {
    CreateAddonOptions
    Password string
}

CreateAddonPipelineEventsOptions the options for the create spring command

func (*CreateAddonPipelineEventsOptions) Run Uses

func (o *CreateAddonPipelineEventsOptions) Run() error

Run implements the command

type CreateAddonPrometheusOptions Uses

type CreateAddonPrometheusOptions struct {
    CreateOptions

    Namespace   string
    Version     string
    ReleaseName string
    HelmUpdate  bool
    SetValues   string
    Password    string
}

func (*CreateAddonPrometheusOptions) Run Uses

func (o *CreateAddonPrometheusOptions) Run() error

type CreateAddonProwOptions Uses

type CreateAddonProwOptions struct {
    CreateAddonOptions
    Password    string
    Chart       string
    Tekton      bool
    ExternalDNS bool
}

CreateAddonProwOptions the options for the create spring command

func (*CreateAddonProwOptions) Run Uses

func (o *CreateAddonProwOptions) Run() error

Run implements the command

type CreateAddonVaultOptions Uses

type CreateAddonVaultOptions struct {
    CreateAddonOptions
}

CreateAddonVaultptions the options for the create addon vault-operator

func (*CreateAddonVaultOptions) Run Uses

func (o *CreateAddonVaultOptions) Run() error

Run implements the command

type CreateArchetypeOptions Uses

type CreateArchetypeOptions struct {
    CreateProjectOptions

    ArchetypeCatalogURL string

    Filter      maven.ArchetypeFilter
    PickVersion bool
    Interactive bool

    Form maven.ArchetypeForm
}

CreateArchetypeOptions the options for the create spring command

func (*CreateArchetypeOptions) CreateArchetype Uses

func (o *CreateArchetypeOptions) CreateArchetype() error

func (*CreateArchetypeOptions) Run Uses

func (o *CreateArchetypeOptions) Run() error

Run implements the generic Create command

type CreateBranchPatternOptions Uses

type CreateBranchPatternOptions struct {
    CreateOptions

    BranchPattern string
}

CreateBranchPatternOptions the options for the create spring command

func (*CreateBranchPatternOptions) Run Uses

func (o *CreateBranchPatternOptions) Run() error

Run implements the command

type CreateCamelOptions Uses

type CreateCamelOptions struct {
    CreateArchetypeOptions
}

CreateCamelOptions the options for the create spring command

func (*CreateCamelOptions) Run Uses

func (o *CreateCamelOptions) Run() error

Run implements the command

type CreateChatOptions Uses

type CreateChatOptions struct {
    CreateOptions
}

CreateChatOptions the options for the create spring command

func (*CreateChatOptions) Run Uses

func (o *CreateChatOptions) Run() error

Run implements this command

type CreateChatServerOptions Uses

type CreateChatServerOptions struct {
    CreateOptions

    Name string
}

CreateChatServerOptions the options for the create spring command

func (*CreateChatServerOptions) Run Uses

func (o *CreateChatServerOptions) Run() error

Run implements the command

type CreateChatTokenOptions Uses

type CreateChatTokenOptions struct {
    CreateOptions

    ServerFlags opts.ServerFlags
    Username    string
    Password    string
    ApiToken    string
    Timeout     string
}

CreateChatTokenOptions the command line options for the command

func (*CreateChatTokenOptions) Run Uses

func (o *CreateChatTokenOptions) Run() error

Run implements the command

type CreateClusterAKSFlags Uses

type CreateClusterAKSFlags struct {
    UserName                  string
    Password                  string
    ClusterName               string
    ResourceName              string
    Location                  string
    NodeVMSize                string
    NodeOSDiskSize            string
    NodeCount                 string
    KubeVersion               string
    PathToPublicKey           string
    ClientSecret              string
    ServicePrincipal          string
    Subscription              string
    AADClientAppID            string
    AADServerAppID            string
    AADServerAppSecret        string
    AADTenantID               string
    AdminUsername             string
    DNSNamePrefix             string
    DNSServiceIP              string
    DockerBridgeAddress       string
    PodCIDR                   string
    ServiceCIDR               string
    VnetSubnetID              string
    WorkspaceResourceID       string
    SkipLogin                 bool
    SkipProviderRegistration  bool
    SkipResourceGroupCreation bool
    Tags                      string
}

type CreateClusterAKSOptions Uses

type CreateClusterAKSOptions struct {
    CreateClusterOptions

    Flags CreateClusterAKSFlags
}

CreateClusterOptions the flags for running create cluster

func (*CreateClusterAKSOptions) Run Uses

func (o *CreateClusterAKSOptions) Run() error

type CreateClusterAWSFlags Uses

type CreateClusterAWSFlags struct {
    Profile                string
    Region                 string
    ClusterName            string
    NodeCount              string
    KubeVersion            string
    Zones                  string
    InsecureDockerRegistry string
    UseRBAC                bool
    TerraformDirectory     string
    NodeSize               string
    MasterSize             string
    State                  string
    SSHPublicKey           string
    Tags                   string
    UseSpotinst            bool
    UseSpotinstOcean       bool
}

type CreateClusterAWSOptions Uses

type CreateClusterAWSOptions struct {
    CreateClusterOptions

    Flags CreateClusterAWSFlags
}

CreateClusterAWSOptions contains the CLI flags

func (*CreateClusterAWSOptions) Run Uses

func (o *CreateClusterAWSOptions) Run() error

Run runs the command

type CreateClusterEKSFlags Uses

type CreateClusterEKSFlags struct {
    ClusterName         string
    NodeType            string
    NodeCount           int
    NodesMin            int
    NodesMax            int
    NodeVolumeSize      int
    Region              string
    Zones               string
    Profile             string
    SshPublicKey        string
    Verbose             int
    AWSOperationTimeout time.Duration
    Tags                string
}

type CreateClusterEKSOptions Uses

type CreateClusterEKSOptions struct {
    CreateClusterOptions

    Flags CreateClusterEKSFlags
}

CreateClusterEKSOptions contains the CLI flags

func (*CreateClusterEKSOptions) Run Uses

func (o *CreateClusterEKSOptions) Run() error

Runs the command logic (including installing required binaries, parsing options and aggregating eksctl command)

type CreateClusterFlags Uses

type CreateClusterFlags struct {
}

type CreateClusterGKEFlags Uses

type CreateClusterGKEFlags struct {
    AutoUpgrade              bool   `mapstructure:"enable-autoupgrade"`
    ClusterName              string `mapstructure:"cluster-name"`
    ClusterIpv4Cidr          string `mapstructure:"cluster-ipv4-cidr"`
    ClusterVersion           string `mapstructure:"kubernetes-version"`
    DiskSize                 string `mapstructure:"disk-size"`
    ImageType                string `mapstructure:"image-type"`
    MachineType              string `mapstructure:"machine-type"`
    MinNumOfNodes            string `mapstructure:"min-num-nodes"`
    MaxNumOfNodes            string `mapstructure:"max-num-nodes"`
    Network                  string
    ProjectID                string `mapstructure:"project-id"`
    SkipLogin                bool   `mapstructure:"skip-login"`
    SubNetwork               string
    Region                   string
    Zone                     string
    Namespace                string
    Labels                   string
    EnhancedScopes           bool `mapstructure:"enhanced-scopes"`
    Scopes                   []string
    Preemptible              bool
    EnhancedApis             bool `mapstructure:"enhanced-apis"`
    UseStackDriverMonitoring bool `mapstructure:"use-stackdriver-monitoring"`
}

type CreateClusterGKEOptions Uses

type CreateClusterGKEOptions struct {
    CreateClusterOptions

    Flags CreateClusterGKEFlags `mapstructure:"cluster"`
}

CreateClusterOptions the flags for running create cluster

func (*CreateClusterGKEOptions) Run Uses

func (o *CreateClusterGKEOptions) Run() error

type CreateClusterIKSFlags Uses

type CreateClusterIKSFlags struct {
    Username          string
    Password          string
    Account           string
    SSOCode           bool
    APIKey            string
    Region            string
    ClusterName       string
    KubeVersion       string
    Zone              string
    MachineType       string
    PrivateVLAN       string
    CreatePrivateVLAN bool
    PublicVLAN        string
    CreatePublicVLAN  bool
    PrivateOnly       bool
    Workers           string
    Isolation         string
    NoSubnet          bool
    DiskEncrypt       bool
    Trusted           bool
    SkipLogin         bool
}

type CreateClusterIKSOptions Uses

type CreateClusterIKSOptions struct {
    CreateClusterOptions

    Flags CreateClusterIKSFlags
}

CreateClusterOptions the flags for running create cluster

func (*CreateClusterIKSOptions) Run Uses

func (o *CreateClusterIKSOptions) Run() error

type CreateClusterMinikubeFlags Uses

type CreateClusterMinikubeFlags struct {
    Memory              string
    CPU                 string
    DiskSize            string
    Driver              string
    HyperVVirtualSwitch string
    Namespace           string
    ClusterVersion      string
}

type CreateClusterMinikubeOptions Uses

type CreateClusterMinikubeOptions struct {
    CreateClusterOptions

    Flags    CreateClusterMinikubeFlags
    Provider KubernetesProvider
}

CreateClusterOptions the flags for running create cluster

func (*CreateClusterMinikubeOptions) Run Uses

func (o *CreateClusterMinikubeOptions) Run() error

type CreateClusterMinishiftFlags Uses

type CreateClusterMinishiftFlags struct {
    Memory              string
    CPU                 string
    Driver              string
    HyperVVirtualSwitch string
    Namespace           string
}

type CreateClusterMinishiftOptions Uses

type CreateClusterMinishiftOptions struct {
    CreateClusterOptions

    Flags    CreateClusterMinishiftFlags
    Provider KubernetesProvider
}

CreateClusterMinishiftOptions the flags for running create cluster

func (*CreateClusterMinishiftOptions) Run Uses

func (o *CreateClusterMinishiftOptions) Run() error

type CreateClusterOKEFlags Uses

type CreateClusterOKEFlags struct {
    ClusterName                  string
    CompartmentId                string
    VcnId                        string
    KubernetesVersion            string
    WaitForState                 string
    Endpoint                     string
    PodsCidr                     string
    ServicesCidr                 string
    IsKubernetesDashboardEnabled bool
    IsTillerEnabled              bool
    ServiceLbSubnetIds           string
    NodePoolName                 string
    NodeImageName                string
    NodeShape                    string
    SSHPublicKey                 string
    QuantityPerSubnet            string
    NodePoolSubnetIds            string
    ClusterMaxWaitSeconds        string
    ClusterWaitIntervalSeconds   string
    InitialNodeLabels            string
    PoolMaxWaitSeconds           string
    PoolWaitIntervalSeconds      string
}

type CreateClusterOKEOptions Uses

type CreateClusterOKEOptions struct {
    CreateClusterOptions
    Flags CreateClusterOKEFlags
}

CreateClusterOptions the flags for running create cluster

func (*CreateClusterOKEOptions) Run Uses

func (o *CreateClusterOKEOptions) Run() error

type CreateClusterOptions Uses

type CreateClusterOptions struct {
    CreateOptions
    InstallOptions   InstallOptions
    Flags            initcmd.InitFlags
    Provider         string
    SkipInstallation bool `mapstructure:"skip-installation"`
}

CreateClusterOptions the flags for running create cluster

func (*CreateClusterOptions) Run Uses

func (o *CreateClusterOptions) Run() error

Run returns help if function is run without any argument

type CreateCodeshipFlags Uses

type CreateCodeshipFlags struct {
    SkipLogin               bool
    OrganisationName        string
    ForkOrganisationGitRepo string
    CodeshipUsername        string
    CodeshipPassword        string
    CodeshipOrganisation    string
    GitUser                 string
    GitEmail                string
    GKEServiceAccount       string
}

type CreateCodeshipOptions Uses

type CreateCodeshipOptions struct {
    CreateOptions
    CreateTerraformOptions
    CreateGkeServiceAccountOptions
    Flags                CreateCodeshipFlags
    GitRepositoryOptions gits.GitRepositoryOptions
}

CreateCodeshipOptions the options for the create spring command

func (*CreateCodeshipOptions) CreateAdditionalArgs Uses

func (o *CreateCodeshipOptions) CreateAdditionalArgs() []string

func (*CreateCodeshipOptions) Run Uses

func (o *CreateCodeshipOptions) Run() error

Run implements this command

type CreateDevPodOptions Uses

type CreateDevPodOptions struct {
    CreateOptions
    opts.CommonDevPodOptions

    Label           string
    Suffix          string
    WorkingDir      string
    RequestCpu      string
    Dir             string
    Reuse           bool
    Sync            bool
    Ports           []int
    AutoExpose      bool
    Persist         bool
    ImportURL       string
    Import          bool
    TempDir         bool
    Theia           bool
    ShellCmd        string
    DockerRegistry  string
    TillerNamespace string
    ServiceAccount  string
    PullSecrets     string

    GitCredentials git.StepGitCredentialsOptions

    Results CreateDevPodResults
}

CreateDevPodOptions the options for the create spring command

func (*CreateDevPodOptions) Run Uses

func (o *CreateDevPodOptions) Run() error

Run implements this command

type CreateDevPodResults Uses

type CreateDevPodResults struct {
    TheaServiceURL string
    ExposePortURLs []string
    PodName        string
}

CreateDevPodResults the results of running the command

type CreateDockerAuthOptions Uses

type CreateDockerAuthOptions struct {
    CreateOptions

    Host   string
    User   string
    Secret string
    Email  string
}

CreateDockerAuthOptions the options for the create Docker auth command

func (*CreateDockerAuthOptions) Run Uses

func (o *CreateDockerAuthOptions) Run() error

Run implements the command

type CreateDocsOptions Uses

type CreateDocsOptions struct {
    CreateOptions

    Dir string
}

CreateDocsOptions the options for the create spring command

func (*CreateDocsOptions) Run Uses

func (o *CreateDocsOptions) Run(jxCommand *cobra.Command) error

Run implements the command

type CreateEnvOptions Uses

type CreateEnvOptions struct {
    CreateOptions

    Options                v1.Environment
    HelmValuesConfig       config.HelmValuesConfig
    PromotionStrategy      string
    NoGitOps               bool
    NoDevNamespaceInit     bool
    Prow                   bool
    GitOpsMode             bool
    ForkEnvironmentGitRepo string
    EnvJobCredentials      string
    GitRepositoryOptions   gits.GitRepositoryOptions
    Prefix                 string
    BranchPattern          string
    Vault                  bool
    PullSecrets            string
    Update                 bool
}

CreateEnvOptions the options for the create env command

func (*CreateEnvOptions) RegisterEnvironment Uses

func (o *CreateEnvOptions) RegisterEnvironment(env *v1.Environment, gitProvider gits.GitProvider, authConfigSvc auth.ConfigService) error

RegisterEnvironment performs the environment registration

func (*CreateEnvOptions) Run Uses

func (o *CreateEnvOptions) Run() error

Run implements the command

type CreateEtcHostsOptions Uses

type CreateEtcHostsOptions struct {
    CreateOptions

    Name string
    IP   string
}

CreateEtcHostsOptions the options for the create spring command

func (*CreateEtcHostsOptions) Run Uses

func (o *CreateEtcHostsOptions) Run() error

Run implements the command

type CreateGitOptions Uses

type CreateGitOptions struct {
    CreateOptions
}

CreateGitOptions the options for the create spring command

func (*CreateGitOptions) Run Uses

func (o *CreateGitOptions) Run() error

Run implements this command

type CreateGitServerOptions Uses

type CreateGitServerOptions struct {
    CreateOptions

    Name string
    Kind string
    URL  string
}

CreateGitServerOptions the options for the create spring command

func (*CreateGitServerOptions) Run Uses

func (o *CreateGitServerOptions) Run() error

Run implements the command

type CreateGitTokenOptions Uses

type CreateGitTokenOptions struct {
    CreateOptions

    ServerFlags opts.ServerFlags
    Username    string
    Password    string
    ApiToken    string
    Timeout     string
}

CreateGitTokenOptions the command line options for the command

func (*CreateGitTokenOptions) Run Uses

func (o *CreateGitTokenOptions) Run() error

Run implements the command

type CreateGitUserOptions Uses

type CreateGitUserOptions struct {
    CreateOptions

    ServerFlags opts.ServerFlags
    Username    string
    Password    string
    ApiToken    string
    Email       string
    IsAdmin     bool
}

CreateGitUserOptions the command line options for the command

func (*CreateGitUserOptions) Run Uses

func (o *CreateGitUserOptions) Run() error

Run implements the command

type CreateGkeServiceAccountFlags Uses

type CreateGkeServiceAccountFlags struct {
    Name      string
    Project   string
    SkipLogin bool
}

type CreateGkeServiceAccountOptions Uses

type CreateGkeServiceAccountOptions struct {
    CreateOptions
    Flags CreateGkeServiceAccountFlags
}

func (*CreateGkeServiceAccountOptions) Run Uses

func (o *CreateGkeServiceAccountOptions) Run() error

Run implements this command

type CreateIssueOptions Uses

type CreateIssueOptions struct {
    CreateOptions

    Dir    string
    Title  string
    Body   string
    Labels []string
}

CreateIssueOptions the options for the create spring command

func (*CreateIssueOptions) PopulateIssue Uses

func (o *CreateIssueOptions) PopulateIssue(issue *gits.GitIssue) error

func (*CreateIssueOptions) Run Uses

func (o *CreateIssueOptions) Run() error

Run implements the command

type CreateJHipsterOptions Uses

type CreateJHipsterOptions struct {
    CreateProjectOptions
}

CreateJHipsterOptions the options for the create spring command

func (CreateJHipsterOptions) GenerateJHipster Uses

func (o CreateJHipsterOptions) GenerateJHipster(dir string) error

GenerateJHipster creates a fresh JHipster project by running jhipster on local shell

func (*CreateJHipsterOptions) Run Uses

func (o *CreateJHipsterOptions) Run() error

Run implements the command

type CreateJenkinsOptions Uses

type CreateJenkinsOptions struct {
    CreateOptions
}

CreateJenkinsOptions the options for the create spring command

func (*CreateJenkinsOptions) Run Uses

func (o *CreateJenkinsOptions) Run() error

Run implements this command

type CreateJenkinsUserOptions Uses

type CreateJenkinsUserOptions struct {
    CreateOptions

    ServerFlags     opts.ServerFlags
    JenkinsSelector opts.JenkinsSelectorOptions
    Namespace       string
    Username        string
    Password        string
    APIToken        string
    BearerToken     string
    Timeout         string
    NoREST          bool
    RecreateToken   bool
    HealthTimeout   time.Duration
}

CreateJenkinsUserOptions the command line options for the command

func (*CreateJenkinsUserOptions) Run Uses

func (o *CreateJenkinsUserOptions) Run() error

Run implements the command

type CreateLileOptions Uses

type CreateLileOptions struct {
    CreateProjectOptions
    OutDir string
}

CreateLileOptions the options for the create spring command

func (CreateLileOptions) GenerateLile Uses

func (o CreateLileOptions) GenerateLile(dir string) error

GenerateLile creates a fresh Lile project by running lile on local shell

func (*CreateLileOptions) Run Uses

func (o *CreateLileOptions) Run() error

Run implements the command

type CreateMLQuickstartOptions Uses

type CreateMLQuickstartOptions struct {
    CreateProjectOptions

    GitHubOrganisations []string
    Filter              quickstarts.QuickstartFilter
    GitProvider         gits.GitProvider
    GitHost             string
    IgnoreTeam          bool
}

CreateMLQuickstartOptions the options for the create quickstart command

func (*CreateMLQuickstartOptions) LoadQuickstartsFromMap Uses

func (o *CreateMLQuickstartOptions) LoadQuickstartsFromMap(config *auth.AuthConfig, gitMap map[string]map[string]v1.QuickStartLocation) (*quickstarts.QuickstartModel, error)

LoadQuickstartsFromMap Load all quickstarts

func (*CreateMLQuickstartOptions) Run Uses

func (o *CreateMLQuickstartOptions) Run() error

Run implements the generic Create command

type CreateMicroOptions Uses

type CreateMicroOptions struct {
    CreateProjectOptions
}

CreateMicroOptions the options for the create spring command

func (CreateMicroOptions) GenerateMicro Uses

func (o CreateMicroOptions) GenerateMicro(dir string) error

GenerateMicro creates a fresh micro project by running micro on local shell

func (*CreateMicroOptions) Run Uses

func (o *CreateMicroOptions) Run() error

Run implements the command

type CreateOptions Uses

type CreateOptions struct {
    *opts.CommonOptions

    DisableImport bool
    OutDir        string
}

CreateOptions contains the command line options

func (*CreateOptions) Run Uses

func (o *CreateOptions) Run() error

Run implements this command

type CreatePostPreviewJobOptions Uses

type CreatePostPreviewJobOptions struct {
    CreateOptions

    Name         string
    Image        string
    Commands     []string
    BackoffLimit int32
}

CreatePostPreviewJobOptions the options for the create spring command

func (*CreatePostPreviewJobOptions) Run Uses

func (o *CreatePostPreviewJobOptions) Run() error

Run implements the command

type CreateProjectOptions Uses

type CreateProjectOptions struct {
    importcmd.ImportOptions

    DisableImport bool
    OutDir        string
}

CreateProjectOptions contains the command line options

func (*CreateProjectOptions) ImportCreatedProject Uses

func (o *CreateProjectOptions) ImportCreatedProject(outDir string) error

DoImport imports the project created at the given directory

type CreateProjectWizardOptions Uses

type CreateProjectWizardOptions struct {
    CreateOptions
}

CreateProjectWizardOptions the options for the command

func (*CreateProjectWizardOptions) Run Uses

func (o *CreateProjectWizardOptions) Run() error

Run implements the command

type CreatePullRequestOptions Uses

type CreatePullRequestOptions struct {
    CreateOptions

    Dir    string
    Title  string
    Body   string
    Labels []string
    Base   string
    Push   bool
    Fork   bool

    Results *gits.PullRequestInfo
}

CreatePullRequestOptions the options for the create spring command

func (*CreatePullRequestOptions) Run Uses

func (o *CreatePullRequestOptions) Run() error

Run implements the command

type CreateQuickstartLocationOptions Uses

type CreateQuickstartLocationOptions struct {
    CreateOptions

    GitUrl   string
    GitKind  string
    Owner    string
    Includes []string
    Excludes []string
}

CreateQuickstartLocationOptions the options for the create spring command

func (*CreateQuickstartLocationOptions) Run Uses

func (o *CreateQuickstartLocationOptions) Run() error

Run implements the command

type CreateQuickstartOptions Uses

type CreateQuickstartOptions struct {
    CreateProjectOptions

    GitHubOrganisations []string
    Filter              quickstarts.QuickstartFilter
    GitProvider         gits.GitProvider
    GitHost             string
    IgnoreTeam          bool
}

CreateQuickstartOptions the options for the create quickstart command

func (*CreateQuickstartOptions) Run Uses

func (o *CreateQuickstartOptions) Run() error

Run implements the generic Create command

type CreateSpringOptions Uses

type CreateSpringOptions struct {
    CreateProjectOptions

    Advanced   bool
    SpringForm spring.SpringBootForm
}

CreateSpringOptions the options for the create spring command

func (*CreateSpringOptions) Run Uses

func (o *CreateSpringOptions) Run() error

Run implements the command

type CreateStepOptions Uses

type CreateStepOptions struct {
    CreateOptions

    Dir            string
    NewStepDetails NewStepDetails
}

CreateStepOptions the options for the create spring command

func (*CreateStepOptions) AddStepToProjectConfig Uses

func (o *CreateStepOptions) AddStepToProjectConfig() (*config.ProjectConfig, string, error)

AddStepToProjectConfig creates the new step, adds it to the project config, and returns the modified project config.

func (*CreateStepOptions) Run Uses

func (o *CreateStepOptions) Run() error

Run implements the command

type CreateTeamOptions Uses

type CreateTeamOptions struct {
    CreateOptions

    Name    string
    Members []string
}

CreateTeamOptions the options for the create spring command

func (*CreateTeamOptions) Run Uses

func (o *CreateTeamOptions) Run() error

Run implements the command

type CreateTerraformOptions Uses

type CreateTerraformOptions struct {
    CreateOptions
    InstallOptions InstallOptions
    Flags          Flags
    Clusters       []Cluster
}

CreateTerraformOptions the options for the create spring command

func (*CreateTerraformOptions) ClusterDetailsWizard Uses

func (options *CreateTerraformOptions) ClusterDetailsWizard() error

ClusterDetailsWizard cluster details wizard

func (*CreateTerraformOptions) CreateOrganisationFolderStructure Uses

func (options *CreateTerraformOptions) CreateOrganisationFolderStructure(dir string) ([]Cluster, error)

CreateOrganisationFolderStructure creates an organisations folder structure

func (*CreateTerraformOptions) Run Uses

func (options *CreateTerraformOptions) Run() error

Run implements this command

func (*CreateTerraformOptions) ValidateClusterDetails Uses

func (options *CreateTerraformOptions) ValidateClusterDetails() error

ValidateClusterDetails validates the options for a cluster

type CreateTokenAddonOptions Uses

type CreateTokenAddonOptions struct {
    CreateOptions

    ServerFlags opts.ServerFlags
    Username    string
    Password    string
    ApiToken    string
    Timeout     string
    Kind        string
}

CreateTokenAddonOptions the command line options for the command

func (*CreateTokenAddonOptions) Run Uses

func (o *CreateTokenAddonOptions) Run() error

Run implements the command

type CreateTokenOptions Uses

type CreateTokenOptions struct {
    CreateOptions
}

CreateTokenOptions the options for the create spring command

func (*CreateTokenOptions) Run Uses

func (o *CreateTokenOptions) Run() error

Run implements this command

type CreateTrackerOptions Uses

type CreateTrackerOptions struct {
    CreateOptions
}

CreateTrackerOptions the options for the create spring command

func (*CreateTrackerOptions) Run Uses

func (o *CreateTrackerOptions) Run() error

Run implements this command

type CreateTrackerServerOptions Uses

type CreateTrackerServerOptions struct {
    CreateOptions

    Name string
}

CreateTrackerServerOptions the options for the create spring command

func (*CreateTrackerServerOptions) Run Uses

func (o *CreateTrackerServerOptions) Run() error

Run implements the command

type CreateTrackerTokenOptions Uses

type CreateTrackerTokenOptions struct {
    CreateOptions

    ServerFlags opts.ServerFlags
    Username    string
    Password    string
    ApiToken    string
    Timeout     string
}

CreateTrackerTokenOptions the command line options for the command

func (*CreateTrackerTokenOptions) Run Uses

func (o *CreateTrackerTokenOptions) Run() error

Run implements the command

type CreateUserOptions Uses

type CreateUserOptions struct {
    CreateOptions
    UserSpec v1.UserDetails
}

CreateUserOptions the options for the create spring command

func (*CreateUserOptions) Run Uses

func (o *CreateUserOptions) Run() error

Run implements the command

type CreateVariableOptions Uses

type CreateVariableOptions struct {
    CreateOptions

    Dir   string
    Name  string
    Value string
}

CreateVariableOptions the options for the create spring command

func (*CreateVariableOptions) Run Uses

func (o *CreateVariableOptions) Run() error

Run implements the command

type CreateVaultOptions Uses

type CreateVaultOptions struct {
    CreateOptions

    GKECreateVaultOptions
    AWSCreateVaultOptions
    ClusterName         string
    Namespace           string
    SecretsPathPrefix   string
    RecreateVaultBucket bool
    NoExposeVault       bool
    BucketName          string
    KeyringName         string
    KeyName             string
    ServiceAccountName  string

    IngressConfig kube.IngressConfig
}

CreateVaultOptions the options for the create vault command

func (*CreateVaultOptions) ApplyDefaultRegionIfEmpty Uses

func (o *CreateVaultOptions) ApplyDefaultRegionIfEmpty(enforcedDefault string) error

ApplyDefaultRegionIfEmpty applies the default region to all AWS resources

func (*CreateVaultOptions) CreateVault Uses

func (o *CreateVaultOptions) CreateVault(vaultOperatorClient versioned.Interface, vaultName string, kubeProvider string) error

CreateVault creates a vault in the existing namespace. If the vault already exists, it will error

func (*CreateVaultOptions) Run Uses

func (o *CreateVaultOptions) Run() error

Run implements the command

type DomainGKEOptions Uses

type DomainGKEOptions struct {
    DomainOptions

    ProjectID string
}

DomainGKEOptions the options for the create spring command

func (*DomainGKEOptions) Run Uses

func (o *DomainGKEOptions) Run() error

Run implements the command

type DomainOptions Uses

type DomainOptions struct {
    CreateOptions

    SkipMessages bool
}

DomainOptions the options for the create spring command

type Flags Uses

type Flags struct {
    Cluster                     []string
    ClusterName                 string // cannot be used in conjunction with Cluster
    CloudProvider               string // cannot be used in conjunction with Cluster
    OrganisationName            string
    SkipLogin                   bool
    ForkOrganisationGitRepo     string
    SkipTerraformApply          bool
    SkipInstallation            bool
    NoActiveCluster             bool
    IgnoreTerraformWarnings     bool
    JxEnvironment               string
    GKEProjectID                string
    GKESkipEnableApis           bool
    GKEZone                     string
    GKEMachineType              string
    GKEPreemptible              bool
    GKEMinNumOfNodes            string
    GKEMaxNumOfNodes            string
    GKEDiskSize                 string
    GKEAutoRepair               bool
    GKEAutoUpgrade              bool
    GKEServiceAccount           string
    GKEUseEnhancedScopes        bool
    GKEUseEnhancedApis          bool
    LocalOrganisationRepository string
}

Flags for a cluster

type GKECluster Uses

type GKECluster struct {
    Organisation   string
    ProjectID      string
    Zone           string
    MachineType    string
    Preemptible    bool
    MinNumOfNodes  string
    MaxNumOfNodes  string
    DiskSize       string
    AutoRepair     bool
    AutoUpgrade    bool
    ServiceAccount string
    DevStorageRole string
    EnableKaniko   bool
    EnableVault    bool
    // contains filtered or unexported fields
}

GKECluster implements Cluster interface for GKE

func (GKECluster) ClusterName Uses

func (g GKECluster) ClusterName() string

ClusterName get cluster name

func (GKECluster) Context Uses

func (g GKECluster) Context() string

Context Get the context

func (GKECluster) CreateTfVarsFile Uses

func (g GKECluster) CreateTfVarsFile(path string) error

CreateTfVarsFile create vars

func (GKECluster) Name Uses

func (g GKECluster) Name() string

Name Get name

func (*GKECluster) ParseTfVarsFile Uses

func (g *GKECluster) ParseTfVarsFile(path string)

ParseTfVarsFile Parse vars file

func (GKECluster) Provider Uses

func (g GKECluster) Provider() string

Provider get provider

func (GKECluster) Region Uses

func (g GKECluster) Region() string

Region Get the region

func (*GKECluster) SetName Uses

func (g *GKECluster) SetName(name string) string

SetName Sets the name

func (*GKECluster) SetProvider Uses

func (g *GKECluster) SetProvider(provider string) string

SetProvider Set the provider

func (GKECluster) Validate Uses

func (g GKECluster) Validate() error

Validate validates that all args are ok to create a GKE cluster

type GKECreateVaultOptions Uses

type GKECreateVaultOptions struct {
    GKEProjectID string
    GKEZone      string
}

GKECreateVaultOptions the options for vault on GKE

type InstallDependenciesFlags Uses

type InstallDependenciesFlags struct {
    Dependencies []string
}

InstallDependenciesFlags flags for the install command

type InstallDependenciesOptions Uses

type InstallDependenciesOptions struct {
    *opts.CommonOptions
    Flags InstallDependenciesFlags
}

InstallDependenciesOptions options for install dependencies

func CreateInstallDependenciesOptions Uses

func CreateInstallDependenciesOptions(commonOpts *opts.CommonOptions) InstallDependenciesOptions

CreateInstallDependenciesOptions creates the options for jx install dependencies

func (*InstallDependenciesOptions) Run Uses

func (options *InstallDependenciesOptions) Run() error

Run implements this command

type InstallFlags Uses

type InstallFlags struct {
    ConfigFile                  string
    InstallOnly                 bool
    Domain                      string
    ExposeControllerURLTemplate string
    ExposeControllerPathMode    string
    AzureRegistrySubscription   string
    DockerRegistry              string
    DockerRegistryOrg           string
    Provider                    string
    VersionsRepository          string
    VersionsGitRef              string
    Version                     string
    LocalHelmRepoName           string
    Namespace                   string
    CloudEnvRepository          string
    NoDefaultEnvironments       bool
    RemoteEnvironments          bool
    DefaultEnvironmentPrefix    string
    LocalCloudEnvironment       bool
    EnvironmentGitOwner         string
    Timeout                     string
    HelmTLS                     bool
    RegisterLocalHelmRepo       bool
    CleanupTempFiles            bool
    Prow                        bool
    DisableSetKubeContext       bool
    Dir                         string
    Vault                       bool
    RecreateVaultBucket         bool
    Tekton                      bool
    KnativeBuild                bool
    BuildPackName               string
    Kaniko                      bool
    GitOpsMode                  bool
    NoGitOpsEnvApply            bool
    NoGitOpsEnvRepo             bool
    NoGitOpsEnvSetup            bool
    NoGitOpsVault               bool
    NextGeneration              bool `mapstructure:"next-generation"`
    StaticJenkins               bool
    LongTermStorage             bool   `mapstructure:"long-term-storage"`
    LongTermStorageBucketName   string `mapstructure:"lts-bucket"`
    CloudBeesDomain             string
    CloudBeesAuth               string
}

InstallFlags flags for the install command

func (*InstallFlags) AddCloudEnvOptions Uses

func (flags *InstallFlags) AddCloudEnvOptions(cmd *cobra.Command)

type InstallOptions Uses

type InstallOptions struct {
    *opts.CommonOptions
    gits.GitRepositoryOptions
    CreateJenkinsUserOptions
    CreateEnvOptions
    config.AdminSecretsService
    kubevault.AWSConfig

    InitOptions initcmd.InitOptions
    Flags       InstallFlags `mapstructure:"install"`
    // contains filtered or unexported fields
}

InstallOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()

func CreateInstallOptions Uses

func CreateInstallOptions(commonOpts *opts.CommonOptions) InstallOptions

CreateInstallOptions creates the options for jx install

func (*InstallOptions) AddInstallFlags Uses

func (options *InstallOptions) AddInstallFlags(cmd *cobra.Command, includesInit bool)

func (*InstallOptions) CheckFeatures Uses

func (options *InstallOptions) CheckFeatures() error

CheckFeatures - determines if the various features have been enabled

func (*InstallOptions) CheckFlags Uses

func (options *InstallOptions) CheckFlags() error

CheckFlags validates & configures install flags

func (*InstallOptions) CloneJXCloudEnvironmentsRepo Uses

func (options *InstallOptions) CloneJXCloudEnvironmentsRepo() (string, error)

clones the jenkins-x cloud-environments repo to a local working dir

func (*InstallOptions) ConfigureKaniko Uses

func (options *InstallOptions) ConfigureKaniko() error

ConfigureKaniko configures the kaniko SA and secret

func (*InstallOptions) ModifyConfigMap Uses

func (options *InstallOptions) ModifyConfigMap(name string, callback func(*core_v1.ConfigMap) error) (*core_v1.ConfigMap, error)

ModifyConfigMap modifies the ConfigMap either live or via the file system if generating the GitOps source

func (*InstallOptions) ModifySecret Uses

func (options *InstallOptions) ModifySecret(name string, callback func(*core_v1.Secret) error) (*core_v1.Secret, error)

ModifySecret modifies the Secret either live or via the file system if generating the GitOps source

func (*InstallOptions) Run Uses

func (options *InstallOptions) Run() error

Run implements this command

func (*InstallOptions) SetInstallValues Uses

func (options *InstallOptions) SetInstallValues(values map[string]string)

SetInstallValues sets the install values

type KubernetesProvider Uses

type KubernetesProvider string

type ModifyConfigMapCallback Uses

type ModifyConfigMapCallback func(string, func(*core_v1.ConfigMap) error) (*core_v1.ConfigMap, error)

ModifyConfigMapCallback a callback for modifying a ConfigMap for a given name

type ModifySecretCallback Uses

type ModifySecretCallback func(string, func(*core_v1.Secret) error) (*core_v1.Secret, error)

ModifySecretCallback a callback for modifying a Secret for a given name

type NewStepDetails Uses

type NewStepDetails struct {
    Pipeline  string
    Lifecycle string
    Mode      string
    Step      syntax.Step
}

NewStepDetails configures a new step

func (*NewStepDetails) AddToPipeline Uses

func (s *NewStepDetails) AddToPipeline(projectConfig *config.ProjectConfig) error

AddToPipeline adds the step to the given pipeline configuration

type Secrets Uses

type Secrets struct {
    Login string
    Token string
}

Secrets struct for secrets

type TerraformGKEFlags Uses

type TerraformGKEFlags struct {
    OrganisationName            string
    ClusterName                 string
    SkipLogin                   bool
    ForkOrganisationGitRepo     string
    SkipTerraformApply          bool
    SkipInstallation            bool
    NoActiveCluster             bool
    IgnoreTerraformWarnings     bool
    JxEnvironment               string
    LocalOrganisationRepository string
}

TerraformGKEFlags for a cluster

type TerraformGKEOptions Uses

type TerraformGKEOptions struct {
    CreateClusterGKEOptions
    Flags   Flags
    Cluster Cluster
}

TerraformGKEOptions the options for the create spring command

func (*TerraformGKEOptions) ClusterDetailsWizard Uses

func (options *TerraformGKEOptions) ClusterDetailsWizard() error

ClusterDetailsWizard cluster details wizard

func (*TerraformGKEOptions) CreateOrganisationFolderStructure Uses

func (options *TerraformGKEOptions) CreateOrganisationFolderStructure(dir string) ([]Cluster, error)

CreateOrganisationFolderStructure creates an organisations folder structure

func (*TerraformGKEOptions) Run Uses

func (options *TerraformGKEOptions) Run() error

Run implements this command

Package create imports 114 packages (graph) and is imported by 8 packages. Updated 2019-11-15. Refresh now. Tools for package owners.