rancher / terraform-provider-rancher2

Terraform Rancher2 provider
https://www.terraform.io/docs/providers/rancher2/
Mozilla Public License 2.0
253 stars 216 forks source link

[BUG] Unable to see the secret that stores S3 credentials #1289

Open mvineza opened 6 months ago

mvineza commented 6 months ago

Rancher Server Setup

Information about the Cluster

mvineza commented 5 months ago

I checked this again and notice that the "rancherv2" secret is supposed to be under fleet-default namespace.

image

As a workaround, I create a secret under that namespace inside the upstream (local) cluster.

apiVersion: v1
data:
  s3credentialConfig-accessKey: dGVzdHRlc3R0ZXN0dGVzdHRlc3R0ZXN0dGVzdA==
  s3credentialConfig-defaultSkipSSLVerify: ZmFsc2U=
  s3credentialConfig-secretKey: dGVzdHRlc3R0ZXN0dGVzdHRlc3R0ZXN0dGVzdA==
kind: Secret
metadata:
  name: rancherv2
  namespace: fleet-default
type: Opaque

Not sure if I'm missing something on my terraform code or this secret must be handled and created separately.