Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Conversation

@ashutosh16
Copy link
Contributor

closes : argoproj/argo-cd#11588
Signed-off-by: ashutosh16 [email protected]

Signed-off-by: ashutosh16 <[email protected]>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ashutosh16 ashutosh16 changed the title Improve error message when syncing resources to unmanaged namespaces Fix: improve error message when syncing resources to unmanaged namespaces Dec 15, 2022
return nil, fmt.Errorf("Cluster level %s %q can not be managed when in namespaced mode", o.GetKind(), o.GetName())
} else if o.GetNamespace() != "" && !c.managesNamespace(o.GetNamespace()) {
return nil, fmt.Errorf("Namespace %q for %s %q is not managed", o.GetNamespace(), o.GetKind(), o.GetName())
return nil, fmt.Errorf("Destination namespace %q for resource kind %s %q is not managed by argocd", o.GetNamespace(), o.GetKind(), o.GetName())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For more guidance, can we mention something like "go and edit cluster settings for X cluster" ?

@ppapapetrou76
Copy link
Contributor

The gitops-engine repository is migrating to https://github.com/argoproj/argo-cd.

Can you please update the PR by resolving the conflicts / If it's not relevant anymore, feel free to close it
You can always re-open it when the migration is over

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync fails with "Namespace X for Resource Y is not managed" even though namespace X is managed

3 participants