awslabs / crossplane-on-eks

Crossplane bespoke composition blueprints for AWS resources
Apache License 2.0
307 stars 109 forks source link

[Bug]: Use of gavinbunney/kubectl is error prone #166

Closed askulkarni2 closed 1 month ago

askulkarni2 commented 5 months ago

Welcome to AWS Blueprints for Crossplane!

AWS Blueprints for Crossplane Release version

v0.1.0

What is your environment, configuration and the example used?

https://github.com/awslabs/crossplane-on-eks/tree/main/bootstrap/terraform

What did you do and What did you see instead?

The gavinbunney/kubectl provider is no longer actively maintained and is known to be very unstable and unusable at this point. I did a minor change in main.tf and reapplied and saw these errors which are typical symptoms of the unstable state of the provider. Across EKS Blueprints we are discontinuing the use of the kubectl_manifest and recommending folks to use the Hashicorp terraform-provider-kubernetes or package up the yaml files as inline helm charts.

Error: cluster failed to fetch resource from kubernetes: the server could not find the requested resource
│ 
│   with kubectl_manifest.environmentconfig,
│   on main.tf line 196, in resource "kubectl_manifest" "environmentconfig":
│  196: resource "kubectl_manifest" "environmentconfig" {
│ 
╵
╷
│ Error: upbound-aws-controller-config failed to fetch resource from kubernetes: the server could not find the requested resource
│ 
│   with kubectl_manifest.upbound_aws_controller_config[0],
│   on main.tf line 289, in resource "kubectl_manifest" "upbound_aws_controller_config":
│  289: resource "kubectl_manifest" "upbound_aws_controller_config" {
│ 
╵
╷
│ Error: kubernetes-controller-config failed to fetch resource from kubernetes: the server could not find the requested resource
│ 
│   with kubectl_manifest.kubernetes_controller_config[0],
│   on main.tf line 418, in resource "kubectl_manifest" "kubernetes_controller_config":
│  418: resource "kubectl_manifest" "kubernetes_controller_config" {
│ 
╵
╷
│ Error: helm-controller-config failed to fetch resource from kubernetes: the server could not find the requested resource
│ 
│   with kubectl_manifest.helm_controller_config[0],
│   on main.tf line 482, in resource "kubectl_manifest" "helm_controller_config":
│  482: resource "kubectl_manifest" "helm_controller_config" {

Additional Information

No response

edgarsilva948 commented 1 month ago

@candonov the PR #193 fixes this.

candonov commented 1 month ago

Thank you for fixing that @edgarsilva948 !