-
Notifications
You must be signed in to change notification settings - Fork 835
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 #624 from cliveseldon/gcp_marketplace
Registry Image Tags and RBAC control for Operator Helm Chart
- Loading branch information
Showing
8 changed files
with
97 additions
and
154 deletions.
There are no files selected for viewing
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
16 changes: 0 additions & 16 deletions
16
helm-charts/seldon-core-operator/templates/spartakus-config-map.json
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
helm-charts/seldon-core-operator/templates/spartakus-config-map.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{- if .Values.usageMetrics.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: seldon-spartakus-config | ||
namespace: kube-system | ||
data: | ||
spartakus.volunteer.clusterid: {{ default uuidv4 .Values.usageMetrics.clusterid }} | ||
spartakus.volunteer.database: {{ .Values.usageMetrics.database }} | ||
spartakus.volunteer.extensions: '{"seldon-core-version":"{{ .Chart.Version }}"}' | ||
{{- end }} |
59 changes: 0 additions & 59 deletions
59
helm-charts/seldon-core-operator/templates/spartakus-rbac.json
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
helm-charts/seldon-core-operator/templates/spartakus-rbac.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{{- if .Values.usageMetrics.enabled }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: seldon-spartakus-volunteer | ||
namespace: kube-system | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRole | ||
metadata: | ||
name: seldon-spartakus-volunteer | ||
rules: | ||
- apiGroups: | ||
- '' | ||
resources: | ||
- nodes | ||
verbs: | ||
- list | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: seldon-spartakus-volunteer | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: seldon-spartakus-volunteer | ||
subjects: | ||
- kind: ServiceAccount | ||
name: seldon-spartakus-volunteer | ||
namespace: kube-system | ||
{{- end }} | ||
|
72 changes: 0 additions & 72 deletions
72
helm-charts/seldon-core-operator/templates/spartakus-volunteer-deployment.json
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
helm-charts/seldon-core-operator/templates/spartakus-volunteer-deployment.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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{{- if .Values.usageMetrics.enabled }} | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: seldon-spartakus-volunteer | ||
namespace: kube-system | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: seldon-spartakus-volunteer | ||
spec: | ||
containers: | ||
- args: | ||
- volunteer | ||
- --cluster-id=$(SPARTAKUS_VOLUNTEER_CLUSTERID) | ||
- --database=$(SPARTAKUS_VOLUNTEER_DATABASE) | ||
- --extensions=/etc/config/spartakus.volunteer.extensions | ||
env: | ||
- name: SPARTAKUS_VOLUNTEER_CLUSTERID | ||
valueFrom: | ||
configMapKeyRef: | ||
key: spartakus.volunteer.clusterid | ||
name: seldon-spartakus-config | ||
- name: SPARTAKUS_VOLUNTEER_DATABASE | ||
valueFrom: | ||
configMapKeyRef: | ||
key: spartakus.volunteer.database | ||
name: seldon-spartakus-config | ||
image: gcr.io/google_containers/spartakus-amd64:v1.1.0 | ||
name: seldon-spartakus-volunteer | ||
volumeMounts: | ||
- mountPath: /etc/config | ||
name: seldon-spartakus-config-volume | ||
serviceAccountName: seldon-spartakus-volunteer | ||
volumes: | ||
- configMap: | ||
name: seldon-spartakus-config | ||
name: seldon-spartakus-config-volume | ||
{{- 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