Skip to content

Commit 9f350f0

Browse files
Merge branch 'main' into node-taint-unique-by-key-and-effect
2 parents 3566f5d + db9abdf commit 9f350f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+650
-189
lines changed

.changelog/2380.txt

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
```release-note:note
2+
We have updated the logic of resources that use the Pod specification template, such as `kubernetes_deployment_v1`, `kubernetes_stateful_set_v1`, etc, and now the provider will keep all tolerations(`spec.toleration`) returned by Kubernetes. The same is applicable for the data sources `kubernetes_pod_v1` and `kubernetes_pod`. The behavior of resources `kubernetes_pod_v1` and `kubernetes_pod` remains unchanged, i.e. the provider will keep removing tolerations with well-known [taints](https://kubernetes.io/docs/reference/labels-annotations-taints/) since they might be attached to the object by Kubernetes controller and could lead to a perpetual diff.
3+
```
4+
5+
```release-note:bug
6+
`resource/kubernetes_replication_controller`: fix an issue when the provider cuts out toleration under pod spec template(`*.template.spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/). That could lead to a perpetual diff behavior.
7+
```
8+
9+
```release-note:bug
10+
`resource/kubernetes_replication_controller_v1`: fix an issue when the provider cuts out toleration under pod spec template(`*.template.spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/). That could lead to a perpetual diff behavior.
11+
```
12+
13+
```release-note:bug
14+
`resource/kubernetes_stateful_set: fix an issue when the provider cuts out toleration under pod spec template(`*.template.spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/). That could lead to a perpetual diff behavior.
15+
```
16+
17+
```release-note:bug
18+
`resource/kubernetes_stateful_set_v1: fix an issue when the provider cuts out toleration under pod spec template(`*.template.spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/). That could lead to a perpetual diff behavior.
19+
```
20+
21+
```release-note:bug
22+
`resource/kubernetes_deployment: fix an issue when the provider cuts out toleration under pod spec template(`*.template.spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/). That could lead to a perpetual diff behavior.
23+
```
24+
25+
```release-note:bug
26+
`resource/kubernetes_deployment_v1: fix an issue when the provider cuts out toleration under pod spec template(`*.template.spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/). That could lead to a perpetual diff behavior.
27+
```
28+
29+
```release-note:bug
30+
`resource/kubernetes_daemonset: fix an issue when the provider cuts out toleration under pod spec template(`*.template.spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/). That could lead to a perpetual diff behavior.
31+
```
32+
33+
```release-note:bug
34+
`resource/kubernetes_daemon_set_v1: fix an issue when the provider cuts out toleration under pod spec template(`*.template.spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/). That could lead to a perpetual diff behavior.
35+
```
36+
37+
```release-note:bug
38+
`resource/kubernetes_cron_job: fix an issue when the provider cuts out toleration under pod spec template(`*.template.spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/). That could lead to a perpetual diff behavior.
39+
```
40+
41+
```release-note:bug
42+
`resource/kubernetes_cron_job_v1: fix an issue when the provider cuts out toleration under pod spec template(`*.template.spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/). That could lead to a perpetual diff behavior.
43+
```
44+
45+
```release-note:bug
46+
`resource/kubernetes_job: fix an issue when the provider cuts out toleration under pod spec template(`*.template.spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/). That could lead to a perpetual diff behavior.
47+
```
48+
49+
```release-note:bug
50+
`resource/kubernetes_job_v1: fix an issue when the provider cuts out toleration under pod spec template(`*.template.spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/). That could lead to a perpetual diff behavior.
51+
```
52+
53+
```release-note:bug
54+
`data_source/kubernetes_pod`: fix an issue when the provider cuts out toleration under pod spec(`spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/).
55+
```
56+
57+
```release-note:bug
58+
`data_source/kubernetes_pod_v1`: fix an issue when the provider cuts out toleration under pod spec(`spec.toleration`) if it uses a well-known [taint](https://kubernetes.io/docs/reference/labels-annotations-taints/).
59+
```

.changelog/2622.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
Add `sub_path_expr` to volume mount options pod spec
3+
```

.changelog/2699.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
Fixed goroutine-safety in the CRD and metadata cache, resulting in far fewer provider metadata requests.
3+
```

.changelog/2737.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
Add ResourceIdentity support to kubernetes_manifest
3+
```

.github/workflows/issue-opened.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
oncall_review_assigner:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/setup-node@v4
20+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 #v4.4.0
2121
- run: npm install @pagerduty/pdjs
2222
- uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0 # v7.0.0
2323
env:

docs/data-sources/pod.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@ Read-Only:
802802
- `name` (String)
803803
- `read_only` (Boolean)
804804
- `sub_path` (String)
805+
- `sub_path_expr` (String)
805806

806807

807808

@@ -1321,6 +1322,7 @@ Read-Only:
13211322
- `name` (String)
13221323
- `read_only` (Boolean)
13231324
- `sub_path` (String)
1325+
- `sub_path_expr` (String)
13241326

13251327

13261328

docs/data-sources/pod_v1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@ Read-Only:
802802
- `name` (String)
803803
- `read_only` (Boolean)
804804
- `sub_path` (String)
805+
- `sub_path_expr` (String)
805806

806807

807808

@@ -1321,6 +1322,7 @@ Read-Only:
13211322
- `name` (String)
13221323
- `read_only` (Boolean)
13231324
- `sub_path` (String)
1325+
- `sub_path_expr` (String)
13241326

13251327

13261328

docs/resources/cron_job.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,7 @@ Optional:
951951
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
952952
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
953953
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
954+
- `sub_path_expr` (String) Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root).
954955

955956
<a id="nestedblock--spec--job_template--spec--template--spec--container--volume_device"></a>
956957
### Nested Schema for `spec.job_template.spec.template.spec.container.volume_device`
@@ -1512,6 +1513,7 @@ Optional:
15121513
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
15131514
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
15141515
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1516+
- `sub_path_expr` (String) Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root).
15151517

15161518
<a id="nestedblock--spec--job_template--spec--template--spec--init_container--volume_device"></a>
15171519
### Nested Schema for `spec.job_template.spec.template.spec.init_container.volume_device`
@@ -2389,4 +2391,4 @@ resource "kubernetes_cron_job" "demo" {
23892391

23902392
```
23912393
$ terraform import kubernetes_cron_job_v1/example default/example
2392-
```
2394+
```

docs/resources/cron_job_v1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,7 @@ Optional:
946946
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
947947
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
948948
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
949+
- `sub_path_expr` (String) Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root).
949950

950951
<a id="nestedblock--spec--job_template--spec--template--spec--container--volume_device"></a>
951952
### Nested Schema for `spec.job_template.spec.template.spec.container.volume_device`
@@ -1507,6 +1508,7 @@ Optional:
15071508
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
15081509
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
15091510
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1511+
- `sub_path_expr` (String) Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root).
15101512

15111513
<a id="nestedblock--spec--job_template--spec--template--spec--init_container--volume_device"></a>
15121514
### Nested Schema for `spec.job_template.spec.template.spec.init_container.volume_device`

docs/resources/daemon_set_v1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ Optional:
898898
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
899899
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
900900
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
901+
- `sub_path_expr` (String) Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root).
901902

902903
<a id="nestedblock--spec--template--spec--container--volume_device"></a>
903904
### Nested Schema for `spec.template.spec.container.volume_device`
@@ -1458,6 +1459,7 @@ Optional:
14581459
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
14591460
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
14601461
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1462+
- `sub_path_expr` (String) Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root).
14611463

14621464
<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
14631465
### Nested Schema for `spec.template.spec.init_container.volume_device`

0 commit comments

Comments
 (0)