config

package
v0.0.0-...-5ea0b8c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationSpecs = []ApplicationSpec{
	{
		Name:            "Maven project - Default build",
		ApplicationName: "konflux-demo-app",
		Skip:            false,
		ComponentSpec: ComponentSpec{
			Name:                       "konflux-demo-component",
			Language:                   "Java",
			GitSourceUrl:               fmt.Sprintf("https://github.com/%s/%s", utils.GetEnv(constants.GITHUB_E2E_ORGANIZATION_ENV, "redhat-appstudio-qe"), "hacbs-test-project-konflux-demo"),
			GitSourceRevision:          "4df701406d34012034dd490fd38d779717582df7",
			GitSourceContext:           "",
			GitSourceDefaultBranchName: "main",
			DockerFilePath:             "Dockerfile",

			IntegrationTestScenario: IntegrationTestScenarioSpec{
				GitURL:      "https://github.com/konflux-ci/integration-examples.git",
				GitRevision: "843f455fe87a6d7f68c238f95a8f3eb304e65ac5",
				TestPath:    "pipelines/integration_resolver_pipeline_pass.yaml",
			},
		},
	},
}

Functions

This section is empty.

Types

type ApplicationSpec

type ApplicationSpec struct {
	// The test name corresponding to an application
	Name string `yaml:"name"`

	// Indicate if a test can be skipped, by default is true
	Skip bool `yaml:"skip,omitempty"`

	// Indicate if a test is to be run against stage
	Stage bool `yaml:"stage,omitempty"`

	// Name of the application created in the cluster
	ApplicationName string `yaml:"applicationName"`

	// Specification of the Component associated with the Application
	ComponentSpec ComponentSpec `yaml:"spec"`
}

Set of Applications to create and test in Konflux

type ComponentSpec

type ComponentSpec struct {
	// The component name which will be created
	Name string `yaml:"name"`

	// It indicates if the component comes from a private source like quay or github.
	Private bool `yaml:"private"`

	// Indicate the container value
	ContainerSource string `yaml:"containerSource,omitempty"`

	// Component language
	Language string `yaml:"language"`

	// Repository URL from where component will be created
	GitSourceUrl string `yaml:"gitSourceUrl,omitempty"`

	// Repository branch
	GitSourceRevision string `yaml:"gitSourceRevision,omitempty"`

	// Relative path inside the repository containing the component
	GitSourceContext string `yaml:"gitSourceContext,omitempty"`

	GitSourceDefaultBranchName string `yaml:"gitSourceDefaultBranchName,omitempty"`

	// Relative path of the docker file in the repository
	DockerFilePath string `yaml:"dockerFilePath,omitempty"`

	// Set k8s resource specific properties
	K8sSpec *K8sSpec `yaml:"spec,omitempty"`

	// Integration test config
	IntegrationTestScenario IntegrationTestScenarioSpec `yaml:"testScenario,omitempty"`
}

Specs for a specific component to create in AppStudio

type IntegrationTestScenarioSpec

type IntegrationTestScenarioSpec struct {
	GitURL      string
	GitRevision string
	TestPath    string
}

type K8sSpec

type K8sSpec struct {
	// If set, will scale the replicas to the desired number
	// This is a pointer to distinguish between explicit zero and not specified.
	Replicas int32 `yaml:"replicas,omitempty"`
}

Set k8s resource specific properties

Jump to

Keyboard shortcuts

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