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
Bug 1871736: Fixes clone for block mode PVCs #6630
Conversation
@a2batic: This pull request references Bugzilla bug 1871736, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @cloudbehl @gnehapk |
We typically disable the action in the action menu instead of letting users open the dialog and immediately see an error. |
@a2batic: This pull request references Bugzilla bug 1871736, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
@a2batic: This pull request references Bugzilla bug 1871736, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
0f6aefa
to
8bdfde4
Compare
@a2batic: This pull request references Bugzilla bug 1871736, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -54,6 +43,9 @@ const ClonePVCModal = withHandlePromise((props: ClonePVCModalProps) => { | |||
const [clonePVCName, setClonePVCName] = React.useState(`${pvcName}-clone`); | |||
const [requestedSize, setRequestedSize] = React.useState(defaultSize[0] || ''); | |||
const [requestedUnit, setRequestedUnit] = React.useState(defaultSize[1] || 'Gi'); | |||
const accessModes = accessModeRadios.find( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accessModes
-> accessMode
@@ -164,7 +157,7 @@ const ClonePVCModal = withHandlePromise((props: ClonePVCModalProps) => { | |||
<div> | |||
<div> | |||
<p className="co-clone-pvc-modal__pvc-details">Access Mode</p> | |||
<p>{accessModeLabels[resource.spec.accessModes]}</p> | |||
<p>{accessModes.title}</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happen when accessMode is undefined i.e. the search accessMode is not present?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack, I have handled it
@a2batic: This pull request references Bugzilla bug 1871736, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @spadgett |
/test e2e-gcp-console |
/test e2e-gcp-console |
1 similar comment
/test e2e-gcp-console |
@@ -350,6 +354,8 @@ const kebabFactory: KebabFactory = { | |||
}), | |||
RestorePVC: (kind, obj) => ({ | |||
label: 'Restore as new PVC', | |||
isDisabled: obj?.status?.phase !== 'Ready', | |||
tooltip: obj?.status?.phase !== 'Ready' ? 'Snapshot is not Ready' : '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tooltip: obj?.status?.phase !== 'Ready' ? 'Snapshot is not Ready' : '', | |
tooltip: obj?.status?.phase !== 'Ready' ? 'Volume Snapshot is not Ready' : '', |
href: `${resourceObjPath(obj, kind.crd ? referenceForModel(kind) : kind.kind)}/${ | ||
VolumeSnapshotModel.plural | ||
}/~new/form`, | ||
accessReview: asAccessReview(kind, obj, 'create'), | ||
}), | ||
ClonePVC: (kind, obj) => ({ | ||
label: 'Clone PVC', | ||
isDisabled: obj?.status?.phase !== 'Bound', | ||
tooltip: obj?.status?.phase !== 'Bound' ? 'PVC is not bound' : '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tooltip: obj?.status?.phase !== 'Bound' ? 'PVC is not bound' : '', | |
tooltip: obj?.status?.phase !== 'Bound' ? 'PVC is not Bound' : '', |
@@ -334,13 +334,17 @@ const kebabFactory: KebabFactory = { | |||
}), | |||
PVCSnapshot: (kind, obj) => ({ | |||
label: 'Create Snapshot', | |||
isDisabled: obj?.status?.phase !== 'Bound', | |||
tooltip: obj?.status?.phase !== 'Bound' ? 'PVC is not bound' : '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tooltip: obj?.status?.phase !== 'Bound' ? 'PVC is not bound' : '', | |
tooltip: obj?.status?.phase !== 'Bound' ? 'PVC is not Bound' : '', |
@a2batic: This pull request references Bugzilla bug 1871736, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@@ -75,7 +67,7 @@ const ClonePVCModal = withHandlePromise((props: ClonePVCModalProps) => { | |||
const submit = (event: React.FormEvent<EventTarget>) => { | |||
event.preventDefault(); | |||
|
|||
const pvcCloneObj = { | |||
const pvcCloneObj: PersistentVolumeClaimKind = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -200,6 +200,8 @@ const CreateSnapshotForm = withHandlePromise<SnapshotResourceProps>((props) => { | |||
}); | |||
}; | |||
|
|||
const pvcFilter = (pvc: PersistentVolumeClaimKind) => pvc?.status?.phase === 'Bound'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const pvcFilter = (pvc: PersistentVolumeClaimKind) => pvc?.status?.phase === 'Bound'; | |
const isBound = (pvc: PersistentVolumeClaimKind) => pvc?.status?.phase === 'Bound'; |
@@ -231,6 +225,7 @@ const CreateSnapshotForm = withHandlePromise<SnapshotResourceProps>((props) => { | |||
namespace={namespace} | |||
onChange={handlePVCName} | |||
selectedKey={pvcName} | |||
dataFilter={pvcFilter} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Signed-off-by: Kanika Murarka <kmurarka@redhat.com>
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a2batic, cloudbehl, spadgett 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 |
@a2batic: All pull requests linked via external trackers have merged: Bugzilla bug 1871736 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
volumeMode
while creating cloneSigned-off-by: Kanika Murarka kmurarka@redhat.com