Skip to content

Commit

Permalink
fix: read ephemeral-storage in code (openshift#1477)
Browse files Browse the repository at this point in the history
Signed-off-by: Mateus Oliveira <[email protected]>
  • Loading branch information
mateusoliveira43 authored Aug 14, 2024
1 parent b8fb9dd commit b51ce21
Show file tree
Hide file tree
Showing 10 changed files with 1,919 additions and 7,166 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/oadp_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,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 b51ce21

Please sign in to comment.