Documentation
¶
Index ¶
Constants ¶
View Source
const (
SyncerSecretConfigKey = "kubeconfig"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EdgeSyncOptions ¶
type EdgeSyncOptions struct {
*base.Options
// SyncerImage is the container image that should be used for the syncer.
SyncerImage string
// Replicas is the number of replicas to configure in the syncer's deployment.
Replicas int
// OutputFile is the path to a file where the YAML for the syncer should be written.
OutputFile string
// DownstreamNamespace is the name of the namespace in the physical cluster where the syncer deployment is created.
DownstreamNamespace string
// KCPNamespace is the name of the namespace in the kcp workspace where the service account is created for the
// syncer.
KCPNamespace string
// QPS is the refill rate for the syncer client's rate limiter bucket (steady state requests per second).
QPS float32
// Burst is the maximum size for the syncer client's rate limiter bucket when idle.
Burst int
// SyncTargetName is the name of the SyncTarget in the kcp workspace.
SyncTargetName string
// SyncTargetLabels are the labels to be applied to the SyncTarget in the kcp workspace.
SyncTargetLabels []string
}
EdgeSyncOptions contains options for configuring a SyncTarget and its corresponding syncer.
func NewEdgeSyncOptions ¶
func NewEdgeSyncOptions(streams genericclioptions.IOStreams) *EdgeSyncOptions
NewSyncOptions returns a new EdgeSyncOptions.
func (*EdgeSyncOptions) BindFlags ¶
func (o *EdgeSyncOptions) BindFlags(cmd *cobra.Command)
BindFlags binds fields EdgeSyncOptions as command line flags to cmd's flagset.
func (*EdgeSyncOptions) Complete ¶
func (o *EdgeSyncOptions) Complete(args []string) error
Complete ensures all dynamically populated fields are initialized.
func (*EdgeSyncOptions) Run ¶
func (o *EdgeSyncOptions) Run(ctx context.Context) error
Run prepares a kcp workspace for use with a syncer and outputs the configuration required to deploy a syncer to the pcluster to stdout.
func (*EdgeSyncOptions) Validate ¶
func (o *EdgeSyncOptions) Validate() error
Validate validates the EdgeSyncOptions are complete and usable.
Click to show internal directories.
Click to hide internal directories.