mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
fix: Applicationset upsert for any namespaces (#15520)
* fix: Applicationset upsert for any namespaces PR implements a small change to the argocd command adding the AppsetNamespace for the existing Appset check. Signed-off-by: Harm Matthias Harms <matthias.harms@quis.de> * Retrigger CI pipeline Signed-off-by: Harm Matthias Harms <matthias.harms@quis.de> * Retrigger CI pipeline Signed-off-by: Harm Matthias Harms <matthias.harms@quis.de> --------- Signed-off-by: Harm Matthias Harms <matthias.harms@quis.de>
This commit is contained in:
parent
9b4589eaa8
commit
9f10a5fe0c
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ func NewApplicationSetCreateCommand(clientOpts *argocdclient.ClientOptions) *cob
|
|||
defer argoio.Close(conn)
|
||||
|
||||
// Get app before creating to see if it is being updated or no change
|
||||
existing, err := appIf.Get(ctx, &applicationset.ApplicationSetGetQuery{Name: appset.Name})
|
||||
existing, err := appIf.Get(ctx, &applicationset.ApplicationSetGetQuery{Name: appset.Name, AppsetNamespace: appset.Namespace})
|
||||
if grpc.UnwrapGRPCStatus(err).Code() != codes.NotFound {
|
||||
errors.CheckError(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue