integration-service

module
v0.0.0-...-164faee Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0

README

Konflux Integration Service

The Konflux Integration Service is a Kubernetes operator to control the integration and testing of Konflux-managed Application Component builds in Red Hat Konflux.

Running, building and testing the operator

This operator provides a Makefile to run all the usual development tasks. This file can be used by cloning the repository and running make over any of the provided targets.

Running the operator locally

When testing locally (eg. a CRC cluster), the command make run install can be used to deploy and run the operator. If any change has been done in the code, make manifests generate should be executed before to generate the new resources and build the operator.

Build and push a new image

To build the operator and push a new image to the registry, the following commands can be used:

$ make img-build
$ make img-push

These commands will use the default image and tag. To modify them, new values for TAG and IMG environment variables can be passed. For example, to override the tag:

$ TAG=my-tag make img-build
$ TAG=my-tag make img-push

Or, in the case the image should be pushed to a different repository:

$ IMG=quay.io/user/integration-service:my-tag make img-build
$ IMG=quay.io/user/integration-service:my-tag make img-push
Adding/updating a dependency

This repo uses vendoring, please add dependencies in the following way:

go get example.com/dep@v1.2.3
go mod tidy
go mod vendor
git add vendor/

If you don't vendor dependencies, go vet will fail build.

Running tests

To test the code, simply run make test. This command will fetch all the required dependencies and test the code. The test coverage will be reported at the end, once all the tests have been executed.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the appstudio v1alpha1 API group +kubebuilder:object:generate=true +groupName=appstudio.redhat.com
Package v1alpha1 contains API Schema definitions for the appstudio v1alpha1 API group +kubebuilder:object:generate=true +groupName=appstudio.redhat.com
v1beta1
Package v1beta1 contains API Schema definitions for the appstudio v1beta1 API group +kubebuilder:object:generate=true +groupName=appstudio.redhat.com
Package v1beta1 contains API Schema definitions for the appstudio v1beta1 API group +kubebuilder:object:generate=true +groupName=appstudio.redhat.com
v1beta2
Package v1beta2 contains API Schema definitions for the appstudio v1beta2 API group +kubebuilder:object:generate=true +groupName=appstudio.redhat.com
Package v1beta2 contains API Schema definitions for the appstudio v1beta2 API group +kubebuilder:object:generate=true +groupName=appstudio.redhat.com
cmd
git
internal
Package loader contains functions used to load resource from the cluster
Package loader contains functions used to load resource from the cluster
pkg
Package status is a generated GoMock package.
Package status is a generated GoMock package.

Jump to

Keyboard shortcuts

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