setup

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2019 GramLabs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2019 GramLabs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2019 GramLabs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2019 GramLabs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2019 GramLabs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	KustomizePluginKind = "ExperimentGenerator"
)

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error)

func NewInitCommand

func NewInitCommand(f cmdutil.Factory, ioStreams cmdutil.IOStreams) *cobra.Command

func NewResetCommand

func NewResetCommand(f cmdutil.Factory, ioStreams cmdutil.IOStreams) *cobra.Command

Types

type BootstrapConfig

type BootstrapConfig struct {
	Namespace          corev1.Namespace
	ClusterRole        rbacv1.ClusterRole
	ClusterRoleBinding rbacv1.ClusterRoleBinding
	Role               rbacv1.Role
	RoleBinding        rbacv1.RoleBinding
	Secret             corev1.Secret
	Job                batchv1.Job
	// contains filtered or unexported fields
}

The bootstrap configuration

func NewBootstrapInitConfig

func NewBootstrapInitConfig(o *SetupOptions, clientConfig *api.Config) (*BootstrapConfig, error)

NewBootstrapInitConfig creates a complete bootstrap configuration from the supplied values

func NewBootstrapResetConfig

func NewBootstrapResetConfig(o *SetupOptions) (*BootstrapConfig, error)

NewBootstrapResetConfig creates a configuration for performing a reset

func (*BootstrapConfig) Marshal

func (b *BootstrapConfig) Marshal(w io.Writer) error

Marshal a bootstrap configuration as a YAML stream

type SetupError

type SetupError struct {
	ImagePullBackOff string
	PodDeleted       bool
}

func (*SetupError) Error

func (e *SetupError) Error() string

type SetupOptions

type SetupOptions struct {
	Bootstrap bool
	DryRun    bool
	Kustomize bool

	ClientSet *kubernetes.Clientset

	Run func() error
	cmdutil.IOStreams
	// contains filtered or unexported fields
}

func NewSetupOptions

func NewSetupOptions(ioStreams cmdutil.IOStreams) *SetupOptions

func (*SetupOptions) AddFlags

func (o *SetupOptions) AddFlags(cmd *cobra.Command)

func (*SetupOptions) Complete

func (o *SetupOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) error

Jump to

Keyboard shortcuts

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