netbox-community / netbox-chart

A Helm chart for NetBox
https://netbox.readthedocs.io/
Apache License 2.0
261 stars 153 forks source link

Chart contains references to raw.githubusercontent.com which prevents air-grapped installations #409

Closed ErikLundJensen closed 1 week ago

ErikLundJensen commented 1 week ago

Proposed functionality

The values.schema.json contains references to source outside of the chart. When deploying the chart in an air-gapped environment there should be no external dependencies.

Error: values don't meet the specifications of the schema(s) in the following chart(s): netbox: Get "https://raw.githubusercontent.com/bitnami/charts/master/bitnami/postgresql/values.schema.json": dial tcp 185.199.108.133:443: i/o timeout

There are two references in values.schema.json:

"allOf": [
        {
          "$ref": "https://raw.githubusercontent.com/bitnami/charts/master/bitnami/postgresql/values.schema.json"
        },
     "allOf": [
        {
          "$ref": "https://raw.githubusercontent.com/bitnami/charts/master/bitnami/redis/values.schema.json"
        },

Use case

Support air-gapped installation. Improves security as unknown content is not downloaded during installation.

LeoColomb commented 1 week ago

Thanks for filing this issue, @ErikLundJensen. Simply use the option --skip-schema-validation when using Helm install/upgrade command.