AppManager: cache helm charts and container images to local registry
Caching container images is disabled until we figure out how to run
container registry behind TLS.
Change-Id: I0253f2a862e5adddff18a82b102f67258151c070
diff --git a/charts/appmanager/templates/install.yaml b/charts/appmanager/templates/install.yaml
index f84e7ba..96d6b08 100644
--- a/charts/appmanager/templates/install.yaml
+++ b/charts/appmanager/templates/install.yaml
@@ -10,6 +10,12 @@
verbs:
- create
- apiGroups:
+ - "batch"
+ resources:
+ - jobs
+ verbs:
+ - create
+- apiGroups:
- "helm.toolkit.fluxcd.io"
resources:
- helmreleases
diff --git a/charts/dodo-app/templates/install.yaml b/charts/dodo-app/templates/install.yaml
index f19ea1e..4746869 100644
--- a/charts/dodo-app/templates/install.yaml
+++ b/charts/dodo-app/templates/install.yaml
@@ -1,3 +1,28 @@
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ name: job-creator
+rules:
+- apiGroups:
+ - "batch"
+ resources:
+ - jobs
+ verbs:
+ - create
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: job-creator
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: job-creator
+subjects:
+- kind: ServiceAccount
+ name: default
+ namespace: {{ .Release.Namespace }}
+---
apiVersion: v1
kind: Secret
metadata:
@@ -10,7 +35,6 @@
kind: Service
metadata:
name: dodo-app
- namespace: {{ .Release.Namespace }}
spec:
type: ClusterIP
selector:
@@ -25,7 +49,6 @@
kind: Deployment
metadata:
name: dodo-app
- namespace: {{ .Release.Namespace }}
spec:
selector:
matchLabels:
diff --git a/charts/soft-serve/foo.yml b/charts/soft-serve/foo.yml
deleted file mode 100644
index 1b22e81..0000000
--- a/charts/soft-serve/foo.yml
+++ /dev/null
@@ -1,8 +0,0 @@
- # - name: SOFT_SERVE_PORT
- # value: "{{ .Values.port }}"
- # - name: SOFT_SERVE_INITIAL_ADMIN_KEY
- # value: "{{ .Values.adminKey }}"
- # - name: SOFT_SERVE_KEY_PATH
- # value: /.ssh/key
- # - name: SOFT_SERVE_REPO_PATH
- # value: /var/lib/soft-serve/repos