You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a new cluster is created and a package added, then the gitRepository and custompackage resources like the gitea url name includes twice the same name if by example the name of the YAML file and the name of the Argocd resource uses both the same name.
Example:
If we install the following package -p /Users/cmoullia/code/ch007m/my-konflux/fork-konflux-ci/idp/foundations/ which contains several Argocd files as showed hereafter
then the file name cluster-issuer.yaml and its Argocd Application name which is cluster-issuer will be used to name the customPackage and gitRepository YAML resources
While this is not an issue per se, that could hurt some users as it is hard to figure out that the package -p .../foundations match several components = argocd applications and that the idp custom resources created on the platform don't include the name of the package (= last word of a/b/c/d string) AND why name could appear twice like in my example.
This is why I would like to propose that we adopt a new convention (which is also perhaps not perfect too but a bit better) to name the resources like the git internal repository and which could address the proposition to have a command able to add/remove a customPackage (see #469)
We add to each idp resource labels abke to identify them as custom package and to which package it belongs
!! The idp projects includes a function to SetPackageLabels but it uses the name of the object which until now don't include the package name from where it comes from and is not applied to a customPackage created as you can see hereafter:
We should use the underscore within the git url to make a clear separation between the package name and the component/repository
I don't think that it makes a lot of sense to also prefix a git repository with the namespace name idpbuilder-<cluster-name> as there is a relation one-to-one between the internal gitea repository and the cluster running it at the moment
Note: We should add a new column to the command list packages to tell to the user to which package the customPackage belongs and perhaps also review the convention to name the customPackage using ONLY the name of the Argocd application (if the name is unique of course) !!
Enhancement
When a new cluster is created and a package added, then the
gitRepository
andcustompackage
resources like the gitea url name includes twice the same name if by example the name of the YAML file and the name of the Argocd resource uses both the same name.Example:
If we install the following package
-p /Users/cmoullia/code/ch007m/my-konflux/fork-konflux-ci/idp/foundations/
which contains several Argocd files as showed hereafterthen the file name
cluster-issuer.yaml
and its Argocd Application name which iscluster-issuer
will be used to name the customPackage and gitRepository YAML resourcesand urls will be:
While this is not an issue per se, that could hurt some users as it is hard to figure out that the package
-p .../foundations
match several components = argocd applications and that the idp custom resources created on the platform don't include the name of the package (= last word ofa/b/c/d
string) AND why name could appear twice like in my example.This is why I would like to propose that we adopt a new convention (which is also perhaps not perfect too but a bit better) to name the resources like the git internal repository and which could address the proposition to have a command able to add/remove a customPackage (see #469)
Convention:
-
as separatorIf we do that, then the new name will become:
Remarks:
custom
package and to which package it belongs!! The idp projects includes a function to SetPackageLabels but it uses the name of the object which until now don't include the package name from where it comes from and is not applied to a
customPackage
created as you can see hereafter:underscore
within the git url to make a clear separation between thepackage
name and the component/repositoryidpbuilder-<cluster-name>
as there is a relation one-to-one between the internal gitea repository and the cluster running it at the momentFYI: @nabuskey
The text was updated successfully, but these errors were encountered: