Skip to content

Commit a2c5bc0

Browse files
authored
Merge pull request #287 from kbst/update-cli-versions
Update CLI versions esp. Terraform after upstream issue workaround
2 parents cf51f20 + 29c4ea6 commit a2c5bc0

File tree

3 files changed

+83
-72
lines changed

3 files changed

+83
-72
lines changed

common/configuration/tests/non_string_values/test_object.tf

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,5 @@
1-
variable "test_configuration" {
2-
type = map(object({
3-
test_string = optional(string)
4-
test_list_string = optional(list(string))
5-
test_map_string = optional(map(string))
6-
test_list_object = optional(list(object({
7-
key = string
8-
})))
9-
test_object = optional(object({
10-
key = string
11-
}))
12-
}))
13-
description = "Map with per workspace module configuration."
14-
default = {
15-
apps = {
16-
test_string = "from_apps"
17-
18-
test_list_string = [
19-
"from_apps"
20-
]
21-
22-
test_map_string = {
23-
key = "from_apps"
24-
}
25-
26-
test_list_object = [{
27-
key = "from_apps"
28-
}]
29-
30-
test_object = {
31-
key = "from_apps"
32-
}
33-
}
34-
35-
ops = {
36-
test_string = "from_ops"
37-
38-
test_list_string = [
39-
"from_ops"
40-
]
41-
42-
test_map_string = {
43-
key = "from_ops"
44-
}
45-
46-
test_list_object = [{
47-
key = "from_ops"
48-
}]
49-
50-
test_object = {
51-
key = "from_ops"
52-
}
53-
}
54-
55-
loc = {
56-
test_list_object = [{
57-
key = "from_loc"
58-
}]
59-
}
60-
}
61-
}
62-
631
module "mut_object" {
64-
source = "../.."
65-
66-
configuration = var.test_configuration
67-
68-
base_key = "apps"
2+
source = "./wrapper"
693
}
704

715
resource "test_assertions" "overwrite_object" {
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
terraform {
2+
experiments = [module_variable_optional_attrs]
3+
}
4+
5+
variable "test_configuration" {
6+
type = map(object({
7+
test_string = optional(string)
8+
test_list_string = optional(list(string))
9+
test_map_string = optional(map(string))
10+
test_list_object = optional(list(object({
11+
key = string
12+
})))
13+
test_object = optional(object({
14+
key = string
15+
}))
16+
}))
17+
description = "Map with per workspace module configuration."
18+
default = {
19+
apps = {
20+
test_string = "from_apps"
21+
22+
test_list_string = [
23+
"from_apps"
24+
]
25+
26+
test_map_string = {
27+
key = "from_apps"
28+
}
29+
30+
test_list_object = [{
31+
key = "from_apps"
32+
}]
33+
34+
test_object = {
35+
key = "from_apps"
36+
}
37+
}
38+
39+
ops = {
40+
test_string = "from_ops"
41+
42+
test_list_string = [
43+
"from_ops"
44+
]
45+
46+
test_map_string = {
47+
key = "from_ops"
48+
}
49+
50+
test_list_object = [{
51+
key = "from_ops"
52+
}]
53+
54+
test_object = {
55+
key = "from_ops"
56+
}
57+
}
58+
59+
loc = {
60+
test_list_object = [{
61+
key = "from_loc"
62+
}]
63+
}
64+
}
65+
}
66+
67+
module "mut_object" {
68+
source = "../../.."
69+
70+
configuration = var.test_configuration
71+
72+
base_key = "apps"
73+
}
74+
75+
output "merged" {
76+
value = module.mut_object.merged
77+
}

oci/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ RUN mkdir -p /opt/bin
2424
FROM builder AS common-builder
2525

2626
# https://github.com/kubernetes/kubernetes/releases
27-
ARG KUBECTL_VERSION=v1.23.8
27+
ARG KUBECTL_VERSION=v1.24.3
2828

2929
# https://github.com/kubernetes-sigs/kustomize/releases
3030
ARG KUSTOMIZE_VERSION=v4.5.5
3131

3232
# https://www.terraform.io/downloads.html
33-
ARG TERRAFORM_VERSION=1.1.9
33+
ARG TERRAFORM_VERSION=1.2.5
3434

3535
RUN echo "KUBECTL_VERSION: ${KUBECTL_VERSION}" \
3636
&& curl -Lo /opt/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl \
@@ -58,7 +58,7 @@ COPY oci/entrypoint oci/entrypoint_user /opt/bin/
5858
FROM builder AS aws-builder
5959

6060
# https://github.com/aws/aws-cli/blob/v2/CHANGELOG.rst
61-
ARG AWS_CLI_VERSION=2.7.10
61+
ARG AWS_CLI_VERSION=2.7.18
6262

6363
RUN mkdir -p /opt/aws/bin
6464

@@ -75,7 +75,7 @@ RUN echo "AWS_CLI_VERSION: ${AWS_CLI_VERSION}" \
7575
FROM builder AS gcp-builder
7676

7777
# https://cloud.google.com/sdk/docs/release-notes
78-
ARG GOOGLE_CLOUD_SDK_VERSION=391.0.0
78+
ARG GOOGLE_CLOUD_SDK_VERSION=394.0.0
7979

8080
RUN echo "GOOGLE_CLOUD_SDK_VERSION: ${GOOGLE_CLOUD_SDK_VERSION}" \
8181
&& curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${GOOGLE_CLOUD_SDK_VERSION}-linux-x86_64.tar.gz \
@@ -90,7 +90,7 @@ RUN echo "GOOGLE_CLOUD_SDK_VERSION: ${GOOGLE_CLOUD_SDK_VERSION}" \
9090
FROM builder AS azure-builder
9191

9292
# https://docs.microsoft.com/en-us/cli/azure/release-notes-azure-cli?tabs=azure-cli
93-
ARG AZURE_CLI_VERSION=2.37.0
93+
ARG AZURE_CLI_VERSION=2.38.0
9494

9595
RUN apt-get update && apt-get install -y \
9696
libffi-dev

0 commit comments

Comments
 (0)