forked from jsonnet-libs/k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Karpenter (jsonnet-libs#212)
- Loading branch information
1 parent
19b23f4
commit d42961c
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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": | ||
|
@@ -803,6 +823,7 @@ | |
- "harbor-operator" | ||
- "istio" | ||
- "k8s" | ||
- "karpenter" | ||
- "keda" | ||
- "kube-prometheus" | ||
- "kubernetes-nmstate" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
] | ||
) |