1
0
mirror of https://github.com/rancher/types.git synced 2025-08-08 07:47:15 +00:00
Commit Graph

11 Commits

Author SHA1 Message Date
Steven Crespo
84f3a507ba Revert "Merge pull request #1190 from PennyScissors/relv24-fix-var-interpolation"
This reverts commit 0d90dc3a07, reversing
changes made to 98055cdcb6.
2021-01-14 13:40:49 -08:00
Steven Crespo
7d11888f1e Fix env variable interpolation
- Add new type EnvironmentVar to emulate k8s' EnvVar type structure with
an EnvironmentFrom nested type (EnvironmentFrom represents everything
relevant in k8s' EnvVarSource type)
- Modify env mapper to store environmental variables in an array of
EnvironmentVar types to preserve their order (variables of type EnvFromSource
are still kept separate like upstream).
2020-12-25 22:19:49 -08:00
Daishan Peng
728ef5c4b9 sort env key
Problems:
When we created workloads in rancher api, the environment variable
field is converted without a specific order.(we simplely loop in the
map). This will cause K8s workload spec to change constantly if we do a
update, and cause the pod getting recreated.
Solutions:
Sort the map and make sure they always follow the same order in k8s
workload spec.
2018-08-06 10:27:51 -07:00
Darren Shepherd
986f420630 Update ToInternal 2018-07-19 10:40:37 -07:00
kinarashah
c073f3795d setting optional field 2018-05-25 10:09:18 -07:00
kinarashah
49b4428e44 revert rancher/types#448 2018-05-24 15:39:49 -07:00
kinarashah
2e39c2c6c8 change type of optional field
norman expects it to be bool after FromInternal, but k8s type is *bool
2018-05-24 09:58:24 -07:00
kinarashah
5ff6cface0 default targetkey to sourcekey 2018-04-23 17:32:20 -07:00
kinarashah
1dab0d7cc0 set environmentFrom correctly 2018-03-22 08:56:07 -07:00
Alena Prokharchyk
9df8ded442 Workload refactor 2018-02-09 18:27:26 -07:00
Darren Shepherd
e76df53327 Move mappers 2017-11-29 14:37:09 -07:00