Skip to content

Instantly share code, notes, and snippets.

View felixscheinost's full-sized avatar

Felix Scheinost felixscheinost

View GitHub Profile
@felixscheinost
felixscheinost / kubenix-generated-definitions-for-crds.nix
Created November 8, 2023 14:45
This provides a way have kubenix recognize custom CRD form e.g. Helm charts including those CRDs.
{ kubenix, pkgs, lib, kubenixPath, config, symKubeLib, ... }:
let
# Evaluate the module which contains CRDs
evaluatedObjects = (kubenix.evalModules {
module = { kubenix, ... }: {
imports = with kubenix.modules; [
k8s
helm
# Could be e.g. a Helm chart that incldues CRDs (Don't forget `includeCRDs = true`)
<YOUR MODULES WITH CRDs here>