UNCLASSIFIED - NO CUI

feat: defender-ready optional deployment

General MR

Summary

This MR adds the capability to configure deployment, with a boolean, to either deploy the existing chart with console (default), or to only deploy the essentials for a defender daemonset. This MR is functionally similar to !320 (closed) but without the upstream dependency. This MR will be followed with an additional MR once additional values for secrets, keys, and/or configmaps are identified to be specified.

If a user were to hypothetically use this option in their twistlock deployment, they would still have to manually deploy the defender daemonset, but would only require twistlock-secrets and twistlock-defender-ds to apply manually, both which can be feteched from the API or UI.

Review

To verify this MR, simply pull the branch (and latest main).

  1. Render the contents of main with helm template twistlock . > main.yaml
  2. Render the contents of this branch with git switch feat/optional-deployment and then helm template twistlock . > branch.yaml
  3. Compare the two files and confirm they have no differences.
  4. Render the contents of this branch after setting defenderOnly: true in values.yaml and then helm template twistlock . > defender.yaml
  5. Obtain a copy of the defender-only deployment, either through the Twistlock UI, or contrib/defenders.sh and connecting to a viable websocket.
  6. Compare the defender.yaml to a valid defender-only deployment. Confirm that the following are properly rendered:
  • Service
  • ServiceAccount
  • ClusterRole
  • ClusterRoleBinding

Linked Issue

issue

Upgrade Notices

N/A

Edited by Jonathan Gatley

Merge request reports

Loading
Loading