Skip to content

Commit ed695f2

Browse files
authored
Update Operator SDK to version v0.18.2 and tag golang at 1.14 (#139)
1 parent 9a26550 commit ed695f2

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.evergreen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ functions:
3535
working_dir: mongodb-kubernetes-operator/scripts/ci
3636
command: go run download.go
3737
env:
38-
URL: https://github.com/operator-framework/operator-sdk/releases/download/v0.15.1/operator-sdk-v0.15.1-x86_64-linux-gnu
38+
URL: https://github.com/operator-framework/operator-sdk/releases/download/v0.18.2/operator-sdk-v0.18.2-x86_64-linux-gnu
3939
FILENAME: operator-sdk
4040
DIR: ${workdir}/bin
4141

scripts/dev/dockerfile_generator.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66

77
DockerParameters = Dict[str, Union[bool, str, List[str]]]
88

9+
GOLANG_TAG = "1.14"
10+
911

1012
def operator_params(files_to_add: List[str]) -> DockerParameters:
1113
return {
1214
"builder": True,
13-
"builder_image": "golang",
15+
"builder_image": f"golang:{GOLANG_TAG}",
1416
"base_image": "registry.access.redhat.com/ubi8/ubi-minimal:latest",
1517
"files_to_add": files_to_add,
1618
}
@@ -19,22 +21,22 @@ def operator_params(files_to_add: List[str]) -> DockerParameters:
1921
def test_runner_params(files_to_add: List[str],) -> DockerParameters:
2022
return {
2123
"builder": True,
22-
"builder_image": "golang", # TODO: make this image smaller. There were errors using alpine
24+
"builder_image": f"golang:{GOLANG_TAG}", # TODO: make this image smaller. There were errors using alpine
2325
"base_image": "registry.access.redhat.com/ubi8/ubi-minimal:latest",
2426
"files_to_add": files_to_add,
2527
}
2628

2729

2830
def e2e_params(files_to_add: List[str]) -> DockerParameters:
2931
return {
30-
"base_image": "golang", # TODO: make this image smaller, error: 'exec: "gcc": executable file not found in $PATH' with golang:alpine
32+
"base_image": f"golang:{GOLANG_TAG}", # TODO: make this image smaller, error: 'exec: "gcc": executable file not found in $PATH' with golang:alpine
3133
"files_to_add": files_to_add,
3234
}
3335

3436

3537
def unit_test_params(files_to_add: List[str]) -> DockerParameters:
3638
return {
37-
"base_image": "golang",
39+
"base_image": f"golang:{GOLANG_TAG}",
3840
"files_to_add": files_to_add,
3941
}
4042

scripts/dev/templates/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FROM {{base_image}}
88
{% block packages -%}
99
{% endblock -%}
1010

11-
ENV OPERATOR_SDK_VERSION v0.17.0
11+
ENV OPERATOR_SDK_VERSION v0.18.2
1212
ENV GO111MODULE=on
1313
ENV GOPATH ""
1414

0 commit comments

Comments
 (0)