Aleksei SviridkinandClaude aaa9c91a8e test(networkpolicy): add comprehensive helm-unittest test suite
Add 20+ unit tests for NetworkPolicy template covering:

Creation conditions:
- Not created by default (enabled: false)
- Created when enabled: true
- Fails with clear error when hostNetwork + NetworkPolicy enabled
- Fails when DLNA + NetworkPolicy enabled

Ingress rules:
- Default allowExternal behavior (no 'from' restriction)
- Restricted access with podSelector/namespaceSelector
- Custom ingress rules application
- Automatic Prometheus ingress when metrics enabled
- Prometheus namespace selector when specified

Egress rules:
- DNS egress with default kube-system/kube-dns
- Custom DNS namespace and pod selector
- AllowAllEgress default behavior
- Restricted egress modes (metadata, in-cluster)
- Custom CIDR blocks
- Custom egress rules application
- DNS disabled scenario

Policy configuration:
- Correct policyTypes (Ingress, Egress)
- Pod selector labels matching chart labels

Tests ensure NetworkPolicy works correctly across all supported
configurations and fails safely when misconfigured.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
aaa9c91a8e · 2025-11-07 19:28:38 +03:00
115 Commits
2024-05-20 17:24:10 -06:00
2024-05-20 17:23:21 -06:00

Jellyfin Helm Charts Repository

This repository contains Helm charts for the jellyfin project.

Repository Structure

Each Helm chart is stored in its own directory. Each chart follows the standard Helm chart structure:

jellyfin-helm/
├── jellyfin/
│   ├── Chart.yaml
│   ├── values.yaml
│   ├── templates/
│   └── ...
├── chart2/
│   ├── Chart.yaml
│   ├── values.yaml
│   ├── templates/
│   └── ...
└── ...
  • Chart.yaml: Contains metadata about the chart (name, version, app version, etc.).
  • values.yaml: Default configuration values for the chart.
  • templates/: The Kubernetes resource templates (YAML files) that Helm uses to deploy the chart.

How to Use the Charts

1. Add this Repository

To use the charts in this repository, first add the repository to Helm:

helm repo add jellyfin https://jellyfin.github.io/jellyfin-helm
helm repo update

2. Install a Chart

To install a chart from this repository, use the following command:

helm install <release-name> jellyfin/<chart-name>

3. Customize Installation

You can customize the installation by passing in custom values via the --set flag or by using a values.yaml file:

helm install <release-name> jellyfin/<chart-name> --set key=value

or

helm install <release-name> jellyfin/<chart-name> -f custom-values.yaml

Contributing

Feel free to contribute to this repository by:

  • Submitting new charts.
  • Fixing bugs or issues.
  • Improving documentation.

To contribute, fork this repository, create a new branch, and submit a pull request with your changes.

License

This repository is licensed under the MIT License. See the LICENSE file for more details.

S
Description
Kubernetes Helm Chart for Jellyfin
Readme GPL-2.0
541 KiB
0 Stars 1 Watchers 0 Forks
Languages
Smarty 100%