Skip to content

Commit

Permalink
fix: read ephemeral-storage in code (#1477) (#1491)
Browse files Browse the repository at this point in the history
Signed-off-by: Mateus Oliveira <[email protected]>
(cherry picked from commit b51ce21)
  • Loading branch information
mateusoliveira43 authored Aug 15, 2024
1 parent f0ee960 commit 59157e8
Show file tree
Hide file tree
Showing 10 changed files with 1,923 additions and 7,169 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/oadp_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ type PodConfig struct {
// tolerations defines the list of tolerations to be applied to daemonset
// +optional
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
// resourceAllocations defines the CPU and Memory resource allocations for the Pod
// resourceAllocations defines the CPU, Memory and ephemeral-storage resource allocations for the Pod
// +optional
// +nullable
ResourceAllocations corev1.ResourceRequirements `json:"resourceAllocations,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ spec:
description: nodeSelector defines the nodeSelector to be supplied to podSpec
type: object
resourceAllocations:
description: resourceAllocations defines the CPU and Memory resource allocations for the Pod
description: resourceAllocations defines the CPU, Memory and ephemeral-storage resource allocations for the Pod
nullable: true
properties:
claims:
Expand Down Expand Up @@ -546,7 +546,7 @@ spec:
description: nodeSelector defines the nodeSelector to be supplied to podSpec
type: object
resourceAllocations:
description: resourceAllocations defines the CPU and Memory resource allocations for the Pod
description: resourceAllocations defines the CPU, Memory and ephemeral-storage resource allocations for the Pod
nullable: true
properties:
claims:
Expand Down Expand Up @@ -980,7 +980,7 @@ spec:
description: nodeSelector defines the nodeSelector to be supplied to podSpec
type: object
resourceAllocations:
description: resourceAllocations defines the CPU and Memory resource allocations for the Pod
description: resourceAllocations defines the CPU, Memory and ephemeral-storage resource allocations for the Pod
nullable: true
properties:
claims:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ spec:
description: nodeSelector defines the nodeSelector to be supplied to podSpec
type: object
resourceAllocations:
description: resourceAllocations defines the CPU and Memory resource allocations for the Pod
description: resourceAllocations defines the CPU, Memory and ephemeral-storage resource allocations for the Pod
nullable: true
properties:
claims:
Expand Down Expand Up @@ -546,7 +546,7 @@ spec:
description: nodeSelector defines the nodeSelector to be supplied to podSpec
type: object
resourceAllocations:
description: resourceAllocations defines the CPU and Memory resource allocations for the Pod
description: resourceAllocations defines the CPU, Memory and ephemeral-storage resource allocations for the Pod
nullable: true
properties:
claims:
Expand Down Expand Up @@ -980,7 +980,7 @@ spec:
description: nodeSelector defines the nodeSelector to be supplied to podSpec
type: object
resourceAllocations:
description: resourceAllocations defines the CPU and Memory resource allocations for the Pod
description: resourceAllocations defines the CPU, Memory and ephemeral-storage resource allocations for the Pod
nullable: true
properties:
claims:
Expand Down
3 changes: 0 additions & 3 deletions controllers/nodeagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ const (
)

var (
fsPvHostPath = getFsPvHostPath("")
pluginsHostPath = getPluginsHostPath("")

// v1.MountPropagationHostToContainer is a const. Const cannot be pointed to.
// we need to declare mountPropagationToHostContainer so that we have an address to point to
// for ds.Spec.Template.Spec.Volumes[].Containers[].VolumeMounts[].MountPropagation
Expand Down
Loading

0 comments on commit 59157e8

Please sign in to comment.