package
Version:
v2.0.0
Opens a new window with list of versions in this module.
Published: Jan 30, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewCommand() *cobra.Command
NewCommand return the command for generating ConfigMap and Secret resources from a configuration file
Flags contains all the flags for the `generate` command. They will be converted to Options
that contains all runtime options for the command.
func (f *Flags) AddFlags(flags *pflag.FlagSet)
AddFlags set the connection between Flags property to command line flags
func (f *Flags) ToOptions(fSys filesys.FileSystem) (*Options, error)
ToOptions transform the command flags in command runtime arguments
Options have the data required to perform the generate operation
func (o *Options) Run(ctx context.Context) error
Run execute the generate command
func (o *Options) Validate() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.