SumoLogic / sumologic-kubernetes-collection

Sumo Logic collection solution for Kubernetes
Apache License 2.0
147 stars 184 forks source link

Provision to overwrite the collector configs #826

Closed Adhira-Deogade closed 4 years ago

Adhira-Deogade commented 4 years ago

When a collector is already installed and we upgrade the helm chart, it gives error that collector already exists. That makes me want to create one collector through sumologic.setup.

`Error: { "status" : 400, "id" : "LC484-MA4EZ-OZ730", "code" : "collectors.validation.name.duplicate", "message" : "A resource with the same name already exists." }

on resources.tf line 8, in resource "sumologic_http_source" "default_events_source": 8: resource "sumologic_http_source" "default_events_source" {

Error: { "status" : 400, "id" : "SOUFU-5PB20-QLBKU", "code" : "collectors.validation.name.duplicate", "message" : "A resource with the same name already exists." }

on resources.tf line 18, in resource "sumologic_http_source" "default_logs_source": 18: resource "sumologic_http_source" "default_logs_source" {`

Adhira-Deogade commented 4 years ago

Realized this could be solved with creating a collector with a new name, deleting the old name and renaming new with the old name.