Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] Many objects are deployed in default namespace #2170

Open
collivier opened this issue Oct 22, 2024 · 0 comments
Open

[BUG] Many objects are deployed in default namespace #2170

collivier opened this issue Oct 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@collivier
Copy link
Collaborator

Describe the bug

They are many KubectlClient::Apply.file which should have been changed when switching to cnf-default
See #2056 et al.

That forbids enforcing Pod Security Standard restricted #2021
(please note a few are fixed in this ongoing PR)

To Reproduce

$ grep -r KubectlClient::Apply |grep -v namespace
tasks/platform/resilience.cr:      KubectlClient::Apply.file("reboot_daemon_pod.yml")
tasks/opa_setup.cr:  KubectlClient::Apply.file("constraint_template.yml")
tasks/opa_setup.cr:  KubectlClient::Apply.file("enforce-image-tag.yml")
tasks/utils/cnf_manager.cr:        KubectlClient::Apply.file("#{destination_cnf_dir}/#{manifest_directory}")
tasks/utils/cnf_manager.cr:    KubectlClient::Apply.file(configmap_path)
tasks/utils/cnf_manager.cr:      KubectlClient::Apply.file("#{destination_cnf_dir}/#{manifest_directory}", kubeconfig: kubeconfig)
tasks/utils/mysql.cr:    KubectlClient::Apply.file("https://raw.githubusercontent.com/mysql/mysql-operator/trunk/samples/sample-cluster.yaml")
tasks/chaos_mesh_setup.cr:  # KubectlClient::Apply.file("https://raw.githubusercontent.com/chaos-mesh/chaos-mesh/#{CHAOS_MESH_VERSION}/manifests/crd.yaml")
tasks/workload/reliability.cr:        KubectlClient::Apply.file(rbac_path)
tasks/workload/reliability.cr:        KubectlClient::Apply.file("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml")
tasks/workload/reliability.cr:        KubectlClient::Apply.file(rbac_path)
tasks/workload/reliability.cr:        KubectlClient::Apply.file("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml")
tasks/workload/reliability.cr:        KubectlClient::Apply.file(rbac_path)
tasks/workload/reliability.cr:        KubectlClient::Apply.file("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml")
tasks/workload/reliability.cr:        KubectlClient::Apply.file(rbac_path)
tasks/workload/reliability.cr:        KubectlClient::Apply.file("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml")
tasks/workload/reliability.cr:        KubectlClient::Apply.file(rbac_path)
tasks/workload/reliability.cr:        KubectlClient::Apply.file("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml")
tasks/workload/reliability.cr:        KubectlClient::Apply.file(rbac_path)
tasks/workload/reliability.cr:        KubectlClient::Apply.file("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml")
tasks/workload/reliability.cr:        KubectlClient::Apply.file(rbac_path)
tasks/workload/reliability.cr:        KubectlClient::Apply.file("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml")
tasks/workload/reliability.cr:          KubectlClient::Apply.file(rbac_path)
tasks/workload/reliability.cr:          KubectlClient::Apply.file("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml")
tasks/workload/configuration.cr:    KubectlClient::Apply.file(test_config_map_filename)
tasks/workload/configuration.cr:    # if KubectlClient::Apply.file(test_config_map_filename) == 0
tasks/workload/configuration.cr:    apply_result = KubectlClient::Apply.file(test_config_map_filename)
tasks/workload/state.cr:            KubectlClient::Apply.file("#{LitmusManager::MODIFIED_LITMUS_FILE}")
tasks/workload/state.cr:          KubectlClient::Apply.file(rbac_path)
tasks/workload/state.cr:          KubectlClient::Apply.file("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml")
tasks/workload/observability.cr:                KubectlClient::Apply.file(configmap_path)
tasks/litmus_setup.cr:  KubectlClient::Apply.file(LitmusManager::LITMUS_OPERATOR)
@collivier collivier added the bug Something isn't working label Oct 22, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant