Skip to content

Commit

Permalink
Add ipMode field
Browse files Browse the repository at this point in the history
  • Loading branch information
sheneska authored and JaylonmcShan03 committed Nov 19, 2024
1 parent 89a16b6 commit 27608ca
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 24 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/config_map_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Read-Only:




~> **Note:** All arguments including the config map data will be stored in the raw state as plain-text. [Read more about sensitive data in state](/docs/state/sensitive-data.html).

## Example Usage
Expand Down
6 changes: 0 additions & 6 deletions docs/data-sources/pod.md
Original file line number Diff line number Diff line change
Expand Up @@ -1623,12 +1623,6 @@ Read-Only:



* `type` - Indicates which kind of seccomp profile will be applied. Valid options are:
* `Localhost` - a profile defined in a file on the node should be used.
* `RuntimeDefault` - the container runtime default profile should be used.
* `Unconfined` - (Default) no profile should be applied.
* `localhost_profile` - Indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if `type` is `Localhost`.


<a id="nestedobjatt--spec--volume--empty_dir"></a>
### Nested Schema for `spec.volume.empty_dir`
Expand Down
6 changes: 0 additions & 6 deletions docs/data-sources/pod_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -1623,12 +1623,6 @@ Read-Only:



* `type` - Indicates which kind of seccomp profile will be applied. Valid options are:
* `Localhost` - a profile defined in a file on the node should be used.
* `RuntimeDefault` - the container runtime default profile should be used.
* `Unconfined` - (Default) no profile should be applied.
* `localhost_profile` - Indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if `type` is `Localhost`.


<a id="nestedobjatt--spec--volume--empty_dir"></a>
### Nested Schema for `spec.volume.empty_dir`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
subcategory: ""
layout: "kubernetes"
page_title: "Migrating `kubernetes_manifest` resources from the kubernetes-alpha provider"
description: |-
This guide covers adopting `kubernetes_manifest` resources created using the kubernetes-alpha provider.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
subcategory: ""
layout: "kubernetes"
page_title: "Kubernetes: Getting Started with Kubernetes provider"
description: |-
This guide focuses on configuring authentication to your existing Kubernetes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
subcategory: ""
layout: "kubernetes"
page_title: "Kubernetes: Upgrade Guide for Kubernetes Provider v2.0.0"
description: |-
This guide covers the changes introduced in v2.0.0 of the Kubernetes provider and what you may need to do to upgrade your configuration.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
subcategory: ""
layout: "kubernetes"
page_title: "Versioned resource names"
description: |-
This guide explains the naming conventions for resources and data sources in the Kubernetes provider.
Expand Down
8 changes: 4 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ The following arguments are supported:
* `token` - (Optional) Token of your service account. Can be sourced from `KUBE_TOKEN`.
* `proxy_url` - (Optional) URL to the proxy to be used for all API requests. URLs with "http", "https", and "socks5" schemes are supported. Can be sourced from `KUBE_PROXY_URL`.
* `exec` - (Optional) Configuration block to use an [exec-based credential plugin] (https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins), e.g. call an external command to receive user credentials.
* `api_version` - (Required) API version to use when decoding the ExecCredentials resource, e.g. `client.authentication.k8s.io/v1beta1`.
* `command` - (Required) Command to execute.
* `args` - (Optional) List of arguments to pass when executing the plugin.
* `env` - (Optional) Map of environment variables to set when executing the plugin.
* `api_version` - (Required) API version to use when decoding the ExecCredentials resource, e.g. `client.authentication.k8s.io/v1beta1`.
* `command` - (Required) Command to execute.
* `args` - (Optional) List of arguments to pass when executing the plugin.
* `env` - (Optional) Map of environment variables to set when executing the plugin.
* `ignore_annotations` - (Optional) List of Kubernetes metadata annotations to ignore across all resources handled by this provider for situations where external systems are managing certain resource annotations. This option does not affect annotations within a template block. Each item is a regular expression.
* `ignore_labels` - (Optional) List of Kubernetes metadata labels to ignore across all resources handled by this provider for situations where external systems are managing certain resource labels. This option does not affect annotations within a template block. Each item is a regular expression.
2 changes: 1 addition & 1 deletion docs/resources/cron_job.md
Original file line number Diff line number Diff line change
Expand Up @@ -2388,5 +2388,5 @@ resource "kubernetes_cron_job" "demo" {
## Import

```
$ terraform import kubernetes_cron_job_v1/example default/example
$ terraform import kubernetes_corn_job_v1/example default/example
```
3 changes: 2 additions & 1 deletion docs/resources/network_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ Optional:

Optional:

- `end_port` (Number) endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.
- `port` (String) port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.
- `protocol` (String) protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.

Expand Down Expand Up @@ -225,9 +226,9 @@ Optional:

Optional:

- `end_port` (Number) endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.
- `port` (String) port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.
- `protocol` (String) protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.
- `end_port` - (Optional) The end_port indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. Cannot be defined if port is undefined or if port is defined as a named (string) port.



Expand Down
4 changes: 2 additions & 2 deletions docs/resources/network_policy_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ Optional:

Optional:

- `end_port` (Number) endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.
- `port` (String) port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.
- `protocol` (String) protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.

Expand Down Expand Up @@ -225,9 +226,9 @@ Optional:

Optional:

- `end_port` (Number) endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.
- `port` (String) port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.
- `protocol` (String) protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.
- `end_port` - (Optional) The end_port indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. Cannot be defined if port is undefined or if port is defined as a named (string) port.



Expand Down Expand Up @@ -288,7 +289,6 @@ resource "kubernetes_network_policy_v1" "example" {
}
```


## Import

Network policies can be imported using their identifier consisting of `<namespace-name>/<network-policy-name>`, e.g.:
Expand Down
1 change: 1 addition & 0 deletions docs/resources/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ Read-Only:

- `hostname` (String)
- `ip` (String)
- `ipMode` (String)



Expand Down
1 change: 1 addition & 0 deletions docs/resources/service_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ Read-Only:

- `hostname` (String)
- `ip` (String)
- `ipMode` (String)



Expand Down
4 changes: 4 additions & 0 deletions kubernetes/resource_kubernetes_service_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ func resourceKubernetesServiceSchemaV1() map[string]*schema.Schema {
Type: schema.TypeString,
Computed: true,
},
"ipMode": {
Type: schema.TypeString,
Computed: true,
},
"hostname": {
Type: schema.TypeString,
Computed: true,
Expand Down

0 comments on commit 27608ca

Please sign in to comment.