cmd

package
v0.12.0-m1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 60 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: Apache-2.0

Copyright Contributors to the Submariner project.

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.

SPDX-License-Identifier: Apache-2.0

Copyright Contributors to the Submariner project.

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.

SPDX-License-Identifier: Apache-2.0

Copyright Contributors to the Submariner project.

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 (
	OperatorNamespace = "submariner-operator"
)
View Source
const SubmMissingMessage = "Submariner is not installed"
View Source
const (
	SubmarinerNamespace = "submariner-operator" // We currently expect everything in submariner-operator
)

Variables

View Source
var (
	GlobalCIDRConfigMap *v1.ConfigMap
)

Functions

func AddKubeConfigFlag added in v0.10.1

func AddKubeConfigFlag(cmd *cobra.Command)

func AddKubeContextFlag added in v0.10.1

func AddKubeContextFlag(cmd *cobra.Command)

AddKubeContextFlag adds a "kubeconfig" flag and a single "kubecontext" flag that can be used once and only once

func AddKubeContextMultiFlag added in v0.10.1

func AddKubeContextMultiFlag(cmd *cobra.Command, usage string)

AddKubeContextMultiFlag adds a "kubeconfig" flag and a "kubecontext" flag that can be specified multiple times (or comma separated)

func AddToRootCommand added in v0.10.1

func AddToRootCommand(cmd *cobra.Command)

func AllocateAndUpdateGlobalCIDRConfigMap added in v0.5.0

func AllocateAndUpdateGlobalCIDRConfigMap(brokerAdminClientset *kubernetes.Clientset, brokerNamespace string,
	netconfig *globalnet.Config) error

func CheckVersionMismatch added in v0.10.1

func CheckVersionMismatch(cmd *cobra.Command, args []string) error

func CompareFiles added in v0.10.1

func CompareFiles(file1, file2 string) (bool, error)

func Execute

func Execute() error

func ExecuteMultiCluster added in v0.10.1

func ExecuteMultiCluster(run func(*Cluster) bool)

Types

type Cluster added in v0.10.1

type Cluster struct {
	Config     *rest.Config
	Name       string
	KubeClient kubernetes.Interface
	DynClient  dynamic.Interface
	SubmClient subClientsetv1.Interface
	Submariner *v1alpha1.Submariner
}

func NewCluster added in v0.10.1

func NewCluster(config *rest.Config, clusterName string) (*Cluster, string)

func (*Cluster) GetGateways added in v0.10.1

func (c *Cluster) GetGateways() ([]submarinerv1.Gateway, error)

Directories

Path Synopsis
aws
This package provides common functionality to run cloud prepare/cleanup on AWS
This package provides common functionality to run cloud prepare/cleanup on AWS
gcp
This package provides common functionality to run cloud prepare/cleanup on GCP Clusters
This package provides common functionality to run cloud prepare/cleanup on GCP Clusters
SPDX-License-Identifier: Apache-2.0 Copyright Contributors to the Submariner project.
SPDX-License-Identifier: Apache-2.0 Copyright Contributors to the Submariner project.
SPDX-License-Identifier: Apache-2.0 Copyright Contributors to the Submariner project.
SPDX-License-Identifier: Apache-2.0 Copyright Contributors to the Submariner project.
SPDX-License-Identifier: Apache-2.0 Copyright Contributors to the Submariner project.
SPDX-License-Identifier: Apache-2.0 Copyright Contributors to the Submariner project.

Jump to

Keyboard shortcuts

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