Skip to content

Instantly share code, notes, and snippets.

@swamibluedata
Last active July 2, 2020 17:49
Show Gist options
  • Save swamibluedata/b770f988f52cc3224838768a13acc5ce to your computer and use it in GitHub Desktop.
Save swamibluedata/b770f988f52cc3224838768a13acc5ce to your computer and use it in GitHub Desktop.
NAMESPACE="hpecp-bootstrap"
PVC_NAME="hpecp-bootstrap-harbor"
# Fetch pv name
PV_NAME=$(kubectl -n $NAMESPACE get pvc/$PVC_NAME -o jsonpath={.spec.volumeName})
# Fetch volume name
VOL_NAME=$(kubectl -n $NAMESPACE get pv/$PV_NAME -o jsonpath='{.spec.csi.volumeHandle}')
# From hcp controller, expand the volume
bdmapr maprcli volume modify -name $VOL_NAME -advisoryquota 5000MB -quota 5000MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment