forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow omitting metadata in volumeclaimtemplate
Workspaces can be backed by a PVC that is created from a user provied template, e.g. workspaces: - name: ws volumeClaimTemplate: metadata: name: ws-pvc spec: accessModes: ["ReadWriteOnce"] resources: requests: storage: 1Gi but this might fail if the user did not provide a `metadata.name` on the template, since the PVC name would be `-<ws-name>-<run-name>` and names starting with a `-` is not allowed for PVCs. This commits omit the first `-` in the PVC name, if the user did not provide a name or metadata part of the volumeclaimtemplate. I also added license banners to the two pvc-related go files. Fixes tektoncd#2450
- Loading branch information
1 parent
1346656
commit 9307b1a
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters