diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bebaf195..774be93a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -519,6 +519,26 @@ "GIT_COMMITTER_NAME": "jsonnet-libs-bot" "SSH_KEY": "${{ secrets.DEPLOY_KEY }}" "run": "make libs/k8s" + "karpenter": + "name": "Generate karpenter Jsonnet library and docs" + "needs": + - "build" + - "repos" + "runs-on": "ubuntu-latest" + "steps": + - "uses": "actions/checkout@v2" + - "uses": "actions/download-artifact@v2" + "with": + "name": "docker-artifact" + "path": "artifacts" + - "run": "make load" + - "env": + "DIFF": "true" + "GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}" + "GIT_COMMITTER_EMAIL": "86770550+jsonnet-libs-bot@users.noreply.github.com" + "GIT_COMMITTER_NAME": "jsonnet-libs-bot" + "SSH_KEY": "${{ secrets.DEPLOY_KEY }}" + "run": "make libs/karpenter" "keda": "name": "Generate keda Jsonnet library and docs" "needs": @@ -803,6 +823,7 @@ - "harbor-operator" - "istio" - "k8s" + - "karpenter" - "keda" - "kube-prometheus" - "kubernetes-nmstate" diff --git a/libs/karpenter/config.jsonnet b/libs/karpenter/config.jsonnet new file mode 100644 index 00000000..47e1f331 --- /dev/null +++ b/libs/karpenter/config.jsonnet @@ -0,0 +1,22 @@ +local config = import 'jsonnet/config.jsonnet'; + +local versions = [ + {output: '0.16', version: '0.16.1'}, +]; + +config.new( + name='karpenter', + specs=[ + { + local url = 'https://raw.githubusercontent.com/aws/karpenter/v%s/charts/karpenter/crds' % v.version, + output: v.output, + prefix: '^(aws\\.k8s\\.karpenter|sh\\.karpenter)\\..*', + crds: [ + '%s/karpenter.k8s.aws_awsnodetemplates.yaml' % url, + '%s/karpenter.sh_provisioners.yaml' % url, + ], + localName: 'karpenter', + } + for v in versions + ] +)