Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enh: delete cpu.limits from the limitrange configuration #346

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ We strongly recommend using our terraform module `kubernetes-namespace` to manag
{
type = "Container"
default = {
cpu = "150m"
memory = "128Mi"
}
default_request = {
Expand Down
48 changes: 21 additions & 27 deletions terraform/modules/eks-kubernetes-namespace/README.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,42 @@
<!-- BEGIN_TF_DOCS -->
## Requirements

No requirements.

## Providers

| Name | Version |
| ---------------------------------------------------------------------- | ------- |
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | n/a |
| Name | Version |
|------|---------|
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | n/a |

## Modules

No modules.

## Resources

| Name | Type |
| ----------------------------------------------------------------------------------------------------------------------------------- | -------- |
| [kubernetes_limit_range.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/limit_range) | resource |
| [kubernetes_namespace.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |
| Name | Type |
|------|------|
| [kubernetes_limit_range.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/limit_range) | resource |
| [kubernetes_namespace.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |
| [kubernetes_network_policy.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/network_policy) | resource |
| [kubernetes_resource_quota.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/resource_quota) | resource |

## Inputs

| Name | Description | Type | Default | Required |
| ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------: |
| <a name="input_annotations"></a> [annotations](#input\_annotations) | An unstructured key value map stored with the namespace that may be used to store arbitrary metadata | `map(any)` | `{}` | no |
| <a name="input_depends"></a> [depends](#input\_depends) | Indicates the resource this resource depends on. | `any` | `null` | no |
| <a name="input_enable"></a> [enable](#input\_enable) | If set to true, create namespace | `bool` | `true` | no |
| <a name="input_labels"></a> [labels](#input\_labels) | Map of string keys and values that can be used to organize and categorize (scope and select) namespaces. | `map(any)` | `{}` | no |
| <a name="input_limits"></a> [limits](#input\_limits) | n/a | `any` | <pre>[<br> {<br> "default": {<br> "cpu": "150m",<br> "memory": "128Mi"<br> },<br> "default_request": {<br> "cpu": "100m",<br> "memory": "64Mi"<br> },<br> "type": "Container"<br> }<br>]</pre> | no |
| <a name="input_name"></a> [name](#input\_name) | Name of the namespace, must be unique. Cannot be updated. | `string` | n/a | yes |
| <a name="input_network_policies"></a> [network\_policies](#input\_network\_policies) | n/a | `any` | `[]` | no |
| <a name="input_resource_quotas"></a> [resource\_quotas](#input\_resource\_quotas) | n/a | `any` | `[]` | no |
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_annotations"></a> [annotations](#input\_annotations) | An unstructured key value map stored with the namespace that may be used to store arbitrary metadata | `map(any)` | `{}` | no |
| <a name="input_depends"></a> [depends](#input\_depends) | Indicates the resource this resource depends on. | `any` | `null` | no |
| <a name="input_enable"></a> [enable](#input\_enable) | If set to true, create namespace | `bool` | `true` | no |
| <a name="input_labels"></a> [labels](#input\_labels) | Map of string keys and values that can be used to organize and categorize (scope and select) namespaces. | `map(any)` | `{}` | no |
| <a name="input_limits"></a> [limits](#input\_limits) | n/a | `any` | <pre>[<br> {<br> "default": {<br> "memory": "128Mi"<br> },<br> "default_request": {<br> "cpu": "100m",<br> "memory": "64Mi"<br> },<br> "type": "Container"<br> }<br>]</pre> | no |
| <a name="input_name"></a> [name](#input\_name) | Name of the namespace, must be unique. Cannot be updated. | `string` | n/a | yes |
| <a name="input_network_policies"></a> [network\_policies](#input\_network\_policies) | n/a | `any` | `[]` | no |
| <a name="input_resource_quotas"></a> [resource\_quotas](#input\_resource\_quotas) | n/a | `any` | `[]` | no |

## Outputs

| Name | Description |
| ----------------------------------------------------------------------- | -------------------------------------------------------- |
| <a name="output_labels_name"></a> [labels\_name](#output\_labels\_name) | The value of the name label |
| <a name="output_name"></a> [name](#output\_name) | The name of the created namespace (from object metadata) |
<!-- END_TF_DOCS -->



# More details about using this module can be found [here](../../../docs/FAQ.md#k8s-namespace-features)
| Name | Description |
|------|-------------|
| <a name="output_labels_name"></a> [labels\_name](#output\_labels\_name) | The value of the name label |
| <a name="output_name"></a> [name](#output\_name) | The name of the created namespace (from object metadata) |
1 change: 0 additions & 1 deletion terraform/modules/eks-kubernetes-namespace/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ variable "limits" {
{
type = "Container"
default = {
cpu = "150m"
memory = "128Mi"
}
default_request = {
Expand Down
Loading