Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat(operator): add recommended policies feature to operator #1916

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rksharma95
Copy link
Collaborator

@rksharma95 rksharma95 commented Dec 18, 2024

Purpose of PR?:

adds a feature to ship recommended policies with kubearmor operator and user can enable it using the following configuration:

apiVersion: operator.kubearmor.com/v1
kind: KubeArmorConfig
spec:
  ...
  recommendedPolicies:
    enable: true
    matchExpressions:
    - key: namespace
      operator: NotIn/In
      values:
      - "namespaces"
    excludePolicy:
    - "policyA"
    - "policyB"

enabling recommended policies will ensure that all the recommended cluster policies are present on the cluster.

Does this PR introduce a breaking change?
No
If the changes in this PR are manually verified, list down the scenarios covered::

Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Checklist:

  • Bug fix. Fixes #
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Commit has unit tests
  • Commit has integration tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant