1
0
mirror of https://github.com/rancher/types.git synced 2025-04-27 18:25:05 +00:00
Commit Graph

63 Commits

Author SHA1 Message Date
Alena Prokharchyk
ee8822d1b9 Do not drop source port 2019-12-12 16:04:33 -08:00
Alena Prokharchyk
9644e7bb84 Use default mapper for hostport conversion 2019-11-07 15:35:40 -08:00
Alena Prokharchyk
64fd6becd1 Respect natively set host port 2019-11-05 14:05:13 -08:00
kinarashah
5fe258df56 correct path for credential annotation field name 2019-09-17 09:57:05 -07:00
kinarashah
2e67c63d1b set name annotation if name is empty
Issue: setting name doesn't work, because annotation_field mapper
overrides the name with field.cattle.io/name value
2019-09-16 18:03:29 -07:00
kinarashah
86c01d27a8 add displayName to cloud credential and mapper changes for it 2019-09-11 15:16:59 -07:00
orangedeng
5694548201 Add HPA type to schema 2019-05-31 07:57:20 -07:00
kinarashah
b5f3a23193 credential type 2019-01-24 11:57:32 -08:00
Nathan Jenan
400a07bd51 Pluggable driver types
This change gives rancher the ability to accept pluggable kontainer engine drivers
by adding the necessary types and removing the driver specific types.

Issue:
rancher/rancher#12698
2018-11-30 14:09:21 -07:00
Nathan Jenan
7bd01e2984 Revert "Pluggable driver types"
This reverts commit 216385b63e.
2018-11-27 17:53:52 -07:00
Nathan Jenan
216385b63e Pluggable driver types
This change gives rancher the ability to accept pluggable kontainer engine drivers
by adding the necessary types and removing the driver specific types.

Issue:
rancher/rancher#12698
2018-11-27 10:50:11 -07:00
Alena Prokharchyk
68f9e84e6a Revert security context mapper 2018-10-01 21:03:25 -07:00
Alena Prokharchyk
5c4cd002e8 Only reset affinity when corresponding keys are in the request 2018-09-28 10:27:48 -07:00
gitlawr
6a993793e3 fix namespace_reference mapper on update handler 2018-09-14 15:25:22 -07:00
Daishan Peng
6188d36f7d fix regresssion for scheduling
https://github.com/rancher/rancher/issues/15379.
Fix the regression introduced by https://github.com/rancher/types/pull/535. We accidently remove the whitespace between in and notin.
2018-09-06 09:59:36 -07:00
gitlawr
36f2de76ce update pipeline types 2018-08-23 20:25:06 -07:00
Darren Shepherd
d6d559ea16 Add notready state to containers 2018-08-13 10:04:40 -07: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
Daishan Peng
0968d09296 fix regular expression
https://github.com/rancher/rancher/issues/14939.
Problems:
we are not using lazy match to match the group (!=|=) so that "foo !=
bar` can be parsed wrongly as (foo !) (=) (bar).
Solutions:
Use lazy match to match as less as possible the characters in the first
group. Also improved the whitespace matches.
2018-08-04 10:51:38 -07:00
Yuki Nishiwaki
2d275102b4 Check data is nil before executing mapping in os_info
This os_info mapper is used for v1.NodeStatus but
there is some case that mapper is evaluated when
v1.NodeStatus is nil.  For example, when the user try
to create v3.Node by calling API(POST /v3/nodes).

So we should check data is nil or not before executing
mapper in order to prevent from trying to use data(nil)
as map inside OSInfo.FromInternal
2018-08-02 21:20:54 -07:00
Darren Shepherd
7787d68450 Assign state on init containers too 2018-07-19 10:40:37 -07:00
Darren Shepherd
30701b30c3 Refactor for IsEmpty 2018-07-19 10:40:37 -07:00
Darren Shepherd
986f420630 Update ToInternal 2018-07-19 10:40:37 -07:00
Daishan Peng
1da9edd2cc fix capability mapping 2018-06-25 17:03:43 -07:00
Daishan Peng
e2ad869a98 only set nodeAffinity to null 2018-06-20 15:59:11 -07:00
Daishan Peng
f092c91a56 fix scheduling mapper 2018-06-20 13:18:28 -07:00
Alena Prokharchyk
01dd042b75 Remove capAdd/capDrop if empty 2018-06-11 11:24:52 -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
Darren Shepherd
f781b5c3c4 Add transitioning field to container 2018-04-30 15:33:04 -07:00
Daishan Peng
7d8da4b6ef convert default storageCLassName to empty 2018-04-30 14:35:52 -07:00
Darren Shepherd
6796a6867b Show state on containers and fix jobs 2018-04-27 09:59:30 -07:00
kinarashah
5ff6cface0 default targetkey to sourcekey 2018-04-23 17:32:20 -07:00
Alena Prokharchyk
52df6c217a Liveness probe mapper for container 2018-04-19 22:03:11 -07:00
Alena Prokharchyk
02e9a999fc Read external ip from annotation 2018-04-10 16:15:31 -07:00
Alena Prokharchyk
a1a28ef8e8 ExternalIP to node 2018-04-03 14:24:31 -07:00
Darren Shepherd
0d8a522a36 Cluster status 2018-03-31 03:41:42 -07:00
Darren Shepherd
28317983c8 More volume fixes and state changes 2018-03-23 16:30:07 -07:00
kinarashah
1dab0d7cc0 set environmentFrom correctly 2018-03-22 08:56:07 -07:00
Darren Shepherd
3edfdf9ae3 Remove pivotmapper 2018-03-20 14:18:54 -07:00
Alena Prokharchyk
b050266a9e
Merge pull request #282 from alena1108/fix
Workload endpoints: bug fix for publicEndpoints when annotation is nil
2018-03-05 12:19:32 -08:00
Alena Prokharchyk
4ccd2f14eb Workload endpoints: bug fix for publicEndpoints when annotation is nil 2018-03-05 12:13:02 -08:00
Alena Prokharchyk
93998548a1 Type to containerPort 2018-03-03 21:32:40 -07:00
Alena Prokharchyk
b697d5b08a Workload mapper nil pointer fix 2018-03-01 21:34:34 -08:00
Alena Prokharchyk
ce5bd28bf3 Mapper for workload annotations 2018-03-01 18:35:04 -08:00
Alena Prokharchyk
773c8f572a Set hostPort for port kind=hostPort 2018-03-01 10:46:25 -08:00
Alena Prokharchyk
dcfe466e8c Revert "Container ports mapper fix: append as a slice"
This reverts commit ff2b8b9f92.
2018-02-27 22:52:29 -07:00
Alena Prokharchyk
ff2b8b9f92 Container ports mapper fix: append as a slice 2018-02-26 23:27:45 -07:00
Darren Shepherd
d8f41b6586 Container ports 2018-02-14 15:56:45 -07:00