Skip to content

Feature Request / Implementation of a variable in TridentBackendConfig to push extra custom client IPs with autoExportPolicy. #1048

@nikos445

Description

@nikos445

Describe the solution you'd like
Improvement of autoExportPolicy to be able to add custom IPs/networks to export policies.
This feature will fix the "problematic" autoExportPolicy when a Kubernetes cluster is behind an SNAT / Proxy and Node IPs are not relevant to traffic reaching the SVM.

Describe actions you've considered

  • Adds a custom variable for client IPs / Networks (CustomExportClientIPs) to TridentBackendConfig.

  • autoExportPolicy should be enabled to create/update/delete the CustomExportClientIPs to SVM together with nodeIPs found from autoExportPolicy functionality.

  • Add missing code for ReconcileVolumeNodeAccess , for volume policies when backend updates

  • Add extra variable enableCustomExportPolicySettings for enable/disable custom export policy settings
    (currently enables/disables only CustomExportClientIPs but may create more in future)

  • Adds function for ValidateIPs (like ValidateCIDRs)

  • autoExportPolicy should filter CustomExportClientIPs according to AutoExportCIDRs

New TridentBackendConfig Variables
  enableCustomExportPolicySettings: true
  customExportClientIPs:
  - 10.140.52.89
  autoExportPolicy: true

Additional context
I am going to create a pull request with an implementation for it, but I may need support to make this work perfect and follow trident standards - if needed + testing.

PR: #1051

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