Skip to content

Commit

Permalink
Refactor simulator chart
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Sep 24, 2020
1 parent e8bf94f commit 13066ca
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 49 deletions.
7 changes: 0 additions & 7 deletions charts/fleet-simulator/templates/_helpers.tpl

This file was deleted.

4 changes: 3 additions & 1 deletion charts/fleet-simulator/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
data:
config: |-
{
"labels":{{toJson .Values.labels}}
{{ if .Values.labels }}
"labels":{{toJson .Values.labels}},
{{ end }}
"clientID":"{{.Values.clientID}}"
}
5 changes: 3 additions & 2 deletions charts/fleet-simulator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: '{{ template "system_default_registry" . }}{{.Values.image.repository}}:{{.Values.image.tag}}'
arguments:
image: '{{.Values.image.repository}}:{{.Values.image.tag}}'
args:
- "fleetagent"
- "--simulators={{.Values.simulators}}"
name: fleet-agent-simulator
serviceAccountName: fleet-agent
6 changes: 3 additions & 3 deletions charts/fleet-simulator/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: fleet-agent-system-fleet-agent-role
name: fleet-agent-simulator-fleet-agent-role
rules:
- apiGroups:
- '*'
Expand All @@ -14,11 +14,11 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: fleet-agent-system-fleet-agent-role-binding
name: fleet-agent-simulator-fleet-agent-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: fleet-agent-system-fleet-agent-role
name: fleet-agent-simulator-fleet-agent-role
subjects:
- kind: ServiceAccount
name: fleet-agent
Expand Down
10 changes: 0 additions & 10 deletions charts/fleet-simulator/templates/secret.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions charts/fleet-simulator/templates/validate.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions charts/fleet-simulator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,11 @@ 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
# The client ID of the cluster to associate with
clientID: ""

# The namespace of the cluster we are register with
clusterNamespace: ""

# Number of simulator to run
simulators: 1

# The namespace containing the clusters registration secrets
systemRegistrationNamespace: fleet-clusters-system

# Please do not change the below setting unless you really know what you are doing
internal:
systemNamespace: fleet-system
managedReleaseName: fleet-agent

0 comments on commit 13066ca

Please sign in to comment.