Terraform-provider-kubernetes: NOT support BackendConfig ??

Created on 14 Feb 2020  路  3Comments  路  Source: hashicorp/terraform-provider-kubernetes

Hi there,

Does k8s provider support BackendConfig ? If, Is there any alternative way?

https://cloud.google.com/kubernetes-engine/docs/concepts/backendconfig
How to translate the following yaml to HCL ?

apiVersion: cloud.google.com/v1beta1
kind: BackendConfig
metadata:
  name: my-policy
spec:
  iap:
    enabled: true
    oauthclientCredentials:
      secretName: my-iap-secret
acknowledged enhancement

Most helpful comment

@OrangePieiep have you tested our new alpha provider https://github.com/hashicorp/terraform-provider-kubernetes-alpha for this issue?

All 3 comments

BackendConfig is Custom Resource type, as explained in the docs link you provided.
The Kubernetes provider currently does not provider support for CRDs to to technical limitations in the provider API. We are working in on experimental support for custom resources as a separate project, but efforts are still ongoing. We will update you when this becomes available.

Meanwhile, here are some options/workarounds on how you could do this: https://github.com/terraform-providers/terraform-provider-kubernetes/issues/215#issuecomment-572686066

Myself, I'm using https://github.com/banzaicloud/terraform-provider-k8s

@OrangePieiep have you tested our new alpha provider https://github.com/hashicorp/terraform-provider-kubernetes-alpha for this issue?

Was this page helpful?
0 / 5 - 0 ratings