-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve gpu-provisioner based on sigs.k8s.io/karpenter
1. upgrade CRD: Machine to NodeClaim 2. update aws/karpenter-core to sigs.k8s.io/karpenter 3. add webhook for v1beta1.NodeClaim and v1.NodeClaim conversion 4. add instance garbage collection controller for cleanuping leaked cloud provider instance and node. 5. remove unused files like sku, pricing, instancetype, etc. 6. improve nodeclaim launch error cases: if the return error is InvalidParameterError, LocationRestrictionError or InsufficientCapacityError, [nodeclaim launch] controller will publish a warning event, then delete the nodeclaim because of these errors are not recoverable, so it is not necessary to retry create agentpool. 7. add unit test cases Signed-off-by: rambohe-ch <[email protected]>
- Loading branch information
1 parent
46e16e0
commit 3304c0b
Showing
2,750 changed files
with
245,484 additions
and
391,909 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
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 |
---|---|---|
|
@@ -19,3 +19,4 @@ _output/ | |
/hack/tools/bin/ | ||
/coverage.txt | ||
/coverage.out | ||
gpu-provisioner-values.yaml |
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 |
---|---|---|
@@ -1,20 +1,21 @@ | ||
run: | ||
deadline: 10m | ||
timeout: 15m | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- deadcode | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- nakedret | ||
- nilerr | ||
- prealloc | ||
- structcheck | ||
- typecheck | ||
- unused | ||
- varcheck | ||
- gci | ||
- gofmt | ||
- goimports | ||
- staticcheck | ||
# Run with --fast=false for more extensive checks | ||
fast: true |
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
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
This file was deleted.
Oops, something went wrong.
825 changes: 825 additions & 0 deletions
825
charts/gpu-provisioner/crds/karpenter.sh_nodeclaims.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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,5 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "gpu-provisioner.fullname" . }}-cert | ||
namespace: {{ .Release.Namespace }} |
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,30 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "gpu-provisioner.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "gpu-provisioner.labels" . | nindent 4 }} | ||
{{- if or .Values.additionalAnnotations .Values.service.annotations }} | ||
annotations: | ||
{{- with .Values.additionalAnnotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.service.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- name: http-metrics | ||
port: {{ .Values.controller.metrics.port }} | ||
protocol: TCP | ||
- name: webhook | ||
port: {{ .Values.controller.webhook.port }} | ||
protocol: TCP | ||
- name: webhook-metrics | ||
port: {{ .Values.controller.webhookMetrics.port }} | ||
protocol: TCP | ||
selector: | ||
{{- include "gpu-provisioner.selectorLabels" . | nindent 4 }} |
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
Oops, something went wrong.