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

Remove spaces in the applications string #195

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

jadolg
Copy link
Contributor

@jadolg jadolg commented Jan 5, 2024

The list of applications needs to be supplied as comma-separated strings.
Including spaces breaks the process.
This change should ensure no spaces are passed to the API.

In the current version, this example:

resource "civo_kubernetes_cluster" "civo001" {
  applications = "metrics-server, traefik2-nodeport, prometheus-operator"
  name         = "civo001"
  firewall_id  = civo_firewall.civo001.id
  cluster_type = "talos"
  pools {
    size       = "g4s.kube.medium"
    node_count = 3
  }
}

produces the following error:
Error: [ERR] failed to create the kubernetes cluster: Error: Unknown error response - status: 404 Not Found, code: 404, reason: {"code":"database_kubernetes_aplication_not_found","reason":"Failed to find the Kubernetes application for installation"}

Removing the spaces in the applications field takes care of the error.

the list of applications needs to be supplied as comma separated strings. Including spaces breaks the process. This change should ensure no spaces are passed to the API.
@alejandrojnm alejandrojnm merged commit b80476b into civo:master Jan 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants