decisions

package
v2.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DecisionsCmd = &cobra.Command{
	Use:           "decisions",
	Short:         "Get Aperture Decisions",
	Long:          `Use this command to get the Aperture Decisions.`,
	SilenceErrors: true,
	Example: `
	aperturectl decisions --all
	aperturectl decisions --decision-type="load_scheduler"`,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		err := controller.PreRunE(cmd, args)
		if err != nil {
			return fmt.Errorf("failed to run controller pre-run: %w", err)
		}

		decisionType, err = utils.DecisionsPreRun(all, decisionType)
		return err
	},
	RunE: func(cmd *cobra.Command, args []string) error {
		client, err := controller.PolicyClient()
		if err != nil {
			return err
		}

		return utils.ParseDecisions(cmd, client, all, decisionType)
	},
	PersistentPostRun: controller.PostRun,
}

DecisionsCmd is the command to apply a policy to the cluster.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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