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

[BUG] When provisioning only Azure resources, sandbox output prints gcp messages not related to the intended target #344

Open
nauticalmike opened this issue Dec 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@nauticalmike
Copy link
Contributor

Describe the bug
When provisioning only Azure resources, sandbox output prints gcp messages not related to the intended target

To Reproduce
Run make tsb and check the final output which should look like:

Apply complete! Resources: 6 added, 0 changed, 0 destroyed.
terraform workspace select default
Switched to workspace "default".
popd > /dev/null
Finished deploying tsb control  plane on cloud 'azure'
Onboarding TSB Control and Data Plane on cloud gcp...
JSON structure of 'terraform.tfvars.json' is valid.
Going to deploy tsb control  plane on cloud 'gcp'
Going to deploy tsb control  plane on cloud 'gcp'
JSON structure of 'terraform.tfvars.json' is valid.
Going to refresh k8s token for cloud 'gcp'
Going to refresh k8s token on cloud 'gcp'
Finished deploying tsb control  plane on cloud 'gcp'
Magic is on the way...

Expected behavior
Only print out messages related to the intended resource targets.

terraform.tfvars.json

{
  "k8s_clusters": {
    "aws": [],
    "azure": [
      {
        "region": "centralus",
        "tetrate": {
          "control_plane": true,
          "management_plane": true
        },
        "addons": {
          "argocd": {
            "enabled": true
          }
        }
      },
      {
        "region": "westus",
        "tetrate": {
          "control_plane": true
        },
        "addons": {
          "argocd": {
            "enabled": true
          }
        }
      },
      {
        "region": "eastus",
        "tetrate": {
          "control_plane": true
        },
        "addons": {
          "argocd": {
            "enabled": true
          }
        }
      }
    ],
    "gcp": []
  },
  "tags": {
    "tetrate_owner": "michael",
    "tetrate_team": "sales:ce"
  },
  "name_prefix": "docusign",
  "tetrate": {
    "fqdn": "docusign.azure.sandbox.tetrate.io",
    "image_sync_apikey": "1b6830be641140dafd44a282020802bede0a5e50",
    "image_sync_username": "nauticalmike",
    "organization": "docusign",
    "password": "Tetrate123",
    "version": "1.8.0-internal-rc3"
  }
}

Versions

  • Terraform (terraform version Terraform v1.3.6 on darwin_arm64 )
  • Environment (ProductName: macOS ProductVersion: 11.7.5 BuildVersion: 20G1225, uname -a Darwin 13mikeBookPro 20.6.0 Darwin Kernel Version 20.6.0: Thu Mar 9 20:39:37 PST 2023; root:xnu-7195.141.49.700.6~1/RELEASE_ARM64_T8101 arm64)

Additional context
Add any other context about the problem here.

@nauticalmike nauticalmike added the bug Something isn't working label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant