Skip to content

Commit

Permalink
feat: Add Karpenter (jsonnet-libs#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishforbes authored Sep 19, 2022
1 parent 19b23f4 commit d42961c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]"
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"run": "make libs/karpenter"
"keda":
"name": "Generate keda Jsonnet library and docs"
"needs":
Expand Down Expand Up @@ -803,6 +823,7 @@
- "harbor-operator"
- "istio"
- "k8s"
- "karpenter"
- "keda"
- "kube-prometheus"
- "kubernetes-nmstate"
Expand Down
22 changes: 22 additions & 0 deletions libs/karpenter/config.jsonnet
Original file line number Diff line number Diff line change
@@ -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
]
)

0 comments on commit d42961c

Please sign in to comment.