* [Testing] Use gke 1.15.8 to mitigate workload identity flakiness * Upgrade gcloud version * Update image builder image too * Turn on workload identity * Update deploy-cluster.sh * secret sample uses python3 instead * Increase xgboost time limit * Revert files with bad format * Update component and pipelines to use gcloud 279.0.0 * Fix secret sample using python3 * Upgrade frontend integration test image * Rebuild frontend integration test image |
||
|---|---|---|
| .. | ||
| README.md | ||
| volume_snapshot_ops.py | ||
README.md
Simplify the creation of VolumeSnapshot instances
VolumeSnapshotOp: A specified ResourceOp for VolumeSnapshot creation.
NOTE: VolumeSnapshots is an Alpha feature.
You should check if your Kubernetes cluster admin has them enabled.
Arguments:
The following arguments are an extension to the ResourceOp arguments.
If a k8s_resource is passed, then none of the following may be provided.
resource_name: The name of the resource which will be created. This string will be prepended with the workflow name. This may containPipelineParams. (required)pvc: The name of the PVC to be snapshotted. This may containPipelineParams. (optional)snapshot_class: The snapshot storage class to be used. This may containPipelineParams. (optional)volume: An instance of aV1Volume, or its inherited type (e.g.PipelineVolume). This may containPipelineParams. (optional)annotations: Annotations to be patched in theVolumeSnapshot. These may containPipelineParams. (optional)
NOTE: One of the pvc or volume needs to be provided.
Outputs
Additionally to the whole specification of the resource and its name (ResourceOp defaults), a
VolumeSnapshotOp also outputs the restoreSize of the bounded VolumeSnapshot (as
step.outputs["size"]).
This is the minimum size for a PVC created by that snapshot.
Useful attribute
The VolumeSnapshotOp step has a .snapshot attribute which is a V1TypedLocalObjectReference.
This can be passed as a data_source to create a PVC out of that VolumeSnapshot.
The user may otherwise use the step.outputs["name"] as data_source.