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 ¶
const (
KustomizePluginKind = "ExperimentGenerator"
)
Variables ¶
This section is empty.
Functions ¶
func NewInitCommand ¶
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
type SetupError ¶
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)