Skip to content

Conversation

@honza801
Copy link

@honza801 honza801 commented Dec 5, 2024

SUMMARY

Documentation advises users to put awx resources to the same kustomization file as awx-operator. This can lead to permanent data loss on kubectl delete -k . Operator and resources should be split to special directories/kustomization files

Fixes #1864
Fixes ansible/awx#15173

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
ADDITIONAL INFORMATION

Instead of deleting everything while running the kubectl delete -k .

namespace "awx-test" deleted (dry run)
customresourcedefinition.apiextensions.k8s.io "awxbackups.awx.ansible.com" deleted (dry run)
customresourcedefinition.apiextensions.k8s.io "awxmeshingresses.awx.ansible.com" deleted (dry run)
customresourcedefinition.apiextensions.k8s.io "awxrestores.awx.ansible.com" deleted (dry run)
customresourcedefinition.apiextensions.k8s.io "awxs.awx.ansible.com" deleted (dry run)
serviceaccount "awx-operator-controller-manager" deleted (dry run)
role.rbac.authorization.k8s.io "awx-operator-awx-manager-role" deleted (dry run)
role.rbac.authorization.k8s.io "awx-operator-leader-election-role" deleted (dry run)
clusterrole.rbac.authorization.k8s.io "awx-operator-metrics-reader" deleted (dry run)
clusterrole.rbac.authorization.k8s.io "awx-operator-proxy-role" deleted (dry run)
rolebinding.rbac.authorization.k8s.io "awx-operator-awx-manager-rolebinding" deleted (dry run)
rolebinding.rbac.authorization.k8s.io "awx-operator-leader-election-rolebinding" deleted (dry run)
clusterrolebinding.rbac.authorization.k8s.io "awx-operator-proxy-rolebinding" deleted (dry run)
configmap "awx-operator-awx-manager-config" deleted (dry run)
service "awx-operator-controller-manager-metrics-service" deleted (dry run)
deployment.apps "awx-operator-controller-manager" deleted (dry run)
awx.awx.ansible.com "awx-test" deleted (dry run)

Only awx resource is beeing deleted

awx.awx.ansible.com "awx-test" deleted (dry run)

Jan

@honza801 honza801 force-pushed the fix-documentation-delete-ns branch from ffd496a to 950f0ca Compare May 23, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant