plugin

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// passOnFlags are the flags we pass to downstream commands like kubectl-bind-apiservice.
	PassOnFlags = sets.NewString(
		"allow-missing-template-keys",
		"kubeconfig",
		"log-flush-frequency",
		"logging-format",
		"o",
		"output",
		"show-managed-fields",
		"skip-konnector",
		"template",
		"v",
		"vmodule",
	)

	// passOnEnvVars are the flags we DO NOT pass to downstream commands like kubectl-bind-apiservice.
	LocalFlags = sets.NewString(
		"d",
		"dry-run",
	)
)

Functions

func ClusterID added in v0.2.4

func ClusterID(ns *corev1.Namespace) string

func SessionID added in v0.2.4

func SessionID() string

Types

type BindOptions

type BindOptions struct {
	*base.Options
	Logs *logs.Options

	Print  *genericclioptions.PrintFlags
	DryRun bool

	// url is the argument accepted by the command. It contains the
	// reference to where an APIService exists.
	URL string

	// skipKonnector skips the deployment of the konnector.
	SkipKonnector bool

	// Runner is runs the command. It can be replaced in tests.
	Runner func(cmd *exec.Cmd) error
	// contains filtered or unexported fields
}

BindOptions contains the options for creating an APIBinding.

func NewBindOptions

func NewBindOptions(streams genericclioptions.IOStreams) *BindOptions

NewBindOptions returns new BindOptions.

func (*BindOptions) AddCmdFlags added in v0.0.11

func (b *BindOptions) AddCmdFlags(cmd *cobra.Command)

AddCmdFlags binds fields to cmd's flagset.

func (*BindOptions) Complete

func (b *BindOptions) Complete(args []string) error

Complete ensures all fields are initialized.

func (*BindOptions) Run

func (b *BindOptions) Run(ctx context.Context, urlCh chan<- string) error

Run starts the binding process.

func (*BindOptions) Validate

func (b *BindOptions) Validate() error

Validate validates the BindOptions are complete and usable.

Jump to

Keyboard shortcuts

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