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

Can't access clusterCaCertificate from ContainerCluster #672

Closed
Zubnix opened this issue May 2, 2021 · 3 comments
Closed

Can't access clusterCaCertificate from ContainerCluster #672

Zubnix opened this issue May 2, 2021 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@Zubnix
Copy link

Zubnix commented May 2, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

cdktf & Language Versions

Typescript 0.3.0

Affected Resource(s)

provider-google
ContainerCluster

Debug Output

clusterCaCertificate for use in KubernetesProviderConfig is not accessible from ContainerCluster object.

Expected Behavior

Looking at https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/using_gke_with_terraform the
clusterCaCertificate should be accessible via my_cluster.master_auth[0].cluster_ca_certificate however it is typed in such a way that the cluster_ca_certificate is not accessible.

export interface ContainerClusterMasterAuth {
  /** The password to use for HTTP basic authentication when accessing the Kubernetes master endpoint. */
  readonly password?: string;
  /** The username to use for HTTP basic authentication when accessing the Kubernetes master endpoint. If not present basic auth will be disabled. */
  readonly username?: string;
  /** client_certificate_config block */
  readonly clientCertificateConfig?: ContainerClusterMasterAuthClientCertificateConfig[];
}

export interface ContainerClusterMasterAuthClientCertificateConfig {
  /** Whether client certificate authorization is enabled for this cluster. */
  readonly issueClientCertificate: boolean;
}

Actual Behavior

Can't create a KubernetesProvider from a ContainerCluster

Steps to Reproduce

Create a ContainerCluster, try creating a working KubernetesProvider.

@Zubnix Zubnix added the bug Something isn't working label May 2, 2021
@jsteinich
Copy link
Collaborator

I believe this to be another instance of #172.
#466 may be helpful for coming up with a workaround.

@skorfmann skorfmann added duplicate This issue or pull request already exists v0.0 labels May 3, 2021
@skorfmann
Copy link
Contributor

Closing as duplicate of #172

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2022

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants