-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 #2450
- Loading branch information
1 parent
f583d07
commit 7a2bc9c
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