Command line for working with your Applications on Konflux
git clone https://github.com/konflux-ci/cli.git
cd cli
go build -o konflux cmd/konflux/main.go
Usage:
konflux export application [flags]
Flags:
-a, --all-applications When set, all Applications in the current namespace will be cloned.
-p, --all-projects When set, all namespaces/projects will be cloned.
-f, --from string Namespace from which the Application is being cloned.
-h, --help help for application
-k, --key string Local filesystem path to an existing encryption key
-s, --skip string List of components to be skipped
-t, --to string Namespace to which the Application is being cloned.
-w, --write-to string Local filesystem directory path where the YAML would be written out to.
Unless otherwise specified by the --write-to
flag, the exported YAML files would be written out as follows:
data/20231003120120/source-tenant.yaml
data/20231003120120/encrypted-source-tenant.yaml
.
-
Login to your Konflux namespace using
kubelogin
orkubectl
. -
./konflux export application --all-projects
-
Login to your Konflux namespace using
kubelogin
orkubectl
. -
./konflux export application my-cool-application --from my-ws-tenant --to shbose-ws-tenant
Optionally, if you were to work on an embargoed issue, you could import all associated Components as images.
./konflux export application my-cool-application --from my-ws-tenant --to shbose-ws-tenant --as-prebuilt-images --skip https://github.com/redhat-appstudio/build-service
Login to your Konflux namespace using kubelogin
or kubectl
.
-
./konflux export application my-cool-application -f my-ws-tenant -k /Users/sbose/keys/sbose.pub