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
Click to show internal directories.
Click to hide internal directories.