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

UPSTREAM: <carry>: change config file location and restore perFSGroup to Quantity #19773

Merged

Conversation

sjenning
Copy link
Contributor

@sjenning sjenning commented May 18, 2018

Follow on to #19533

  • Transforms perFSGroupInGB back to perFSGroup with a Quantity value.
  • Changes the config file location to /etc/origin/node/volume-config.yaml so that it can be a second key to the existing node-config-compute configmap and everything will Just Work (tm).

xref https://bugzilla.redhat.com/show_bug.cgi?id=1579305

@derekwaynecarr @smarterclayton @jupierce

@sjenning sjenning added the kind/bug Categorizes issue or PR as related to a bug. label May 18, 2018
@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 18, 2018
Copy link
Member

@derekwaynecarr derekwaynecarr left a comment

Choose a reason for hiding this comment

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

one nit, then lgtm

@@ -73,6 +74,11 @@ func PatchVolumePluginsForLocalQuota(rootdir string, plugins *[]volume.VolumePlu
return fmt.Errorf("expected kind \"%s\" and apiVersion \"%s\" for volume config file", volumeConfigKind, volumeConfigAPIVersion)
}

quota, err := resource.ParseQuantity(volumeConfig.LocalQuota.PerFSGroup)
if err != nil {
return fmt.Errorf("enable to parse \"%s\" as a quantity", volumeConfig.LocalQuota.PerFSGroup)
Copy link
Member

Choose a reason for hiding this comment

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

nit: unable

@sjenning sjenning force-pushed the volume-config-resource branch from 4875fb1 to 12f2dfb Compare May 18, 2018 20:07
@derekwaynecarr
Copy link
Member

/approve
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 18, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: derekwaynecarr, sjenning

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 18, 2018
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 4d4766c into openshift:master May 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants