cmd

package
v0.0.0-...-d8b41f4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 78 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperatorVersionType = "OperatorVersion"
	ProductVersionType  = "Version"
)
View Source
const (
	ProwConfigSourceRHMI   = "ci-operator/config/integr8ly/integreatly-operator/integr8ly-integreatly-operator-release-v2.9.yaml"
	ProwConfigSourceRHOAM  = "ci-operator/config/integr8ly/integreatly-operator/integr8ly-integreatly-operator-rhoam-release-v1.7.yaml"
	ProwConfigSourceMaster = "ci-operator/config/integr8ly/integreatly-operator/integr8ly-integreatly-operator-master.yaml"
	ProwInternalRegistry   = "registry.ci.openshift.org/integr8ly"
)
View Source
const (
	DefaultOpenshiftCIRepo        = "release"
	DefaultOpenshiftCIOrgUpstream = "openshift"
	DefaultOpenshiftCIOrgOrigin   = "integr8ly"
)
View Source
const (
	GithubTokenKey                         = "github_token"
	GithubUserKey                          = "github_user"
	DefaultIntegreatlyGithubOrg            = "integr8ly"
	DefaultIntegreatlyOperatorRepo         = "integreatly-operator"
	QuayTokenKey                           = "quay_token"
	DefaultIntegreatlyOperatorQuayRepo     = "integreatly/integreatly-operator"
	DefaultIntegreatlyOperatorTestQuayRepo = "integreatly/integreatly-operator-test-harness"
	KubeConfigKey                          = "kubeconfig"
	PolarionUsernameKey                    = "polarion_username"
	PolarionPasswordKey                    = "polarion_password"
	AWSAccessKeyIDEnv                      = "delorean_aws_access_key_id"
	AWSSecretAccessKeyEnv                  = "delorean_aws_secret_access_key"
	AWSDefaultRegion                       = "eu-west-1"
)
View Source
const MergeBlockerLabel = "tide/merge-blocker"

Variables

This section is empty.

Functions

func DoCurrentCSV

func DoCurrentCSV(ctx context.Context, cmdOpts *currentCSVFlags) error

func DoExtractManifests

func DoExtractManifests(ctx context.Context, extractManifests ExtractManifestsCmd, cmdOpts *extractManifestsCmdOptions) error

func DoMergeBlocker

func DoMergeBlocker(ctx context.Context, client services.GithubIssuesService, repoInfo *githubRepoInfo, cmdOpts *mergeBlockerCmdOptions) error

func DoMergeRelease

func DoMergeRelease(ctx context.Context, client services.PullRequestsService, repoInfo *githubRepoInfo, cmdOpts *mergeReleaseOptions) error

func DoProcessCSV

func DoProcessCSV(ctx context.Context, cmdOpts *processCSVImagesCmdOptions) error

func DoProcessManifest

func DoProcessManifest(manifestDir string) error

func DoTagRelease

func DoTagRelease(ctx context.Context, ghClient services.GitService, gitRepoInfo *githubRepoInfo, quayToken string, cmdOpts *tagReleaseOptions) error

func DoTagReleaseRepo

func DoTagReleaseRepo(ctx context.Context, ghClient services.GitService, gitRepoInfo *githubRepoInfo, cmdOpts *tagReleaseRepoOptions) error

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func ParseVersion

func ParseVersion(input string, product string, version string, versionType string) (string, error)

func PrepareProductName

func PrepareProductName(product string) string

func SetVersion

func SetVersion(filepath string, product string, operatorVersion string, productVersion string) error

Types

type Bundle

type Bundle struct {
	Name  string `yaml:"name"`
	Image string `yaml:"image"`
}

type BundleList

type BundleList struct {
	Bundles []*Bundle `yaml:"bundles"`
}

type Config

type Config struct {
	InnerConfig InnerConfig `json:"config"`
}

type ExtractManifestsCmd

type ExtractManifestsCmd func(image string, path string) error

type GetLatestReleaseCmdFlags

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

func NewGetLatestReleaseCmd

func NewGetLatestReleaseCmd(repo string, owner string) *GetLatestReleaseCmdFlags

type ImageInfo

type ImageInfo struct {
	Config Config `json:"config"`
}

type InnerConfig

type InnerConfig struct {
	Labels Labels `json:"Labels"`
}

type Labels

type Labels struct {
	CommitId string `json:"io.openshift.build.commit.id"`
}

type MetaData

type MetaData struct {
	Name    string `json:"name"`
	Version string `json:"rhmiVersion"`
	Job     string `json:"jobURL"`
}

type ProcessBundleCommand

type ProcessBundleCommand struct {
	ProductsInstallationPath,
	ProductKey string
	Updater ProductInstallationUpdater
}

func (*ProcessBundleCommand) Run

func (cmd *ProcessBundleCommand) Run() error

type ProcessCSVImagesCmd

type ProcessCSVImagesCmd func(manifestDir string, isGa bool, extraImages string) error

type ProductInstallation

type ProductInstallation struct {
	Channel      string  `yaml:"channel"`
	Bundle       string  `yaml:"bundle,omitempty"`
	InstallFrom  string  `yaml:"installFrom"`
	ManifestsDir *string `yaml:"manifestsDir,omitempty"`
	Package      string  `yaml:"package,omitempty"`
	Index        string  `yaml:"index,omitempty"`
}

type ProductInstallationCompositeUpdater

type ProductInstallationCompositeUpdater struct {
	Updaters []ProductInstallationUpdater
}

func (*ProductInstallationCompositeUpdater) UpdateProductInstallation

func (u *ProductInstallationCompositeUpdater) UpdateProductInstallation(p *ProductInstallation) error

type ProductInstallationUpdater

type ProductInstallationUpdater interface {
	UpdateProductInstallation(*ProductInstallation) error
}

type ProductInstallationUpdaterFromBundle

type ProductInstallationUpdaterFromBundle struct {
	BundleDir string
}

func (*ProductInstallationUpdaterFromBundle) UpdateProductInstallation

func (u *ProductInstallationUpdaterFromBundle) UpdateProductInstallation(p *ProductInstallation) error

type ProductInstallationUpdaterFromValues

type ProductInstallationUpdaterFromValues struct {
	Channel      *string
	Bundle       *string
	InstallFrom  *string
	ManifestsDir *string
	Package      *string
	Index        *string
}

func (*ProductInstallationUpdaterFromValues) UpdateProductInstallation

func (u *ProductInstallationUpdaterFromValues) UpdateProductInstallation(p *ProductInstallation) error

type ProductsInstallation

type ProductsInstallation struct {
	Products map[string]*ProductInstallation `yaml:"products"`
}

type TestContainer

type TestContainer struct {
	Name            string      `json:"name"`
	Image           string      `json:"image"`
	Timeout         int64       `json:"timeout,omitempty"`
	ImagePullSecret string      `json:"ImagePullSecretEnvVar,omitempty"`
	EnvVars         []v1.EnvVar `json:"envVars,omitempty"`
	RegExpFilter    string      `json:"regExpFilter,omitempty"`
	Entrypoint      []string    `json:"entrypoint, omitempty"`
	Argument        []string    `json:"argument, omitempty"`
	Success         bool
}

type Update3scaleBundleCommand

type Update3scaleBundleCommand struct {
	BundleName     string
	BundleImage    string
	BundleFilePath string
}

func (*Update3scaleBundleCommand) Run

func (cmd *Update3scaleBundleCommand) Run() error

Jump to

Keyboard shortcuts

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