Giter VIP home page Giter VIP logo

cluster-controller's People

Contributors

bigkevmcd avatar dependabot[bot] avatar enekofb avatar foot avatar github-actions[bot] avatar luizbafilho avatar monadic avatar ranatrk avatar sarataha avatar weaveworks-admin-bot avatar yiannistri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cluster-controller's Issues

Improve connectivity checking

The token might not be valid, even though we can create a client with it.

We should check that the client can at least talk to the kube-apiserver endpoints.

Cluster object status shows "ready" when `ClusterConnectivity` status is `False`

I was able to get a GitOps cluster into this state. Notice how I gave it an unusable kubeconfig:

Status:
  Conditions:
    Last Transition Time:  2023-03-01T20:42:44Z
    Message:               
    Observed Generation:   1
    Reason:                SecretFound
    Status:                True
    Type:                  Ready
    Last Transition Time:  2023-03-01T20:42:44Z
    Message:               failed creating rest config from secret: invalid configuration: [unable to read client-cert /home/jordan/.minikube/profiles/management/client.crt for management due to open /home/jordan/.minikube/profiles/management/client.crt: no such file or directory, unable to read client-key /home/jordan/.minikube/profiles/management/client.key for management due to open /home/jordan/.minikube/profiles/management/client.key: no such file or directory, unable to read certificate-authority /home/jordan/.minikube/ca.crt for management due to open /home/jordan/.minikube/ca.crt: no such file or directory]
    Observed Generation:   1
    Reason:                ClusterConnectionFailed
    Status:                False
    Type:                  ClusterConnectivity
Events:                    <none>

Result of $ kubectl get gitopsclusters -A:

NAMESPACE     NAME              AGE   READY   STATUS
flux-system   leaf-cluster-01   72m   True 

Expected behavior: Ready should not be true if we cannot connect to the remote cluster

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.