Skip to content

[Bug]: flux-system/aws-observability-accelerator failed to create kubernetes rest client for update of resource: resource [source.toolkit.fluxcd.io/v1beta2/GitRepository] isn't valid for cluster, check the APIVersion and Kind fields are valid #229

@jalawala

Description

@jalawala

Welcome to the AWS Observability Accelerator

  • Yes, I've searched similar issues on GitHub and didn't find any.

AWS Observability Accelerator Release version

v2.9.0

What is your environment, configuration and the example used?

running the examples/existing-cluster-with-base-and-infra for EKS 1.27 cluster

What did you do and What did you see instead?

Below error occurs during terraform apply on EKS 1.27 cluster

│ Error: flux-system/aws-observability-accelerator failed to create kubernetes rest client for update of resource: resource [source.toolkit.fluxcd.io/v1beta2/GitRepository] isn't valid for cluster, check the APIVersion and Kind fields are valid

│ with module.eks_monitoring.kubectl_manifest.flux_gitrepository[0],
│ on ../../modules/eks-monitoring/dashboards.tf line 1, in resource "kubectl_manifest" "flux_gitrepository":
│ 1: resource "kubectl_manifest" "flux_gitrepository" {



│ Error: flux-system/grafana-dashboards-infrastructure failed to create kubernetes rest client for update of resource: resource [kustomize.toolkit.fluxcd.io/v1beta2/Kustomization] isn't valid for cluster, check the APIVersion and Kind fields are valid

│ with module.eks_monitoring.kubectl_manifest.flux_kustomization[0],
│ on ../../modules/eks-monitoring/dashboards.tf line 20, in resource "kubectl_manifest" "flux_kustomization":
│ 20: resource "kubectl_manifest" "flux_kustomization" {



│ Error: flux-system/grafana-dashboards-apiserver failed to create kubernetes rest client for update of resource: resource [kustomize.toolkit.fluxcd.io/v1beta2/Kustomization] isn't valid for cluster, check the APIVersion and Kind fields are valid

│ with module.eks_monitoring.kubectl_manifest.api_server_dashboards[0],
│ on ../../modules/eks-monitoring/dashboards.tf line 51, in resource "kubectl_manifest" "api_server_dashboards":
│ 51: resource "kubectl_manifest" "api_server_dashboards" {



│ Error: flux-system/grafana-dashboards-adothealth failed to create kubernetes rest client for update of resource: resource [kustomize.toolkit.fluxcd.io/v1beta2/Kustomization] isn't valid for cluster, check the APIVersion and Kind fields are valid

│ with module.eks_monitoring.kubectl_manifest.adothealth_monitoring_dashboards[0],
│ on ../../modules/eks-monitoring/dashboards.tf line 76, in resource "kubectl_manifest" "adothealth_monitoring_dashboards":
│ 76: resource "kubectl_manifest" "adothealth_monitoring_dashboards" {



│ Error: flux-system/grafana-dashboards-kubeproxy failed to create kubernetes rest client for update of resource: resource [kustomize.toolkit.fluxcd.io/v1beta2/Kustomization] isn't valid for cluster, check the APIVersion and Kind fields are valid

│ with module.eks_monitoring.kubectl_manifest.kubeproxy_monitoring_dashboard[0],
│ on ../../modules/eks-monitoring/dashboards.tf line 98, in resource "kubectl_manifest" "kubeproxy_monitoring_dashboard":
│ 98: resource "kubectl_manifest" "kubeproxy_monitoring_dashboard" {

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions