The ApplicationSet controller manages multiple Argo CD Applications as a single ApplicationSet unit, supporting deployments to large numbers of clusters, deployments of large monorepos, and enabling secure Application self-service.
Here the template name will be orgaA/teamB-projectC-cluster_name, which is not a valid name.
Appset Controler does log an error:
applicationset-controller
time="2023-07-27T20:15:35Z"
level=error
msg="failed to unchanged Application"
action=unchanged
app=orgaA/teamB-projectC-cluster_name
appSet=orga
error="Application.argoproj.io \"orgaA/teamB-projectC-cluster_name\" is invalid:
metadata.name: Invalid
value: \"orgaA/teamB-projectC-cluster_name\":
a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')"
I'm trying to dig in the code, but help will be much appreciated.
For example, the cluster name provided by the clusters generator does provide a normalized version of the name as nameNormalized
In Gitlab it is possible to use sub-folders for organizations, like
/orgA/teamB/projectC
.In that cas you would
git clone git@gitlab.server/orgA/teamB/projectC.git
When using An AppSet searching for all matching repos under the
orgA
, the returnedorganization
contains/
likeorgA/teamB
.Here's a sample Appset:
Here the
template
name will beorgaA/teamB-projectC-cluster_name
, which is not a valid name.Appset Controler does log an error:
I'm trying to dig in the code, but help will be much appreciated. For example, the
cluster name
provided by theclusters
generator does provide a normalized version of thename
asnameNormalized