-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from ibuildthecloud/master
Rework install and bootstrap
- Loading branch information
Showing
56 changed files
with
705 additions
and
920 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v2 | ||
name: fleet-agent | ||
description: Fleet Manager Agent - GitOps at Scale | ||
version: 0.0.0 | ||
appVersion: 0.0.0 | ||
icon: https://charts.rancher.io/assets/logos/fleet.svg | ||
annotations: | ||
catalog.cattle.io/certified: rancher | ||
catalog.cattle.io/namespace: fleet-system | ||
catalog.cattle.io/release-name: fleet-agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiServerCA: |- | ||
-----BEGIN CERTIFICATE----- | ||
MIIBVzCB/qADAgECAgEAMAoGCCqGSM49BAMCMCMxITAfBgNVBAMMGGszcy1zZXJ2 | ||
ZXItY2FAMTU5ODAzMDYyMzAeFw0yMDA4MjExNzIzNDNaFw0zMDA4MTkxNzIzNDNa | ||
MCMxITAfBgNVBAMMGGszcy1zZXJ2ZXItY2FAMTU5ODAzMDYyMzBZMBMGByqGSM49 | ||
AgEGCCqGSM49AwEHA0IABDHKZIafRCXRq+tRowJ5yR8LCg8Cc/mh8VorTG4focTG | ||
luOjmaaiYjFGz0Ck4JPffrW0TZrvKDIX+3rBDtk+tmWjIzAhMA4GA1UdDwEB/wQE | ||
AwICpDAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49BAMCA0gAMEUCIAjPm+V9iBNn | ||
ywca9cR/AFIavdlRrUjai/dY2mRcYhs9AiEA1pWWyqcT7ACX9v0KmVsOi/EKLxMJ | ||
QT33NgiIfaNsdcM= | ||
-----END CERTIFICATE----- | ||
apiServerURL: https://172.17.0.1:6443 | ||
clusterNamespace: fleet-local | ||
token: eyJhbGciOiJSUzI1NiIsImtpZCI6IjVRdHRIejdaUk5TLW1HSmJRejFMVFRZaV9mMzQwdmEyVWNUaGNVMllHZTQifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJmbGVldC1sb2NhbCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJpbXBvcnQtdG9rZW4tbG9jYWwtNmU1YmM4Y2EtY2U1Mi00OGQyLTk4MDktMTJjY2U4MjAwOTFkLXRvNTlnOXQiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiaW1wb3J0LXRva2VuLWxvY2FsLTZlNWJjOGNhLWNlNTItNDhkMi05ODA5LTEyY2NlODIwMDkxZCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjNlY2I3M2VhLWEzZDYtNGQxYi04NGUzLThlNTAyNjBmNGMxNSIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpmbGVldC1sb2NhbDppbXBvcnQtdG9rZW4tbG9jYWwtNmU1YmM4Y2EtY2U1Mi00OGQyLTk4MDktMTJjY2U4MjAwOTFkIn0.UqtXqt7X9bTagPwSPXbuSvzb-aKUAA2A4IpROuL7eCGMMkezuf67jXg1pDasXDa5X_8IOeD3ge1L9X5x07BPuf49k9YaOLvnxxLq1fIt_YARiXylF_wdu3qx2GXQau0ewvF4c0ufyYdLMlPnNkz0WEkaRHi9gb6sBcokpBgwsuAS7kWDXGYEAcm0hhgsZmdGVWCdqltAfPfegY_BlrJCcuncnIEsXlyCuDBcSpEUJ76DPLK5CojfhTK27ijiEHr7LZnnLioxiV4CV4fpiyZCEonWfNlQle23fPQ67U4ThXoJl87Nc6A7muYg0K0yM6ANx2F_jWCPz65FIgxR7sBOyA | ||
labels: | ||
foo: bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{if .Values.labels }} | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: fleet-agent | ||
data: | ||
config: |- | ||
{ | ||
"labels":{{toJson .Values.labels}} | ||
} | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: fleet-agent | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: fleet-agent | ||
template: | ||
metadata: | ||
labels: | ||
app: fleet-agent | ||
spec: | ||
containers: | ||
- env: | ||
- name: NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
image: {{.Values.image.repository}}:{{.Values.image.tag}} | ||
name: fleet-agent | ||
serviceAccountName: fleet-agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: fleet-agent-system-fleet-agent-role | ||
rules: | ||
- apiGroups: | ||
- '*' | ||
resources: | ||
- '*' | ||
verbs: | ||
- '*' | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: fleet-agent-system-fleet-agent-role-binding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: fleet-agent-system-fleet-agent-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: fleet-agent | ||
namespace: {{.Release.Namespace}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: v1 | ||
data: | ||
clusterNamespace: "{{b64enc .Values.clusterNamespace}}" | ||
token: "{{b64enc .Values.token}}" | ||
apiServerURL: "{{b64enc .Values.apiServerURL}}" | ||
apiServerCA: "{{b64enc .Values.apiServerCA}}" | ||
kind: Secret | ||
metadata: | ||
name: fleet-agent-bootstrap |
2 changes: 1 addition & 1 deletion
2
chart/templates/serviceaccount.yaml → ...fleet-agent/templates/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: fleet-controller | ||
name: fleet-agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{if ne .Release.Namespace .Values.internal.systemNamespace }} | ||
{{ fail "This chart must be installed in the namespace fleet-system as the release name fleet-agent" }} | ||
{{end}} | ||
|
||
{{if ne .Release.Name .Values.internal.managedReleaseName }} | ||
{{ fail "This chart must be installed in the namespace fleet-system as the release name fleet-agent" }} | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
image: | ||
repository: rancher/fleet-agent | ||
tag: dev | ||
|
||
# The public URL of the Kubernetes API server running the Fleet Manager must be set here | ||
# Example: https://example.com:6443 | ||
apiServerURL: "" | ||
|
||
# The the pem encoded value of the CA of the Kubernetes API server running the Fleet Manager. | ||
# If left empty it is assumed this Kubernetes API TLS is signed by a well known CA. | ||
apiServerCA: "" | ||
|
||
# The cluster registration value | ||
token: "" | ||
|
||
# Labels to add to the cluster upon registration only. They are not added after the fact. | ||
#labels: | ||
# foo: bar | ||
|
||
# Please do not change the below setting unless you really know what you are doing | ||
internal: | ||
systemNamespace: fleet-system | ||
managedReleaseName: fleet-agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v2 | ||
name: fleet-crd | ||
description: Fleet Manager CustomResourceDefinitions | ||
version: 0.0.0 | ||
appVersion: 0.0.0 | ||
icon: https://charts.rancher.io/assets/logos/fleet.svg | ||
annotations: | ||
catalog.cattle.io/certified: rancher | ||
catalog.cattle.io/hidden: "false" | ||
catalog.cattle.io/namespace: fleet-system | ||
catalog.cattle.io/provides-gvr: clusters.fleet.cattle.io/v1alpha1 | ||
catalog.cattle.io/release-name: fleet-crd |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v2 | ||
name: fleet | ||
description: Fleet Manager - GitOps at Scale | ||
version: 0.0.0 | ||
appVersion: 0.0.0 | ||
icon: https://charts.rancher.io/assets/logos/fleet.svg | ||
annotations: | ||
catalog.cattle.io/auto-install-gvr: clusters.fleet.cattle.io/v1alpha1 | ||
catalog.cattle.io/certified: rancher | ||
catalog.cattle.io/experimental: "true" | ||
catalog.cattle.io/namespace: fleet-system | ||
catalog.cattle.io/release-name: fleet |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
chart/charts/gitjob/Chart.yaml → charts/fleet/charts/gitjob/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apiVersion: v2 | ||
appVersion: 0.0.1-rc3 | ||
appVersion: 0.0.1-rc4 | ||
description: Controller that run jobs based on git events | ||
name: gitjob | ||
version: 0.0.1-rc3 | ||
version: 0.0.1-rc4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
chart/charts/gitjob/values.yaml → charts/fleet/charts/gitjob/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
image: | ||
repository: rancher/gitjob | ||
tag: v0.0.1-rc3 | ||
tag: v0.0.1-rc4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: fleet-controller | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: fleet-controller-bootstrap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
image: | ||
repository: ibuildthecloud/fleet | ||
tag: dev | ||
imagePullPolicy: Always | ||
|
||
agentImage: | ||
repository: ibuildthecloud/fleet-agent | ||
tag: dev | ||
imagePullPolicy: Always | ||
|
||
# For cluster registration the public URL of the Kubernetes API server must be set here | ||
# Example: https://example.com:6443 | ||
apiServerURL: "" | ||
|
||
# For cluster auto registration the pem encoded value of the CA of the Kubernetes API server must be set here | ||
# If left empty it is assumed this Kubernetes API TLS is signed by a well known CA. | ||
apiServerCA: "" | ||
|
||
githubURLPrefix: https://github.com | ||
webhookReceiverURL: "" | ||
bootstrap: | ||
repo: "" | ||
secret: "" | ||
branch: master | ||
dirs: "" | ||
namespace: fleet-local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
//go:generate go run pkg/codegen/cleanup/main.go | ||
//go:generate go run pkg/codegen/main.go | ||
//go:generate go run main.go install manager --crds-only -o ./chart/crds/crds.yaml | ||
//go:generate go run ./pkg/codegen crds ./build/charts/fleet-crd/templates/crds.yaml | ||
|
||
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.