banzaicloud / terraform-provider-k8s

Kubernetes Terraform provider with support for raw manifests
https://registry.terraform.io/providers/banzaicloud/k8s
MIT License
135 stars 30 forks source link

Status for CRD resource #65

Open SnehaMore20 opened 3 years ago

SnehaMore20 commented 3 years ago

Describe the bug For custom resource like Grafana, the 'status.phase' value is reconciling and 'status.message' value is success Theses values are not handled by the provider.

Steps to reproduce the issue:

  1. Deploy Grafana-operator for managing grafana instances.
  2. Deploy Grafana

Expected behavior The resource is correctly seen as created by the provider.

Additional context

apiVersion: integreatly.org/v1alpha1
kind: Grafana
metadata:
  creationTimestamp: "2020-12-03T11:37:59Z"
  generation: 1
  name: bootstrapmain-grafana
  namespace: monitoring
  resourceVersion: "33070986"
  selfLink: /apis/integreatly.org/v1alpha1/namespaces/monitoring/grafanas/bootstrapmain-grafana
  uid: ccc59af0-7341-425f-8952-da1662d0227f
spec:
  config:
    auth:
      disable_login_form: false
      disable_signout_menu: false
    auth.anonymous:
      enabled: true
    auth.gitlab:
      allow_sign_up: false
      api_url: https://git.xyz.com/api/v4
      auth_url: https://git.xyz.com/oauth/authorize
      client_id: xyz
      client_secret: abc
      enabled: false
      scopes: read_user
      token_url: https://git.xyz.com/oauth/token
    dashboards:
      min_refresh_interval: 2m
    log:
      level: warn
      mode: console
    security:
      admin_user: grafana
    server:
      root_url: https://grafana.xyz.com
  dashboardLabelSelector:
  - matchExpressions:
    - key: app
      operator: In
      values:
      - bootstrapmain-grafana
  deployment:
    annotations:
      iam.amazonaws.com/role: arn:aws:iam::xyz:role/grafana
  ingress:
    enabled: false
status:
  dashboards: {}
  failedPlugins: null
  installedPlugins: null
  message: success
  phase: reconciling

Error Message Error: Error waiting for resource (monitoring::integreatly.org/v1alpha1::Grafana::bootstrapmain-grafana) to be created: timeout while waiting for state to become 'ready' (last state: 'pending', timeout: 3m0s)