1
0
mirror of https://github.com/rancher/types.git synced 2025-06-23 04:07:03 +00:00

Use secretName instead of secretId

Using reference to id always returns namespace:id, but it doesn't
work while using project scoped secrets; thus using name similar
to secrets used as environment variables from source
This commit is contained in:
kinarashah 2018-08-06 15:11:32 -07:00 committed by Craig Jellick
parent 728ef5c4b9
commit ffd8f7ed64

View File

@ -729,7 +729,6 @@ func volumeTypes(schemas *types.Schemas) *types.Schemas {
ClaimName string `norman:"type=reference[persistentVolumeClaim]"`
}{}).
MustImport(&Version, v1.SecretVolumeSource{}, struct {
SecretName string `norman:"type=reference[secret]"`
}{}).
MustImport(&Version, v1.VolumeMount{}, struct {
MountPath string `json:"mountPath" norman:"required"`