Skip to content

Commit

Permalink
feat: added default namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
beholdenkey committed Oct 11, 2023
1 parent 54ffce9 commit 367bd1c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ Terraform modules which creates Virtual Machines on Harvester HCI
| harvester_kubeconfig_path | Path to the kubeconfig file | `string` | n/a | yes |
| image_display_name | The display name for the OS image | `string` | n/a | yes |
| image_name | The name of the OS image | `string` | n/a | yes |
| image_namespace | The namespace where the image will reside | `string` | n/a | yes |
| image_source_type | Source type for the image (e.g., download, upload) | `string` | n/a | yes |
| image_url | URL from where the image will be downloaded | `string` | n/a | yes |
| network_name | Name of the network | `string` | n/a | yes |
| network_namespace | Namespace of the network | `string` | n/a | yes |
| network_vlan_id | VLAN ID for the network | `string` | n/a | yes |
| user_data | User data for cloud-init configuration | `string` | n/a | yes |
| vm_cpus | Number of CPUs for the VM | `number` | n/a | yes |
Expand All @@ -43,9 +41,11 @@ Terraform modules which creates Virtual Machines on Harvester HCI
| vm_hostname | Hostname for the virtual machine | `string` | n/a | yes |
| vm_memory | Memory allocation for the VM | `string` | n/a | yes |
| vm_name | Name of the virtual machine | `string` | n/a | yes |
| vm_namespace | Namespace where the VM will reside | `string` | n/a | yes |
| image_namespace | The namespace where the image will reside | `string` | `"default"` | no |
| image_tags | Tags associated with the image | `map(string)` | `{}` | no |
| network_data | Network data for cloud-init configuration | `string` | `""` | no |
| network_namespace | Namespace of the network | `string` | `"default"` | no |
| vm_namespace | Namespace where the VM will reside | `string` | `"default"` | no |
| vm_tags | Tags associated with the VM | `map(string)` | `{}` | no |

## Outputs
Expand Down
2 changes: 1 addition & 1 deletion modules/harvester-vm-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
|------|-------------|------|---------|:--------:|
| display_name | The display name for the OS image | `string` | n/a | yes |
| name | The name of the OS image | `string` | n/a | yes |
| namespace | The namespace where the image will reside | `string` | n/a | yes |
| source_type | Source type for the image (e.g., download, upload) | `string` | n/a | yes |
| url | URL from where the image will be downloaded | `string` | n/a | yes |
| description | Any text you want that better describes this resource | `string` | `""` | no |
| namespace | The namespace where the image will reside | `string` | `"default"` | no |
| pvc_name | PVC Name | `string` | `""` | no |
| pvc_namespace | PVC Namespace | `string` | `""` | no |
| storage_class_name | The name of the storage class | `string` | `""` | no |
Expand Down
1 change: 1 addition & 0 deletions modules/harvester-vm-image/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ variable "name" {
variable "namespace" {
description = "The namespace where the image will reside"
type = string
default = "default"
}

variable "display_name" {
Expand Down
2 changes: 1 addition & 1 deletion modules/harvester-vm-network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
|------|-------------|------|---------|:--------:|
| cluster_network_name | Cluster network name | `string` | n/a | yes |
| name | Name of the network | `string` | n/a | yes |
| namespace | Namespace of the network | `string` | n/a | yes |
| vlan_id | VLAN ID for the network | `string` | n/a | yes |
| namespace | Namespace of the network | `string` | `"default"` | no |

## Outputs

Expand Down
1 change: 1 addition & 0 deletions modules/harvester-vm-network/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ variable "name" {
variable "namespace" {
description = "Namespace of the network"
type = string
default = "default"
}
2 changes: 1 addition & 1 deletion modules/harvester-vm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
| hostname | Hostname of the virtual machine | `string` | n/a | yes |
| memory | Memory for the virtual machine (e.g., 2048M or 2G) | `string` | n/a | yes |
| name | Name of the virtual machine | `string` | n/a | yes |
| namespace | Namespace of the virtual machine | `string` | n/a | yes |
| network_name | Name of the network for the virtual machine | `string` | n/a | yes |
| user_data | User data for cloud-init configuration | `string` | n/a | yes |
| vm_image_id | The ID of the VM image | `string` | n/a | yes |
| disks | List of disks for the virtual machine | ```list(object({ name = string type = string size = string bus = string boot_order = number auto_delete = bool }))``` | `[]` | no |
| namespace | Namespace of the virtual machine | `string` | `"default"` | no |
| network_data | Network data for cloud-init configuration | `string` | `""` | no |
| tags | Tags for the virtual machine | `map(string)` | `{}` | no |

Expand Down
1 change: 1 addition & 0 deletions modules/harvester-vm/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ variable "name" {
variable "namespace" {
description = "Namespace of the virtual machine"
type = string
default = "default"
}

variable "description" {
Expand Down
3 changes: 3 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ variable "network_name" {
variable "network_namespace" {
description = "Namespace of the network"
type = string
default = "default"
}


Expand All @@ -33,6 +34,7 @@ variable "image_name" {
variable "image_namespace" {
description = "The namespace where the image will reside"
type = string
default = "default"
}

variable "image_display_name" {
Expand Down Expand Up @@ -74,6 +76,7 @@ variable "vm_hostname" {
variable "vm_namespace" {
description = "Namespace where the VM will reside"
type = string
default = "default"
}

variable "vm_description" {
Expand Down

0 comments on commit 367bd1c

Please sign in to comment.