1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-02 18:22:33 +00:00
rke/scripts
Jiaqi Luo 4613cce211 Avoid allocating empty strings in the Env slice
Previously, we declared the Env slice with the size of the `c.Services.KubeAPI.ExtraEnv` field, which leads to empty strings at the beginning of the Env slice because we use Golang's append function to add new elements, and Docker is not happy with that.
We fix this issue by declaring the Env variable as an empty slice. We also enhance the `getUniqStringList` function to properly trim leading and trailing spaces in each element and to ignore empty strings. We add unit tests for the `getUniqStringList` function and update the integration tests.
2024-06-04 16:59:55 -07:00
..
boilerplate.go.txt Move rke types from rancher/types to ./types 2020-07-11 23:29:33 -07:00
build Support deploying arm64 k8s and modify cross build script 2019-03-08 14:09:39 -07:00
ci Clean/speed up Drone 2024-01-10 11:09:42 +01:00
create-releasenote.sh Add pre release notes with k8s versions included 2022-02-25 10:23:46 +01:00
dispatch Add support for v1.5 and branch release/v2.8 2023-09-27 14:23:59 +05:30
entry Initial Commit 2017-10-25 17:02:49 -07:00
go-generate Add GitHub Actions workflow for go-generate 2022-01-03 20:40:47 +01:00
integration Avoid allocating empty strings in the Env slice 2024-06-04 16:59:55 -07:00
integration-ci Clean/speed up Drone 2024-01-10 11:09:42 +01:00
package Move to BCI 2023-09-13 10:36:31 +02:00
release Initial Commit 2017-10-25 17:02:49 -07:00
test Move to BCI 2023-09-13 10:36:31 +02:00
validate fix golangci-lint's compatibility issue when using GO 1.19 2022-11-22 12:03:45 -07:00
version Pass tag to dapper container 2018-01-05 12:11:18 -07:00