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:
parent
728ef5c4b9
commit
ffd8f7ed64
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user