manifest

package
v0.0.0-...-fa857ea Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLanguage

func GetLanguage(language, workDir string) (string, error)

GetLanguage returns the language of a given folder

Types

type Command

type Command struct {
	K8sClientProvider okteto.K8sClientProviderWithLogger
	AnalyticsTracker  buildTrackerInterface
	InsightsTracker   buildDeployTrackerInterface

	IoCtrl    *io.Controller
	K8sLogger *io.K8sLogger
	// contains filtered or unexported fields
}

Command has all the namespaces subcommands

func (*Command) RunInitV1

func (*Command) RunInitV1(ctx context.Context, opts *InitOpts) error

RunInitV1 runs the sequence to generate okteto.yml

func (*Command) RunInitV2

func (mc *Command) RunInitV2(ctx context.Context, opts *InitOpts) (*model.Manifest, error)

RunInitV2 initializes a new okteto manifest

type InitOpts

type InitOpts struct {
	DevPath   string
	Namespace string
	Context   string
	Language  string
	Workdir   string

	Overwrite bool
	ShowCTA   bool
	Version1  bool

	AutoDeploy       bool
	AutoConfigureDev bool
}

InitOpts defines the option for manifest init

Jump to

Keyboard shortcuts

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