mirror of
https://github.com/rancher/types.git
synced 2025-08-31 04:40:56 +00:00
revert rancher/types#448
This commit is contained in:
committed by
Alena Prokharchyk
parent
a1b30ae99e
commit
49b4428e44
@@ -44,7 +44,7 @@ func (e EnvironmentMapper) FromInternal(data map[string]interface{}) {
|
||||
"source": "configMap",
|
||||
"sourceName": envVar.ValueFrom.ConfigMapKeyRef.Name,
|
||||
"sourceKey": envVar.ValueFrom.ConfigMapKeyRef.Key,
|
||||
"optional": *envVar.ValueFrom.ConfigMapKeyRef.Optional,
|
||||
"optional": envVar.ValueFrom.ConfigMapKeyRef.Optional,
|
||||
"targetKey": envVar.Name,
|
||||
})
|
||||
}
|
||||
@@ -53,7 +53,7 @@ func (e EnvironmentMapper) FromInternal(data map[string]interface{}) {
|
||||
"source": "secret",
|
||||
"sourceName": envVar.ValueFrom.SecretKeyRef.Name,
|
||||
"sourceKey": envVar.ValueFrom.SecretKeyRef.Key,
|
||||
"optional": *envVar.ValueFrom.SecretKeyRef.Optional,
|
||||
"optional": envVar.ValueFrom.SecretKeyRef.Optional,
|
||||
"targetKey": envVar.Name,
|
||||
})
|
||||
}
|
||||
@@ -67,7 +67,7 @@ func (e EnvironmentMapper) FromInternal(data map[string]interface{}) {
|
||||
"source": "secret",
|
||||
"sourceName": envVar.SecretRef.Name,
|
||||
"prefix": envVar.Prefix,
|
||||
"optional": *envVar.SecretRef.Optional,
|
||||
"optional": envVar.SecretRef.Optional,
|
||||
"type": "/v3/project/schemas/environmentFrom",
|
||||
})
|
||||
}
|
||||
@@ -76,7 +76,7 @@ func (e EnvironmentMapper) FromInternal(data map[string]interface{}) {
|
||||
"source": "configMap",
|
||||
"sourceName": envVar.ConfigMapRef.Name,
|
||||
"prefix": envVar.Prefix,
|
||||
"optional": *envVar.ConfigMapRef.Optional,
|
||||
"optional": envVar.ConfigMapRef.Optional,
|
||||
"type": "/v3/project/schemas/environmentFrom",
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user