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: Allow users to output in single or multiple yaml files #88

Open
maheshrayas opened this issue May 16, 2024 · 0 comments
Open

feat: Allow users to output in single or multiple yaml files #88

maheshrayas opened this issue May 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@maheshrayas
Copy link
Contributor

Feature Request: Generate Network Policies as YAML Files

Description
Currently, network policies are output to stdout. It would be beneficial to allow users to generate these network policies as YAML files. This can be done either by generating a single YAML file containing all network policies or by generating individual YAML files for each network policy.

Proposed Solution

  • Option 1: Generate a single YAML file that includes all network policies.
  • Option 2: Generate individual YAML files for each network policy.

Benefits

  • Easier management and deployment of network policies.
  • Simplifies the process of applying network policies using Kubernetes tools.
  • Improves usability and flexibility for users who need to handle network policies as files.

Use Cases

  • Users who prefer to store and version control network policies as files.
  • Automation scripts that require network policies to be in YAML format.
  • Simplifies the integration of network policies into CI/CD pipelines.

Example
Provide a command-line option or configuration setting to specify the output format:

  • --output-yaml=<file>: Outputs all network policies into a single YAML file.
  • --output-dir=<directory>: Outputs each network policy into individual YAML files within the specified directory.

Additional Information

  • Ensure the generated YAML files are compatible with Kubernetes network policy specifications.
  • Provide clear documentation and examples on how to use the new feature.

Request for Feedback

Please provide feedback on the proposed solution and any additional features or improvements that could enhance this functionality.

Priority: Medium

Labels: enhancement, feature request

@maheshrayas maheshrayas added the enhancement New feature or request label May 16, 2024
@xunholy xunholy changed the title Allow users to output in single or multiple yaml files feat: Allow users to output in single or multiple yaml files May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant