Skip to content

Commit

Permalink
Configure ephemeral storage to be a standard resource
Browse files Browse the repository at this point in the history
  • Loading branch information
zafs23 committed Sep 6, 2023
1 parent 9760729 commit eb1543e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jobs/aws/eks-distro/kubernetes-1-28-test-presubmits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ presubmits:
requests:
memory: "32Gi"
cpu: "16"
ephemeralStorage: "50Gi"
ephemeral-storage: "50Gi"
- command:
- sh
args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ resources:
cpu: 16
memory: 32Gi
{{ if eq .releaseBranch "1-28" }}
ephemeralStorage: "50Gi"
ephemeral-storage: "50Gi"
{{ end }}
{{ end }}
2 changes: 1 addition & 1 deletion templater/jobs/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Resources struct {
type ResourceConfig struct {
CPU string `json:"cpu,omitempty"`
Memory string `json:"memory,omitempty"`
EphemeralStorage string `json:"ephemeralStorage,omitempty"`
EphemeralStorage string `json:"ephemeral-storage,omitempty"`
}

type HostPath struct {
Expand Down
2 changes: 1 addition & 1 deletion templater/templates/presubmits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ presubmits:
memory: "{{ .resources.Requests.Memory }}"
cpu: "{{ .resources.Requests.CPU }}"
{{- if .resources.Requests.EphemeralStorage }}
ephemeralStorage: "{{ .resources.Requests.EphemeralStorage }}"
ephemeral-storage: "{{ .resources.Requests.EphemeralStorage }}"
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit eb1543e

Please sign in to comment.