weaveworks / cluster-controller Goto Github PK
View Code? Open in Web Editor NEWcluster-controller for Weave GitOps Enterprise
License: Apache License 2.0
cluster-controller for Weave GitOps Enterprise
License: Apache License 2.0
From #3 (comment)
$ kubectl get gitopsclusters -A
NAMESPACE NAME AGE READY STATUS
default check8 157m
default dev12 6d3h True
default dev13 5d23h
default terraform2 13d True
The Status should be populated with something see https://book.kubebuilder.io/reference/markers.html#markers-for-configcode-generation for how to do this.
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.
TBD
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.