Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

Revert "Update hashicorp/setup-terraform action to v3" #6

Merged

Conversation

damoun
Copy link
Owner

@damoun damoun commented Nov 3, 2023

Reverts #5

Revert to v2 because Github Actions runner still run Node16 and v3 require Node20.

@damoun damoun merged commit 3a3e6a2 into main Nov 3, 2023
1 check passed
Copy link

github-actions bot commented Nov 3, 2023

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Terraform Plan 📖success

Show Plan
module.cluster_zero.talos_machine_secrets.machine_secrets: Refreshing state... [id=7P4OjCZ8U7C4a4JkFRCpt018VofA_JR7mhUmue18wGk=]
module.cluster_zero.talos_client_configuration.controlplane: Refreshing state... [id=production]
module.cluster_zero.talos_machine_configuration_worker.worker: Refreshing state... [id=cluster-0]
module.cluster_zero.talos_machine_configuration_controlplane.controlplane: Refreshing state... [id=cluster-0]
module.cluster_zero.talos_machine_bootstrap.bootstrap: Refreshing state... [id=machine-bootstrap]
module.cluster_zero.talos_machine_configuration_apply.worker["192.168.2.24"]: Refreshing state... [id=machine-configuration-apply]
module.cluster_zero.talos_machine_configuration_apply.worker["192.168.2.25"]: Refreshing state... [id=machine-configuration-apply]
module.cluster_zero.talos_machine_configuration_apply.worker["192.168.2.18"]: Refreshing state... [id=machine-configuration-apply]
module.cluster_zero.talos_cluster_kubeconfig.kubeconfig: Refreshing state... [id=kubeconfig]
module.cluster_zero.talos_machine_configuration_apply.worker["192.168.2.130"]: Refreshing state... [id=machine-configuration-apply]
module.cluster_zero.talos_machine_configuration_apply.worker["192.168.2.132"]: Refreshing state... [id=machine-configuration-apply]
module.cluster_zero.talos_machine_configuration_apply.worker["192.168.2.23"]: Refreshing state... [id=machine-configuration-apply]
module.cluster_zero.talos_machine_configuration_apply.controlplane["192.168.2.20"]: Refreshing state... [id=machine-configuration-apply]
module.cluster_zero.talos_machine_configuration_apply.controlplane["192.168.2.21"]: Refreshing state... [id=machine-configuration-apply]
module.cluster_zero.talos_machine_configuration_apply.controlplane["192.168.2.19"]: Refreshing state... [id=machine-configuration-apply]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place
  - destroy

Terraform will perform the following actions:

  # module.cluster_zero.talos_machine_configuration_apply.controlplane["192.168.2.19"] will be updated in-place
  ~ resource "talos_machine_configuration_apply" "controlplane" {
      ~ config_patches        = [
          - <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                    extensions:
                      - image: "ghcr.io/siderolabs/iscsi-tools:v0.1.4"
                  network:
                    hostname: talos-controlplane-owjy
            EOT,
          + <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                  network:
                    hostname: talos-controlplane-owjy
            EOT,
            <<-EOT
                machine:
                  network:
                     interfaces:
                      - interface: eth0
                        dhcp: true
                        vip:
                          ip: 192.168.2.151
            EOT,
            # (1 unchanged element hidden)
            <<-EOT
                cluster:
                  discovery:
                    enabled: true
                    registries:
                      kubernetes:
                        disabled: true
                      service: {}
                machine:
                  network:
                    kubespan:
                      enabled: true
            EOT,
          - <<-EOT
                machine:
                  kubelet:
                    extraMounts:
                      - destination: /var/openebs/local
                        type: bind
                        source: /var/openebs/local
                        options:
                          - bind
                          - rshared
                          - rw
            EOT,
        ]
        id                    = "machine-configuration-apply"
        # (5 unchanged attributes hidden)
    }

  # module.cluster_zero.talos_machine_configuration_apply.controlplane["192.168.2.20"] will be updated in-place
  ~ resource "talos_machine_configuration_apply" "controlplane" {
      ~ config_patches        = [
          - <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                    extensions:
                      - image: "ghcr.io/siderolabs/iscsi-tools:v0.1.4"
                  network:
                    hostname: talos-controlplane-usyj
            EOT,
          + <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                  network:
                    hostname: talos-controlplane-usyj
            EOT,
            <<-EOT
                machine:
                  network:
                     interfaces:
                      - interface: eth0
                        dhcp: true
                        vip:
                          ip: 192.168.2.151
            EOT,
            # (1 unchanged element hidden)
            <<-EOT
                cluster:
                  discovery:
                    enabled: true
                    registries:
                      kubernetes:
                        disabled: true
                      service: {}
                machine:
                  network:
                    kubespan:
                      enabled: true
            EOT,
          - <<-EOT
                machine:
                  kubelet:
                    extraMounts:
                      - destination: /var/openebs/local
                        type: bind
                        source: /var/openebs/local
                        options:
                          - bind
                          - rshared
                          - rw
            EOT,
        ]
        id                    = "machine-configuration-apply"
        # (5 unchanged attributes hidden)
    }

  # module.cluster_zero.talos_machine_configuration_apply.controlplane["192.168.2.21"] will be updated in-place
  ~ resource "talos_machine_configuration_apply" "controlplane" {
      ~ config_patches        = [
          - <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                    extensions:
                      - image: "ghcr.io/siderolabs/iscsi-tools:v0.1.4"
                  network:
                    hostname: talos-controlplane-wffd
            EOT,
          + <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                  network:
                    hostname: talos-controlplane-wffd
            EOT,
            <<-EOT
                machine:
                  network:
                     interfaces:
                      - interface: eth0
                        dhcp: true
                        vip:
                          ip: 192.168.2.151
            EOT,
            # (1 unchanged element hidden)
            <<-EOT
                cluster:
                  discovery:
                    enabled: true
                    registries:
                      kubernetes:
                        disabled: true
                      service: {}
                machine:
                  network:
                    kubespan:
                      enabled: true
            EOT,
          - <<-EOT
                machine:
                  kubelet:
                    extraMounts:
                      - destination: /var/openebs/local
                        type: bind
                        source: /var/openebs/local
                        options:
                          - bind
                          - rshared
                          - rw
            EOT,
        ]
        id                    = "machine-configuration-apply"
        # (5 unchanged attributes hidden)
    }

  # module.cluster_zero.talos_machine_configuration_apply.worker["192.168.2.130"] will be updated in-place
  ~ resource "talos_machine_configuration_apply" "worker" {
      ~ config_patches        = [
          - <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                    extensions:
                      - image: "ghcr.io/siderolabs/iscsi-tools:v0.1.4"
                  network:
                    hostname: talos-worker-bsci
            EOT,
          + <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                  network:
                    hostname: talos-worker-bsci
            EOT,
            <<-EOT
                cluster:
                  discovery:
                    enabled: true
                    registries:
                      kubernetes:
                        disabled: true
                      service: {}
                machine:
                  network:
                    kubespan:
                      enabled: true
            EOT,
          - <<-EOT
                machine:
                  nodeLabels:
                    node-role.kubernetes.io/worker: ''
            EOT,
          - <<-EOT
                machine:
                  kubelet:
                    extraMounts:
                      - destination: /var/openebs/local
                        type: bind
                        source: /var/openebs/local
                        options:
                          - bind
                          - rshared
                          - rw
            EOT,
        ]
        id                    = "machine-configuration-apply"
        # (5 unchanged attributes hidden)
    }

  # module.cluster_zero.talos_machine_configuration_apply.worker["192.168.2.132"] will be updated in-place
  ~ resource "talos_machine_configuration_apply" "worker" {
      ~ config_patches        = [
          - <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                    extensions:
                      - image: "ghcr.io/siderolabs/iscsi-tools:v0.1.4"
                  network:
                    hostname: talos-worker-ptjd
            EOT,
          + <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                  network:
                    hostname: talos-worker-ptjd
            EOT,
            <<-EOT
                cluster:
                  discovery:
                    enabled: true
                    registries:
                      kubernetes:
                        disabled: true
                      service: {}
                machine:
                  network:
                    kubespan:
                      enabled: true
            EOT,
          - <<-EOT
                machine:
                  nodeLabels:
                    node-role.kubernetes.io/worker: ''
            EOT,
          - <<-EOT
                machine:
                  kubelet:
                    extraMounts:
                      - destination: /var/openebs/local
                        type: bind
                        source: /var/openebs/local
                        options:
                          - bind
                          - rshared
                          - rw
            EOT,
        ]
        id                    = "machine-configuration-apply"
        # (5 unchanged attributes hidden)
    }

  # module.cluster_zero.talos_machine_configuration_apply.worker["192.168.2.18"] will be updated in-place
  ~ resource "talos_machine_configuration_apply" "worker" {
      ~ config_patches        = [
          - <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                    extensions:
                      - image: "ghcr.io/siderolabs/iscsi-tools:v0.1.4"
                  network:
                    hostname: talos-worker-zfsj
            EOT,
          + <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                  network:
                    hostname: talos-worker-zfsj
            EOT,
            <<-EOT
                cluster:
                  discovery:
                    enabled: true
                    registries:
                      kubernetes:
                        disabled: true
                      service: {}
                machine:
                  network:
                    kubespan:
                      enabled: true
            EOT,
          - <<-EOT
                machine:
                  nodeLabels:
                    node-role.kubernetes.io/worker: ''
            EOT,
          - <<-EOT
                machine:
                  kubelet:
                    extraMounts:
                      - destination: /var/openebs/local
                        type: bind
                        source: /var/openebs/local
                        options:
                          - bind
                          - rshared
                          - rw
            EOT,
        ]
        id                    = "machine-configuration-apply"
        # (5 unchanged attributes hidden)
    }

  # module.cluster_zero.talos_machine_configuration_apply.worker["192.168.2.23"] will be destroyed
  # (because key ["192.168.2.23"] is not in for_each map)
  - resource "talos_machine_configuration_apply" "worker" {
      - config_patches        = [
          - <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                    extensions:
                      - image: "ghcr.io/siderolabs/iscsi-tools:v0.1.4"
                  network:
                    hostname: talos-worker-nitm
            EOT,
          - <<-EOT
                cluster:
                  discovery:
                    enabled: true
                    registries:
                      kubernetes:
                        disabled: true
                      service: {}
                machine:
                  network:
                    kubespan:
                      enabled: true
            EOT,
          - <<-EOT
                machine:
                  nodeLabels:
                    node-role.kubernetes.io/worker: ''
            EOT,
          - <<-EOT
                machine:
                  kubelet:
                    extraMounts:
                      - destination: /var/openebs/local
                        type: bind
                        source: /var/openebs/local
                        options:
                          - bind
                          - rshared
                          - rw
            EOT,
        ] -> null
      - endpoint              = "192.168.2.23" -> null
      - id                    = "machine-configuration-apply" -> null
      - machine_configuration = (sensitive value) -> null
      - mode                  = "auto" -> null
      - node                  = "192.168.2.23" -> null
      - talos_config          = (sensitive value) -> null
    }

  # module.cluster_zero.talos_machine_configuration_apply.worker["192.168.2.24"] will be destroyed
  # (because key ["192.168.2.24"] is not in for_each map)
  - resource "talos_machine_configuration_apply" "worker" {
      - config_patches        = [
          - <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                    extensions:
                      - image: "ghcr.io/siderolabs/iscsi-tools:v0.1.4"
                  network:
                    hostname: talos-worker-rxtt
            EOT,
          - <<-EOT
                cluster:
                  discovery:
                    enabled: true
                    registries:
                      kubernetes:
                        disabled: true
                      service: {}
                machine:
                  network:
                    kubespan:
                      enabled: true
            EOT,
          - <<-EOT
                machine:
                  nodeLabels:
                    node-role.kubernetes.io/worker: ''
            EOT,
          - <<-EOT
                machine:
                  kubelet:
                    extraMounts:
                      - destination: /var/openebs/local
                        type: bind
                        source: /var/openebs/local
                        options:
                          - bind
                          - rshared
                          - rw
            EOT,
        ] -> null
      - endpoint              = "192.168.2.24" -> null
      - id                    = "machine-configuration-apply" -> null
      - machine_configuration = (sensitive value) -> null
      - mode                  = "auto" -> null
      - node                  = "192.168.2.24" -> null
      - talos_config          = (sensitive value) -> null
    }

  # module.cluster_zero.talos_machine_configuration_apply.worker["192.168.2.25"] will be destroyed
  # (because key ["192.168.2.25"] is not in for_each map)
  - resource "talos_machine_configuration_apply" "worker" {
      - config_patches        = [
          - <<-EOT
                machine:
                  install:
                    disk: /dev/sda
                    extensions:
                      - image: "ghcr.io/siderolabs/iscsi-tools:v0.1.4"
                  network:
                    hostname: talos-worker-nfuj
            EOT,
          - <<-EOT
                cluster:
                  discovery:
                    enabled: true
                    registries:
                      kubernetes:
                        disabled: true
                      service: {}
                machine:
                  network:
                    kubespan:
                      enabled: true
            EOT,
          - <<-EOT
                machine:
                  nodeLabels:
                    node-role.kubernetes.io/worker: ''
            EOT,
          - <<-EOT
                machine:
                  kubelet:
                    extraMounts:
                      - destination: /var/openebs/local
                        type: bind
                        source: /var/openebs/local
                        options:
                          - bind
                          - rshared
                          - rw
            EOT,
        ] -> null
      - endpoint              = "192.168.2.25" -> null
      - id                    = "machine-configuration-apply" -> null
      - machine_configuration = (sensitive value) -> null
      - mode                  = "auto" -> null
      - node                  = "192.168.2.25" -> null
      - talos_config          = (sensitive value) -> null
    }

Plan: 0 to add, 6 to change, 3 to destroy.

Changes to Outputs:
  - cluster_one_kubeconfig   = (sensitive value) -> null
  - cluster_one_talosconfig  = (sensitive value) -> null

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

Pushed by: @damoun, Action: pull_request

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant