Skip to content

CIS cannot be deployed into namespace other than cis-operator-system #236

@ravirajshankarl

Description

@ravirajshankarl

ClusterScanNS = "cis-operator-system"

It looks like the namespace is hardcoded to cis-operator-system. I'm getting an error on creating a new on demand clusterscan

time="2023-12-06T14:31:17Z" level=error msg="error syncing 'cis-1.7-hardened': handler cis-operator: failed to create cis-
operator-system/security-scan-runner-cis-1.7-hardened batch/v1, Kind=Job for cis-operator cis-1.7-hardened: namespaces
 \"cis-operator-system\" not found, failed to create cis-operator-system/cis-s-config-cm-cis-1.7-hardened /v1, 
Kind=ConfigMap for cis-operator cis-1.7-hardened: namespaces \"cis-operator-system\" not found, failed to create cis-
operator-system/cis-s-plugins-cm-cis-1.7-hardened /v1, Kind=ConfigMap for cis-operator cis-1.7-hardened: namespaces 
\"cis-operator-system\" not found, failed to create cis-operator-system/service-rancher-cis-benchmark /v1, Kind=Service for 
cis-operator cis-1.7-hardened: namespaces \"cis-operator-system\" not found, requeuing"

Is it possible to configure the namespace?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions