installed

package
v0.0.0-...-e4b4822 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// For use with packages created using kapp-ctrl-cli
	KctrlPkgAnnotation       = "packaging.carvel.dev/package"
	KctrlPkgAnnotationPrefix = "package-"

	// For use with packages created with Tanzu CLI. To be deprecated
	TanzuPkgAnnotation       = "tkg.tanzu.vmware.com/tanzu-package"
	TanzuPkgAnnotationPrefix = "tanzu-package-"

	ClusterRoleBindingName = "%s-%s-cluster-rolebinding"
	ClusterRoleName        = "%s-%s-cluster-role"
	SecretName             = "%s-%s-values"
	ServiceAccountName     = "%s-%s-sa"
)

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

func NewCreateCmd

func NewCreateCmd(o *CreateOrUpdateOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewDeleteCmd

func NewDeleteCmd(o *DeleteOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewGetCmd

func NewGetCmd(o *GetOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewInstallCmd

func NewInstallCmd(o *CreateOrUpdateOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewKickCmd

func NewKickCmd(o *PauseOrKickOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewListCmd

func NewListCmd(o *ListOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewPauseCmd

func NewPauseCmd(o *PauseOrKickOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewStatusCmd

func NewStatusCmd(o *StatusOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewUpdateCmd

func NewUpdateCmd(o *CreateOrUpdateOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

Types

type CreateOrUpdateOptions

type CreateOrUpdateOptions struct {
	WaitFlags       cmdcore.WaitFlags
	YttOverlayFlags YttOverlayFlags

	DryRun bool

	Name                 string
	NamespaceFlags       cmdcore.NamespaceFlags
	SecureNamespaceFlags cmdcore.SecureNamespaceFlags
	// contains filtered or unexported fields
}

func NewCreateOrUpdateOptions

func NewCreateOrUpdateOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger, pkgCmdTreeOpts cmdcore.PackageCommandTreeOpts, columns *[]string) *CreateOrUpdateOptions

func (*CreateOrUpdateOptions) RunCreate

func (o *CreateOrUpdateOptions) RunCreate(args []string) error

func (*CreateOrUpdateOptions) RunUpdate

func (o *CreateOrUpdateOptions) RunUpdate(args []string) error

type CreatedResourceAnnotations

type CreatedResourceAnnotations struct {
	// contains filtered or unexported fields
}

func NewCreatedResourceAnnotations

func NewCreatedResourceAnnotations(name string, namespace string) *CreatedResourceAnnotations

func (*CreatedResourceAnnotations) ClusterRoleAnnValue

func (a *CreatedResourceAnnotations) ClusterRoleAnnValue() string

func (*CreatedResourceAnnotations) ClusterRoleBindingAnnValue

func (a *CreatedResourceAnnotations) ClusterRoleBindingAnnValue() string

func (*CreatedResourceAnnotations) PackageAnnValue

func (a *CreatedResourceAnnotations) PackageAnnValue() string

func (*CreatedResourceAnnotations) SecretAnnValue

func (a *CreatedResourceAnnotations) SecretAnnValue() string

func (*CreatedResourceAnnotations) ServiceAccountAnnValue

func (a *CreatedResourceAnnotations) ServiceAccountAnnValue() string

type CreatedResourceKind

type CreatedResourceKind string
const (
	KindClusterRole        CreatedResourceKind = "ClusterRole"
	KindClusterRoleBinding CreatedResourceKind = "ClusterRoleBinding"
	KindSecret             CreatedResourceKind = "Secret"
	KindServiceAccount     CreatedResourceKind = "ServiceAccount"
	KindNamespace          CreatedResourceKind = "Namespace"
)

func (CreatedResourceKind) AsString

func (k CreatedResourceKind) AsString() string

func (CreatedResourceKind) Name

func (k CreatedResourceKind) Name(pkgiName string, pkgiNamespace string) string

func (CreatedResourceKind) Resource

func (k CreatedResourceKind) Resource() string

type DeleteOptions

type DeleteOptions struct {
	NamespaceFlags cmdcore.NamespaceFlags
	Name           string

	NoOp bool

	WaitFlags cmdcore.WaitFlags
	// contains filtered or unexported fields
}

func NewDeleteOptions

func NewDeleteOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger, pkgCmdTreeOpts cmdcore.PackageCommandTreeOpts) *DeleteOptions

func (*DeleteOptions) Run

func (o *DeleteOptions) Run(args []string) error

type GetOptions

type GetOptions struct {
	NamespaceFlags cmdcore.NamespaceFlags
	Name           string
	// contains filtered or unexported fields
}

func NewGetOptions

func NewGetOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger, pkgCmdTreeOpts cmdcore.PackageCommandTreeOpts, columns *[]string) *GetOptions

func (*GetOptions) Run

func (o *GetOptions) Run(args []string) error

type ListOptions

type ListOptions struct {
	NamespaceFlags cmdcore.NamespaceFlags
	AllNamespaces  bool
	Wide           bool
	// contains filtered or unexported fields
}

func NewListOptions

func NewListOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger, pkgCmdTreeOpts cmdcore.PackageCommandTreeOpts, columns *[]string) *ListOptions

func (*ListOptions) Run

func (o *ListOptions) Run() error

type PackageInstalledDryRun

type PackageInstalledDryRun struct {
	*CreateOrUpdateOptions
}

func (PackageInstalledDryRun) PrintResources

func (d PackageInstalledDryRun) PrintResources() error

type PauseOrKickOptions

type PauseOrKickOptions struct {
	WaitFlags cmdcore.WaitFlags

	NamespaceFlags cmdcore.NamespaceFlags
	Name           string
	// contains filtered or unexported fields
}

func NewPauseOrKickOptions

func NewPauseOrKickOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger, pkgCmdTreeOpts cmdcore.PackageCommandTreeOpts) *PauseOrKickOptions

func (*PauseOrKickOptions) Kick

func (o *PauseOrKickOptions) Kick(args []string) error

func (*PauseOrKickOptions) Pause

func (o *PauseOrKickOptions) Pause(args []string) error

type StatusOptions

type StatusOptions struct {
	NamespaceFlags cmdcore.NamespaceFlags
	Name           string

	IgnoreNotExists bool
	// contains filtered or unexported fields
}

func NewStatusOptions

func NewStatusOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger, pkgCmdTreeOpts cmdcore.PackageCommandTreeOpts, columns *[]string) *StatusOptions

func (*StatusOptions) Run

func (o *StatusOptions) Run(args []string) error

type YttOverlayFlags

type YttOverlayFlags struct {
	// contains filtered or unexported fields
}

func (*YttOverlayFlags) Set

func (s *YttOverlayFlags) Set(cmd *cobra.Command)

type YttOverlays

type YttOverlays struct {
	// contains filtered or unexported fields
}

func NewYttOverlays

func NewYttOverlays(files []string, packageInstall string, namespace string) *YttOverlays

func (*YttOverlays) OverlaysSecret

func (o *YttOverlays) OverlaysSecret() (*corev1.Secret, error)

Jump to

Keyboard shortcuts

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