Generate Argo CD Application as part of the Quarkus build or the Quarkus CLI.
argoproj.io/v1alpha1
.To build the extension use the following command:
mvn clean install
To get the Argo CD custom resources generated, it is needed to add the quarkus-argocd
extension to the project.
To add the extension to the project, manually edit the pom.xml
or build.gradle
file.
pom.xml
file<dependency>
<groupId>io.quarkiverse.argocd</groupId>
<artifactId>quarkus-argocd</artifactId>
<version>999-SNAPSHOT</version>
</dependency>
build.gradle
filedependencies {
implementation 'io.quarkiverse.argocd:quarkus-argocd:999-SNAPSHOT'
}
After this step the Argo CD will be generated under the .argocd
directory within the project root as part of the build.
The project provides a companion CLI that can be used to install / uninstall and list the Argo CD Applications. The CLI can be added with the following command:
quarkus plug add io.quarkiverse.argocd:quarkus-argocd-cli:999-SNAPSHOT
To re-triggger the file generation:
quarkus argocd application generate
To install generated Application
CR to the currently connected Kubernetes cluster:
quarkus argocd application install
Note: In case of uncommited or unpushed changes the command will prompt users to decide if they want to proceed with the installation.
The currently connected Kubernetes cluster
is the one that is configured in the ~/.kube/config
file.
It can be overriden by setting in applcation.properties
a different API server url and token. See the quarkus-kubernetes-client
extension for more details.
To uninstall:
quarkus argocd application uninstall
To list all Applications installed
quarkus argocd application list