Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OADP-4379: read ephemeral-storage in code #1477

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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("")

Comment on lines -45 to -47
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shubham-pampattiwar can you review if this is ok? you recently modified this in here

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah we need those

Copy link
Contributor Author

@mateusoliveira43 mateusoliveira43 Aug 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed usage in my changes

// 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