janwillies / crossargo-sync Goto Github PK
View Code? Open in Web Editor NEWKubernetes controller which watches for newly created EKS clusters and configures ArgoCD to provision software to it
Kubernetes controller which watches for newly created EKS clusters and configures ArgoCD to provision software to it
Hi there, I found your repo in an ArgoCD issue.
What exactly does this repo? Am not a GO Coder, so I am not really understanding it's function.
Am I able to connect secrets
containing a kubeconfig
with ArgoCD created clusters?
I am creating my clusters with Crossplane. Crossplane saves the kubeconfig
of it's created cluster in a Secret
which looks like this:
apiVersion: v1
kind: Secret
metadata:
name: cluster-details-my-cluster
namespace: default
uid: 50c7acab-3214-437c-9527-e66f1d563409
resourceVersion: '12868'
creationTimestamp: '2022-01-06T19:03:09Z'
managedFields:
- manager: crossplane-civo-provider
operation: Update
apiVersion: v1
time: '2022-01-06T19:03:09Z'
fieldsType: FieldsV1
fieldsV1:
f:data:
.: {}
f:kubeconfig: {}
f:type: {}
selfLink: /api/v1/namespaces/default/secrets/cluster-details-my-cluster
data:
kubeconfig: >-
YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VKbFJFTkRRVkl5WjBGM1NVSkJaMGxDUVVSQlMwSm5aM0ZvYTJwUFVGRlJSRUZxUVdwTlUwVjNTSGRaUkZaUlVVUkVRbWh5VFROTmRHTXlWbmtLWkcxV2VVeFhUbWhSUkVVeVRrUkZNRTlVVlROT1ZFbDNTR2hqVGsxcVNYZE5WRUV5VFZScmQwMXFUWGxYYUdOT1RYcEpkMDFVUVRCTlZHdDNUV3BOZVFwWGFrRnFUVk5_SHORTENED
type: Opaque
The data.kubeconfig
content is a regular bas64 encoded kubeconfig
, so it's easy to decode, like this:
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJlRENDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHd_SHORTENED
server: https://MY.IP.TO.K8S:6443
name: my-cluster
contexts:
- context:
cluster: my-cluster
user: my-cluster
name: my-cluster
current-context: my-cluster
kind: Config
preferences: {}
users:
- name: my-cluster
user:
client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJrVENDQVRlZ0F3SUJBZ0lJQS9adEZFT1Avcnd3Q2dZSUtvWkl6ajBFQXdJd0l6RWhNQjhHQTFVRUF3d1kKYXpOekxXTnNhV1Z1ZEMxallVQXhOalF4TkRrMU56VXlNQjRYRFRJeU1ERXdOakU1TURJek1sb1hEVEl6TURFdwpOakU1TURJek1sb3dNREVYT_SHORTENED
client-key-data: LS0tLS1CRUdJTiBFQyBQUklWQVRFIEtFWS0tLS0tCk1IY0NBUUVFSUpJNlVhTDlLem9yL1VpdzlXK1NNUTAxV1BES2ZIK_SHORTENED
Thank you very much
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.