Fix default of helm.releases.<>.apiVersions (#42)

The previous value included only the `<group>.<version>`, e.g. `monitoring.coreos.com/v1`.

But Helm charts actually also check for e.g. `monitoring.coreos.com/v1/ServiceMonitor`. For this reason we need both.
This commit is contained in:
Felix Scheinost 2023-11-10 03:02:55 +01:00 committed by GitHub
parent ea469ff77a
commit fceda84514
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,12 @@ in
If you use `kubernetes.customTypes` to make kubenix aware of CRDs, it will include those as well by default.
'';
type = types.listOf types.str;
default = builtins.map (customType: "${customType.group}/${customType.version}")
default = builtins.concatMap
(customType:
[
"${customType.group}/${customType.version}"
"${customType.group}/${customType.version}/${customType.kind}"
])
(builtins.attrValues globalConfig.kubernetes.customTypes);
};