├── .gitignore ├── MAINTAINERS ├── infra ├── git-server │ ├── ci │ │ └── test-values.yaml │ ├── Chart.yaml │ ├── templates │ │ ├── NOTES.txt │ │ ├── _helpers.tpl │ │ ├── service.yaml │ │ └── deployment.yaml │ ├── .helmignore │ ├── README.md │ └── values.yaml ├── ghost-gcs-backup │ ├── ci │ │ └── test-values.yaml │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── secret.yaml │ │ └── _helpers.tpl │ └── values.yaml ├── landing │ ├── ci │ │ └── test-values.yaml │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── _helpers.tpl │ │ ├── service.yaml │ │ └── ingress.yaml │ ├── README.md │ └── values.yaml ├── website-redirect │ ├── ci │ │ └── test-values.yaml │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── service.yaml │ │ ├── caddy-configmap.yaml │ │ ├── tests │ │ │ ├── test-configmap.yaml │ │ │ └── test-pod.yaml │ │ ├── _helpers.tpl │ │ └── ingress.yaml │ └── values.yaml ├── ml-deployment │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── service.yaml │ │ ├── NOTES.txt │ │ └── _helpers.tpl │ └── values.yaml ├── code-annotation │ ├── Chart.yaml │ ├── ci │ │ └── test-values.yaml │ ├── templates │ │ ├── persistent-volume-claim.yaml │ │ ├── _helpers.tpl │ │ ├── service.yaml │ │ ├── secrets.yaml │ │ └── ingress.yaml │ ├── .helmignore │ ├── README.md │ └── values.yaml ├── kubernetes-local-pv-provisioner │ ├── templates │ │ ├── serviceaccount.yaml │ │ ├── rbac.yaml │ │ └── _helpers.tpl │ ├── Chart.yaml │ ├── .helmignore │ └── values.yaml ├── hue │ ├── Chart.yaml │ ├── .helmignore │ └── templates │ │ ├── service.yaml │ │ ├── ingress.yaml │ │ ├── _helpers.tpl │ │ └── NOTES.txt ├── k8s-pod-headless-service-operator │ ├── templates │ │ ├── serviceaccount.yaml │ │ ├── rbac.yaml │ │ ├── _helpers.tpl │ │ └── deployment.yaml │ ├── Chart.yaml │ ├── .helmignore │ └── values.yaml ├── ewbf-miner │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ └── _helpers.tpl │ ├── values.yaml │ └── README.md ├── nfs-gluster-bridge │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── service.yaml │ │ ├── _helpers.tpl │ │ └── NOTES.txt │ └── values.yaml ├── prometheus-external-monitor │ ├── Chart.yaml │ ├── values.yaml │ ├── .helmignore │ └── templates │ │ ├── endpoint.yaml │ │ ├── service.yaml │ │ ├── _helpers.tpl │ │ └── servicemonitor.yaml ├── google-cloud-dns-healthcheck │ ├── Chart.yaml │ ├── .helmignore │ ├── ci │ │ └── test-values.yaml │ ├── templates │ │ └── _helpers.tpl │ └── values.yaml ├── online-net-stock-alert │ ├── Chart.yaml │ ├── .helmignore │ ├── values.yaml │ └── templates │ │ ├── _helpers.tpl │ │ └── cronjob.yaml └── scylla │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ ├── scylla-service.yaml │ ├── scylla-configmap.yaml │ └── _helpers.tpl │ └── values.yaml ├── stable ├── rovers │ ├── ci │ │ ├── given-secret-values.yaml │ │ └── predef-secret-values.yaml │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── _helpers.tpl │ │ ├── secret.yaml │ │ └── initdb-job.yaml │ ├── README.md │ └── values.yaml ├── bblfshd │ ├── images │ │ └── logo.png │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── install-drivers-configmap.yaml │ │ ├── tests │ │ │ ├── test.yaml │ │ │ └── test-configmap.yaml │ │ ├── servicemonitor.yaml │ │ ├── service.yaml │ │ ├── _helpers.tpl │ │ └── NOTES.txt │ ├── README.md │ └── values.yaml ├── bblfsh-web │ ├── ci │ │ └── test-values.yaml │ ├── charts │ │ └── bblfshd-sidecar-1.1.1.tgz │ ├── requirements.yaml │ ├── requirements.lock │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── service.yaml │ │ ├── tests │ │ │ ├── test-configmap.yaml │ │ │ └── test.yaml │ │ ├── ingress.yaml │ │ └── _helpers.tpl │ └── README.md ├── gemini │ ├── charts │ │ └── bblfshd-sidecar-0.2.0.tgz │ ├── requirements.yaml │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── pvc.yaml │ │ └── _helpers.tpl │ └── values.yaml ├── gitbase │ ├── charts │ │ └── bblfshd-sidecar-0.2.0.tgz │ ├── requirements.yaml │ ├── ci │ │ └── test-values.yaml │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── service.yaml │ │ ├── tests │ │ │ ├── test.yaml │ │ │ └── test-configmap.yaml │ │ ├── NOTES.txt │ │ └── _helpers.tpl │ └── values.yaml ├── lookout │ ├── charts │ │ └── bblfshd-sidecar-1.1.1.tgz │ ├── requirements.yaml │ ├── requirements.lock │ ├── Chart.yaml │ ├── ci │ │ └── test-values.yaml │ ├── .helmignore │ └── templates │ │ ├── work-service.yaml │ │ ├── lookout-configmap.yaml │ │ └── _helpers.tpl ├── spark-thrift-server │ ├── ci │ │ └── test-values.yaml │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── gitbase-secret.yaml │ │ ├── service.yaml │ │ └── _helpers.tpl │ └── values.yaml ├── sourced-ui │ ├── Chart.yaml │ ├── ci │ │ └── test-values.yaml │ ├── .helmignore │ └── templates │ │ ├── warmup-configmap.yaml │ │ ├── service.yaml │ │ ├── ingress.yaml │ │ ├── admin-secret.yaml │ │ ├── gitbase-secret.yaml │ │ ├── postgres-secret.yaml │ │ └── NOTES.txt ├── lookout-style-analyzer │ ├── ci │ │ └── pvc-values.yaml │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── service.yaml │ │ └── _helpers.tpl │ └── values.yaml ├── borges │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ └── _helpers.tpl │ └── README.md ├── lookout-typos-analyzer │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── service.yaml │ │ └── _helpers.tpl │ └── values.yaml ├── bblfshd-sidecar │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── install-drivers-configmap.yaml │ │ ├── service.yaml │ │ └── servicemonitor.yaml │ ├── README.md │ └── values.yaml ├── lookout-gometalint-analyzer │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── service.yaml │ │ └── _helpers.tpl │ └── values.yaml ├── lookout-terraform-analyzer │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── service.yaml │ │ └── _helpers.tpl │ └── values.yaml ├── lookout-sonarcheck-analyzer │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── service.yaml │ │ └── _helpers.tpl │ ├── README.md │ └── values.yaml └── spark │ ├── .helmignore │ ├── templates │ ├── .helmignore │ ├── spark-webui-proxy-service.yaml │ ├── NOTES.txt │ ├── spark-master-service.yaml │ ├── livy-service.yaml │ ├── configmap.yaml │ ├── tests │ │ ├── test-webui-configmap.yaml │ │ ├── test-job-pod.yaml │ │ └── test-webui.yaml │ ├── spark-webui-service.yaml │ └── _helpers.tpl │ ├── Chart.yaml │ └── README.md ├── incubator ├── spark-api-jupyter │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ │ ├── _helpers.tpl │ │ ├── service.yaml │ │ ├── ingress.yaml │ │ └── NOTES.txt │ └── values.yaml └── jupyter-single │ ├── Chart.yaml │ ├── .helmignore │ ├── templates │ ├── service.yaml │ ├── pvc.yaml │ ├── ingress.yaml │ ├── _helpers.tpl │ └── NOTES.txt │ └── values.yaml ├── ct.yaml ├── ct-install.yaml ├── DCO └── scripts ├── install-minikube.sh └── repo-sync.sh /.gitignore: -------------------------------------------------------------------------------- 1 | repository 2 | -------------------------------------------------------------------------------- /MAINTAINERS: -------------------------------------------------------------------------------- 1 | Rafael Porres Molina (@rporres) 2 | -------------------------------------------------------------------------------- /infra/git-server/ci/test-values.yaml: -------------------------------------------------------------------------------- 1 | repositories: 2 | hostPath: /tmp 3 | -------------------------------------------------------------------------------- /stable/rovers/ci/given-secret-values.yaml: -------------------------------------------------------------------------------- 1 | secrets: 2 | githubToken: xxxxx 3 | bingKey: xxxx 4 | -------------------------------------------------------------------------------- /stable/bblfshd/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/src-d/charts/HEAD/stable/bblfshd/images/logo.png -------------------------------------------------------------------------------- /stable/bblfsh-web/ci/test-values.yaml: -------------------------------------------------------------------------------- 1 | image: 2 | tag: latest 3 | pullPolicy: Always 4 | 5 | ingress: 6 | enabled: false 7 | -------------------------------------------------------------------------------- /stable/gemini/charts/bblfshd-sidecar-0.2.0.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/src-d/charts/HEAD/stable/gemini/charts/bblfshd-sidecar-0.2.0.tgz -------------------------------------------------------------------------------- /stable/gitbase/charts/bblfshd-sidecar-0.2.0.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/src-d/charts/HEAD/stable/gitbase/charts/bblfshd-sidecar-0.2.0.tgz -------------------------------------------------------------------------------- /stable/lookout/charts/bblfshd-sidecar-1.1.1.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/src-d/charts/HEAD/stable/lookout/charts/bblfshd-sidecar-1.1.1.tgz -------------------------------------------------------------------------------- /infra/ghost-gcs-backup/ci/test-values.yaml: -------------------------------------------------------------------------------- 1 | app: 2 | ghostAPIKey: xxx 3 | ghostEndpoint: https://sourced.ghost.io 4 | gcsBucket: my-bucket 5 | -------------------------------------------------------------------------------- /stable/bblfsh-web/charts/bblfshd-sidecar-1.1.1.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/src-d/charts/HEAD/stable/bblfsh-web/charts/bblfshd-sidecar-1.1.1.tgz -------------------------------------------------------------------------------- /infra/landing/ci/test-values.yaml: -------------------------------------------------------------------------------- 1 | ingress: 2 | hosts: 3 | - unit.test.srcd.run 4 | - www.unit.test.srcd.run 5 | globalStaticIpName: "test-ip" 6 | -------------------------------------------------------------------------------- /stable/gemini/requirements.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: bblfshd-sidecar 3 | version: 0.3.1 4 | repository: https://src-d.github.io/charts/stable/ 5 | -------------------------------------------------------------------------------- /stable/gitbase/requirements.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: bblfshd-sidecar 3 | version: 0.3.1 4 | repository: https://src-d.github.io/charts/stable/ 5 | -------------------------------------------------------------------------------- /stable/lookout/requirements.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: bblfshd-sidecar 3 | version: 1.1.1 4 | repository: https://src-d.github.io/charts/stable/ 5 | -------------------------------------------------------------------------------- /stable/bblfsh-web/requirements.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: bblfshd-sidecar 3 | version: 1.1.1 4 | repository: https://src-d.github.io/charts/stable/ 5 | -------------------------------------------------------------------------------- /stable/spark-thrift-server/ci/test-values.yaml: -------------------------------------------------------------------------------- 1 | app: 2 | bblfshHost: test 3 | bblfshPort: 9432 4 | gitbaseServers: test:3306 5 | sparkMasterURI: "local['*']" 6 | -------------------------------------------------------------------------------- /stable/gitbase/ci/test-values.yaml: -------------------------------------------------------------------------------- 1 | bblfshd-sidecar: 2 | image: 3 | tag: latest-drivers 4 | pullPolicy: Always 5 | 6 | image: 7 | tag: latest 8 | pullPolicy: Always 9 | -------------------------------------------------------------------------------- /infra/website-redirect/ci/test-values.yaml: -------------------------------------------------------------------------------- 1 | redirects: 2 | - to: https://google.com 3 | preservePath: false 4 | hostname: bing.com 5 | ingress: 6 | globalStaticIpName: test 7 | -------------------------------------------------------------------------------- /infra/landing/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: A Helm chart for Kubernetes 3 | name: landing 4 | version: 0.2.0 5 | appVersion: "1.0" 6 | home: https://github.com/src-d/landing 7 | -------------------------------------------------------------------------------- /infra/ml-deployment/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for Kubernetes 4 | name: ml-deployment 5 | version: 0.3.0 6 | home: https://sourced.tech 7 | -------------------------------------------------------------------------------- /stable/sourced-ui/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for Kubernetes 4 | name: sourced-ui 5 | version: 0.7.0 6 | home: https://github.com/src-d/sourced-ui 7 | -------------------------------------------------------------------------------- /stable/lookout-style-analyzer/ci/pvc-values.yaml: -------------------------------------------------------------------------------- 1 | app: 2 | port: 2000 3 | requestServer: lookout:10301 4 | volume: 5 | pvcName: the-name 6 | log: 7 | structured: true 8 | level: info 9 | -------------------------------------------------------------------------------- /infra/code-annotation/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: A Helm chart for Kubernetes 3 | name: code-annotation 4 | version: 0.1.0 5 | appVersion: 0.1.2 6 | home: https://github.com/src-d/code-annotation 7 | -------------------------------------------------------------------------------- /infra/ghost-gcs-backup/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "0.0.1" 3 | description: A Helm chart for Kubernetes 4 | name: ghost-gcs-backup 5 | version: 0.1.1 6 | home: https://github.com/src-d/infrastructure-dockerfiles 7 | -------------------------------------------------------------------------------- /infra/kubernetes-local-pv-provisioner/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ template "kubernetes-local-pv-provisioner.fullname" . }} 6 | namespace: {{ .Release.Namespace }} 7 | -------------------------------------------------------------------------------- /infra/hue/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for Hue 4 | name: hue 5 | version: 0.5.0 6 | home: http://gethue.com/ 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /infra/k8s-pod-headless-service-operator/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ template "k8s-pod-headless-service-operator.fullname" . }} 6 | namespace: {{ .Release.Namespace }} 7 | -------------------------------------------------------------------------------- /stable/spark-thrift-server/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for Kubernetes 4 | name: spark-thrift-server 5 | version: 0.6.0 6 | home: https://spark.apache.org/docs/latest/sql-distributed-sql-engine.html 7 | -------------------------------------------------------------------------------- /stable/bblfshd/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: A Helm chart for Kubernetes 3 | name: bblfshd 4 | version: 1.0.1 5 | appVersion: 2.14.0 6 | home: https://doc.bblf.sh/ 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/gemini/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "0.2.0" 3 | description: A Helm chart for gemini 4 | name: gemini 5 | version: 0.2.1 6 | home: https://github.com/src-d/gemini 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /infra/git-server/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: A Helm chart for Kubernetes 3 | name: git-server 4 | version: 0.1.1 5 | appVersion: 0.0.1 6 | home: https://github.com/src-d 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/borges/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: A Helm chart for Kubernetes 3 | name: borges 4 | version: 0.6.3 5 | appVersion: 0.19.0 6 | home: https://github.com/src-d/borges/ 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/gitbase/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: A Helm chart for Gitbase 3 | name: gitbase 4 | version: 0.7.0 5 | appVersion: 0.18.0 6 | home: https://github.com/src-d/gitbase 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/rovers/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: A Helm chart for Kubernetes 3 | name: rovers 4 | version: 0.2.1 5 | appVersion: 2.6.4 6 | home: https://github.com/src-d/rovers 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /infra/ewbf-miner/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: A Helm chart for Kubernetes 3 | name: ewbf-miner 4 | version: 0.1.1 5 | appVersion: 0.3.4 6 | home: https://github.com/nanopool/ewbf-miner 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/bblfsh-web/requirements.lock: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: bblfshd-sidecar 3 | repository: https://src-d.github.io/charts/stable/ 4 | version: 1.1.1 5 | digest: sha256:7102d5230527cfa71c2ee8f3813d148f1994b38c6b3f16e07c03de12a75d722a 6 | generated: "2019-08-06T11:36:22.806573+02:00" 7 | -------------------------------------------------------------------------------- /stable/lookout/requirements.lock: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: bblfshd-sidecar 3 | repository: https://src-d.github.io/charts/stable/ 4 | version: 1.1.1 5 | digest: sha256:7102d5230527cfa71c2ee8f3813d148f1994b38c6b3f16e07c03de12a75d722a 6 | generated: "2019-08-06T11:29:28.034242+02:00" 7 | -------------------------------------------------------------------------------- /incubator/spark-api-jupyter/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: A Helm chart for Kubernetes 3 | name: spark-api-jupyter 4 | version: 0.1.2 5 | appVersion: 0.0.6 6 | home: https://github.com/src-d 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /incubator/jupyter-single/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for a single Jupyter instance 4 | name: jupyter-single 5 | version: 0.3.1 6 | home: https://jupyter.org/ 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /infra/nfs-gluster-bridge/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for Kubernetes 4 | name: nfs-gluster-bridge 5 | version: 0.1.1 6 | home: https://github.com/src-d/charts 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/lookout/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for Lookout in distrubuted mode 4 | name: lookout 5 | version: 0.9.1 6 | home: https://github.com/src-d/lookout 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/rovers/ci/predef-secret-values.yaml: -------------------------------------------------------------------------------- 1 | # Secrets must be either explictly given 2 | # secrets: 3 | # githubToken: xxxxx 4 | # bingKey: xxxx 5 | # 6 | # or through an already present secret in the cluster 7 | # See secret.yaml file to get the expected key names 8 | secretName: "existing name" 9 | -------------------------------------------------------------------------------- /stable/bblfsh-web/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: bblfsh-web 3 | version: 1.1.1 4 | appVersion: 0.11.0 5 | description: | 6 | A web interface for Babelfish (https://doc.bblf.sh/). 7 | home: https://doc.bblf.sh/ 8 | maintainers: 9 | - email: infra@sourced.tech 10 | name: Infrastructure Team 11 | -------------------------------------------------------------------------------- /infra/website-redirect/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart to redirect all requests to another URL 4 | name: website-redirect 5 | version: 1.0.2 6 | home: https://github.com/src-d/charts 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/lookout-style-analyzer/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for Kubernetes 4 | name: lookout-style-analyzer 5 | version: 0.2.2 6 | home: https://github.com/src-d/style-analyzer 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/lookout-typos-analyzer/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for Kubernetes 4 | name: lookout-typos-analyzer 5 | version: 0.1.1 6 | home: https://github.com/src-d/style-analyzer 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/bblfshd-sidecar/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: A Helm chart to template in a bblfshd container into a deployment 3 | name: bblfshd-sidecar 4 | version: 1.1.1 5 | appVersion: 2.14.0 6 | home: https://doc.bblf.sh/ 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /infra/code-annotation/ci/test-values.yaml: -------------------------------------------------------------------------------- 1 | secretName: my-secret-name 2 | authorization: 3 | restrictAccessGroup: "team:1819537" 4 | deployment: 5 | gaTrackingID: UA-115770171-1 6 | ingress: 7 | hostname: code-annotation-staging.srcd.run 8 | globalStaticIpName: code-annotation-staging 9 | image: 10 | tag: test-tag 11 | -------------------------------------------------------------------------------- /infra/prometheus-external-monitor/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for external ServiceMonitor entries 4 | name: prometheus-external-monitor 5 | version: 0.4.0 6 | home: https://github.com/src-d/charts 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /infra/code-annotation/templates/persistent-volume-claim.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolumeClaim 3 | metadata: 4 | labels: 5 | app: {{ template "fullname" . }} 6 | name: {{ template "fullname" . }} 7 | spec: 8 | accessModes: 9 | - ReadWriteOnce 10 | resources: 11 | requests: 12 | storage: 10Gi 13 | -------------------------------------------------------------------------------- /infra/google-cloud-dns-healthcheck/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for Kubernetes 4 | name: google-cloud-dns-healthcheck 5 | version: 0.1.2 6 | home: https://github.com/src-d/google-cloud-dns-healthcheck 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/lookout-gometalint-analyzer/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for Kubernetes 4 | name: lookout-gometalint-analyzer 5 | version: 0.1.1 6 | home: https://github.com/src-d/kubernetes-local-pv-provisioner 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/sourced-ui/ci/test-values.yaml: -------------------------------------------------------------------------------- 1 | postgres: 2 | host: postgresql 3 | db: superset 4 | user: superset 5 | password: superset 6 | 7 | gitbase: 8 | host: gitbase 9 | db: gitbase 10 | user: gitbase 11 | password: gitbase 12 | 13 | redis: 14 | host: redis-master 15 | 16 | bblfshWeb: 17 | host: bblfsh-web-bblfsh-web 18 | -------------------------------------------------------------------------------- /stable/lookout-terraform-analyzer/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for lookout-terraform-analyzer 4 | name: lookout-terraform-analyzer 5 | version: 0.1.1 6 | home: https://github.com/src-d/lookout-terraform-analyzer 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/lookout-sonarcheck-analyzer/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | home: https://github.com/src-d/lookout-sonarcheck-analyzer 3 | appVersion: "1.0" 4 | description: Kubernetes lookout sonarcheck analyzer chart 5 | name: lookout-sonarcheck-analyzer 6 | version: 0.1.1 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /infra/kubernetes-local-pv-provisioner/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for kubernetes-local-pv-provisioner 4 | name: kubernetes-local-pv-provisioner 5 | version: 0.1.2 6 | home: https://github.com/src-d/kubernetes-local-pv-provisioner 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /infra/k8s-pod-headless-service-operator/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for k8s-pod-headless-service-operator 4 | name: k8s-pod-headless-service-operator 5 | version: 0.1.1 6 | home: https://github.com/src-d/k8s-pod-headless-service-operator 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /infra/prometheus-external-monitor/values.yaml: -------------------------------------------------------------------------------- 1 | endpoints: [] 2 | # - name: server-1 3 | # hostname: server-1.full.domain.tld 4 | # ip: 192.168.0.1 5 | # port: 9100 6 | # path: /metrics 7 | # scheme: http 8 | # tlsConfig: 9 | # serverName: example.com 10 | # basicAuth: 11 | # username: 12 | # password: 13 | serviceMonitor: 14 | interval: 15s 15 | -------------------------------------------------------------------------------- /infra/online-net-stock-alert/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: This chart deploys a cron that will check for online.net stock and alerts on slack 4 | name: online-net-stock-alert 5 | version: 0.1.2 6 | home: https://github.com/meyskens/online-net-stock-alert 7 | maintainers: 8 | - email: infra@sourced.tech 9 | name: Infrastructure Team 10 | -------------------------------------------------------------------------------- /stable/lookout/ci/test-values.yaml: -------------------------------------------------------------------------------- 1 | image: 2 | lookout: 3 | tag: v0.8.0 4 | queues: 5 | rabbitmq: 6 | connectionString: amqp://lookout-rabbitmq-ha:5672 7 | databases: 8 | postgres: 9 | cloudSQL: false 10 | dbConnectionString: postgresql://lookout:lookout@postgres-postgresql:5432/lookout-style-analyzer 11 | providers: 12 | github: 13 | private_key: xxx 14 | -------------------------------------------------------------------------------- /infra/git-server/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 1. Get the application URL by running these commands: 2 | export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") 3 | echo "Visit http://127.0.0.1:8080 to use your application" 4 | kubectl port-forward $POD_NAME 8080:{{ .Values.service.externalPort }} 5 | -------------------------------------------------------------------------------- /infra/scylla/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | appVersion: "1.0" 3 | description: A Helm chart for Scylla 4 | name: scylla 5 | version: 0.4.1 6 | home: https://www.scylladb.com/ 7 | icon: https://www.scylladb.com/wp-content/uploads/logo-scylla.svg 8 | sources: 9 | - https://github.com/scylladb/scylla 10 | - https://github.com/src-d/gemini/tree/master/k8s 11 | maintainers: 12 | - email: infra@sourced.tech 13 | name: Infrastructure Team 14 | -------------------------------------------------------------------------------- /infra/hue/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/scylla/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/spark/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/ewbf-miner/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/git-server/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/landing/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/bblfsh-web/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/bblfshd/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/borges/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/gemini/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/gitbase/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/lookout/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/rovers/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/sourced-ui/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/code-annotation/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/ghost-gcs-backup/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/website-redirect/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/bblfshd-sidecar/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/spark/templates/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /incubator/jupyter-single/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /incubator/spark-api-jupyter/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/nfs-gluster-bridge/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/spark-thrift-server/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/online-net-stock-alert/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/lookout-style-analyzer/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/lookout-typos-analyzer/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/google-cloud-dns-healthcheck/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/kubernetes-local-pv-provisioner/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/ml-deployment/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | .vscode/ 23 | -------------------------------------------------------------------------------- /infra/prometheus-external-monitor/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/lookout-gometalint-analyzer/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/lookout-sonarcheck-analyzer/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/lookout-terraform-analyzer/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /infra/k8s-pod-headless-service-operator/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /stable/spark/templates/spark-webui-proxy-service.yaml: -------------------------------------------------------------------------------- 1 | kind: Service 2 | apiVersion: v1 3 | metadata: 4 | name: {{ template "webui-proxy-fullname" . }} 5 | spec: 6 | ports: 7 | - port: {{ .Values.webUIProxy.service.port }} 8 | targetPort: http 9 | {{- if .Values.webUIProxy.service.nodePort }} 10 | nodePort: {{ .Values.webUIProxy.service.nodePort }} 11 | {{- end }} 12 | selector: 13 | component: "{{ .Release.Name }}-webui-proxy" 14 | type: {{ .Values.webUIProxy.service.type }} 15 | -------------------------------------------------------------------------------- /infra/google-cloud-dns-healthcheck/ci/test-values.yaml: -------------------------------------------------------------------------------- 1 | app: 2 | recordName: test.hola.com 3 | project: my-google-project 4 | managedZone: my-google-dns-managed-zone 5 | rrdatas: 147.135.39.104,147.135.39.105 6 | healthcheckPath: /health 7 | httpScheme: http 8 | httpTimeout: 5 9 | httpPort: 8080 10 | dryRun: false 11 | 12 | googleApplicationCredentialsSecret: 13 | name: my-secret 14 | key: secret-key 15 | 16 | job: 17 | schedule: "* * * * *" 18 | successfulJobsHistoryLimit: 2 19 | activeDeadlineSeconds: 60 20 | -------------------------------------------------------------------------------- /stable/bblfshd-sidecar/templates/install-drivers-configmap.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.drivers.install }} 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: {{ template "bblfshd-sidecar.fullname" . }}-install-drivers 6 | labels: 7 | chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" 8 | data: 9 | install-bblfshd-drivers.sh: | 10 | {{- range $language, $driver := .Values.drivers.languages }} 11 | bblfshctl driver install {{ $language }} {{ $driver.repository }}:{{ $driver.tag }} 12 | {{- end }} 13 | {{- end }} 14 | -------------------------------------------------------------------------------- /stable/spark/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 1. Get the Spark URL to visit by running these commands in the same shell: 2 | 3 | NOTE: It may take a few minutes for the LoadBalancer IP to be available. 4 | You can watch its status by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "webui-fullname" . }}' 5 | 6 | export SPARK_SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "webui-fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') 7 | echo http://$SPARK_SERVICE_IP:{{ .Values.webUI.service.port }} 8 | -------------------------------------------------------------------------------- /ct.yaml: -------------------------------------------------------------------------------- 1 | remote: origin 2 | target-branch: master 3 | validate-maintainers: false 4 | chart-repos: 5 | - stable=https://kubernetes-charts.storage.googleapis.com/ 6 | - incubator=https://kubernetes-charts-incubator.storage.googleapis.com/ 7 | - srcd-legacy=https://src-d.github.io/charts/ 8 | - srcd-stable=https://src-d.github.io/charts/stable 9 | - srcd-incubator=https://src-d.github.io/charts/incubator 10 | - srcd-infra=https://src-d.github.io/charts/infra 11 | helm-extra-args: --timeout 600 12 | chart-dirs: 13 | - stable 14 | - incubator 15 | - infra 16 | -------------------------------------------------------------------------------- /infra/landing/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | */}} 13 | {{- define "fullname" -}} 14 | {{- $name := default .Chart.Name .Values.nameOverride -}} 15 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /stable/borges/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | */}} 13 | {{- define "fullname" -}} 14 | {{- $name := default .Chart.Name .Values.nameOverride -}} 15 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /stable/rovers/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | */}} 13 | {{- define "fullname" -}} 14 | {{- $name := default .Chart.Name .Values.nameOverride -}} 15 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /infra/ewbf-miner/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | */}} 13 | {{- define "fullname" -}} 14 | {{- $name := default .Chart.Name .Values.nameOverride -}} 15 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /infra/git-server/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | */}} 13 | {{- define "fullname" -}} 14 | {{- $name := default .Chart.Name .Values.nameOverride -}} 15 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /stable/bblfsh-web/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "bblfsh-web.fullname" . }} 5 | labels: 6 | app: {{ template "bblfsh-web.name" . }} 7 | chart: {{ template "bblfsh-web.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.port }} 14 | targetPort: http 15 | protocol: TCP 16 | name: http 17 | selector: 18 | app: {{ template "bblfsh-web.fullname" . }} 19 | release: {{ .Release.Name }} 20 | -------------------------------------------------------------------------------- /infra/code-annotation/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | */}} 13 | {{- define "fullname" -}} 14 | {{- $name := default .Chart.Name .Values.nameOverride -}} 15 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /incubator/spark-api-jupyter/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | */}} 13 | {{- define "fullname" -}} 14 | {{- $name := default .Chart.Name .Values.nameOverride -}} 15 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /stable/lookout/templates/work-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "lookout.fullname" . }}-work 5 | labels: 6 | app: {{ template "lookout.name" . }}-work 7 | chart: {{ template "lookout.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.work.type }} 12 | ports: 13 | - port: {{ .Values.service.work.port }} 14 | targetPort: {{ .Values.app.work.port }} 15 | protocol: TCP 16 | selector: 17 | app: {{ template "lookout.name" . }}-work 18 | release: {{ .Release.Name }} 19 | -------------------------------------------------------------------------------- /stable/spark-thrift-server/templates/gitbase-secret.yaml: -------------------------------------------------------------------------------- 1 | # create secrets only if there is no name for existing secrets 2 | {{- if not .Values.app.gitbasePasswordSecretName }} 3 | --- 4 | apiVersion: v1 5 | kind: Secret 6 | metadata: 7 | name: {{ template "spark-thrift-server.gitbase.secretName" . }} 8 | labels: 9 | app: {{ template "spark-thrift-server.name" . }} 10 | chart: {{ template "spark-thrift-server.chart" . }} 11 | release: {{ .Release.Name }} 12 | heritage: {{ .Release.Service }} 13 | type: Opaque 14 | data: 15 | password: "{{ default "" .Values.app.gitbasePassword | b64enc }}" 16 | {{- end }} 17 | -------------------------------------------------------------------------------- /stable/spark/templates/spark-master-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "master-fullname" . }} 5 | labels: 6 | heritage: {{ .Release.Service | quote }} 7 | release: {{ .Release.Name | quote }} 8 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 9 | component: "{{ .Release.Name }}-spark-master" 10 | spec: 11 | type: ClusterIP 12 | clusterIP: None 13 | ports: 14 | - port: {{ .Values.master.service.port }} 15 | targetPort: master 16 | protocol: TCP 17 | name: master 18 | selector: 19 | component: "{{ .Release.Name }}-spark-master" 20 | -------------------------------------------------------------------------------- /stable/bblfshd/templates/install-drivers-configmap.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.drivers.install }} 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: {{ template "bblfshd.fullname" . }}-install-drivers 6 | labels: 7 | app: {{ template "bblfshd.name" . }} 8 | chart: {{ template "bblfshd.chart" . }} 9 | release: {{ .Release.Name }} 10 | heritage: {{ .Release.Service }} 11 | data: 12 | install-bblfshd-drivers.sh: | 13 | {{- range $language, $driver := .Values.drivers.languages }} 14 | bblfshctl driver install {{ $language }} {{ $driver.repository }}:{{ $driver.tag }} 15 | {{- end }} 16 | {{- end }} 17 | -------------------------------------------------------------------------------- /incubator/jupyter-single/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "jupyter-single.fullname" . }} 5 | labels: 6 | app: {{ template "jupyter-single.name" . }} 7 | chart: {{ template "jupyter-single.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.port }} 14 | targetPort: http 15 | protocol: TCP 16 | name: http 17 | selector: 18 | app: {{ template "jupyter-single.name" . }} 19 | release: {{ .Release.Name }} 20 | -------------------------------------------------------------------------------- /infra/ewbf-miner/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for ewbf-miner. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | replicaCount: 1 5 | image: 6 | repository: srcd/ewbf-miner 7 | tag: v0.3.4b-2 8 | pullPolicy: IfNotPresent 9 | 10 | args: 11 | gpuNumber: 1 12 | tempLimit: 85 13 | # Your zcash wallet 14 | # zCashWallet: 15 | # Some pools will send notifications to this email 16 | # email: 17 | 18 | nvidiaDrivers: 19 | lib: 20 | hostPath: /opt/nvidia/lib 21 | mountPath: /opt/nvidia/lib 22 | bin: 23 | hostPath: /opt/nvidia/bin 24 | mountPath: /opt/nvidia/bin 25 | -------------------------------------------------------------------------------- /infra/website-redirect/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "website-redirect.fullname" . }} 5 | labels: 6 | app: {{ template "website-redirect.name" . }} 7 | chart: {{ template "website-redirect.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.port }} 14 | targetPort: http 15 | protocol: TCP 16 | name: http 17 | selector: 18 | app: {{ template "website-redirect.name" . }} 19 | release: {{ .Release.Name }} 20 | -------------------------------------------------------------------------------- /infra/ml-deployment/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ include "ml-deployment.fullname" . }} 5 | labels: 6 | {{ include "ml-deployment.labels" . | indent 4 }} 7 | spec: 8 | {{- if .Values.service.headless }} 9 | clusterIP: None 10 | {{- end }} 11 | type: {{ .Values.service.type }} 12 | ports: 13 | {{- range .Values.service.ports }} 14 | - port: {{ .port }} 15 | targetPort: {{ .port }} 16 | protocol: TCP 17 | {{- end }} 18 | selector: 19 | app.kubernetes.io/name: {{ include "ml-deployment.name" . }} 20 | app.kubernetes.io/instance: {{ .Release.Name }} 21 | -------------------------------------------------------------------------------- /infra/git-server/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "fullname" . }} 5 | labels: 6 | app: {{ template "name" . }} 7 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.externalPort }} 14 | targetPort: {{ .Values.service.internalPort }} 15 | protocol: TCP 16 | name: {{ .Values.service.name }} 17 | selector: 18 | app: {{ template "name" . }} 19 | release: {{ .Release.Name }} 20 | -------------------------------------------------------------------------------- /infra/scylla/templates/scylla-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "scylla.fullname" . }} 5 | labels: 6 | app: {{ template "scylla.name" . }} 7 | chart: {{ template "scylla.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.externalPort }} 14 | targetPort: {{ .Values.service.internalPort }} 15 | protocol: TCP 16 | name: {{ .Values.service.name }} 17 | selector: 18 | app: {{ template "scylla.name" . }} 19 | release: {{ .Release.Name }} 20 | -------------------------------------------------------------------------------- /infra/scylla/templates/scylla-configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: {{ template "scylla.fullname" . }} 5 | labels: 6 | heritage: {{ .Release.Service }} 7 | release: {{ .Release.Name }} 8 | chart: {{ .Chart.Name }}-{{ .Chart.Version }} 9 | app: {{ template "scylla.name" . }} 10 | data: 11 | ready-probe.sh: | 12 | #!/bin/bash 13 | if [[ $(nodetool status | grep $POD_IP) == *"UN"* ]]; then 14 | if [[ $DEBUG ]]; then 15 | echo "UN"; 16 | fi 17 | exit 0; 18 | else 19 | if [[ $DEBUG ]]; then 20 | echo "Not Up"; 21 | fi 22 | exit 1; 23 | fi 24 | -------------------------------------------------------------------------------- /stable/spark-thrift-server/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "spark-thrift-server.fullname" . }} 5 | labels: 6 | app: {{ template "spark-thrift-server.name" . }} 7 | chart: {{ template "spark-thrift-server.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.port }} 14 | targetPort: thrift 15 | protocol: TCP 16 | name: thrift 17 | selector: 18 | app: {{ template "spark-thrift-server.name" . }} 19 | release: {{ .Release.Name }} 20 | -------------------------------------------------------------------------------- /stable/lookout-style-analyzer/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "lookout-style-analyzer.fullname" . }} 5 | labels: 6 | app: {{ template "lookout-style-analyzer.name" . }} 7 | chart: {{ template "lookout-style-analyzer.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.port }} 14 | targetPort: {{ .Values.app.port }} 15 | protocol: TCP 16 | selector: 17 | app: {{ template "lookout-style-analyzer.name" . }} 18 | release: {{ .Release.Name }} 19 | -------------------------------------------------------------------------------- /stable/lookout-typos-analyzer/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "lookout-typos-analyzer.fullname" . }} 5 | labels: 6 | app: {{ template "lookout-typos-analyzer.name" . }} 7 | chart: {{ template "lookout-typos-analyzer.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.port }} 14 | targetPort: {{ .Values.app.port }} 15 | protocol: TCP 16 | selector: 17 | app: {{ template "lookout-typos-analyzer.name" . }} 18 | release: {{ .Release.Name }} 19 | -------------------------------------------------------------------------------- /stable/spark/templates/livy-service.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.livy.enabled }} 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: {{ template "livy-fullname" . }} 6 | labels: 7 | heritage: {{ .Release.Service | quote }} 8 | release: {{ .Release.Name | quote }} 9 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 10 | component: "{{ .Release.Name }}-spark-master-livy" 11 | spec: 12 | type: {{ .Values.livy.service.type }} 13 | ports: 14 | - port: {{ .Values.livy.service.port }} 15 | targetPort: livy 16 | protocol: TCP 17 | name: livy 18 | selector: 19 | component: "{{ .Release.Name }}-spark-master" 20 | {{- end }} 21 | -------------------------------------------------------------------------------- /infra/ewbf-miner/README.md: -------------------------------------------------------------------------------- 1 | # EWBF Miner 2 | 3 | This chart deploys [EWBF Miner](https://github.com/nanopool/ewbf-miner) using Docker containers created using [this image](https://github.com/src-d/ewbf-miner-docker) 4 | 5 | ## Pre-requisites 6 | 7 | - Kubernetes 1.4+ 8 | - Kubernetes [GPU Nvidia support](https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/) 9 | 10 | ## Installing the Chart 11 | 12 | To install the chart with the release name `ewbf-miner` 13 | 14 | ```sh 15 | $ helm install --name ewbf-miner-release --set args.email=rafa@sourced.tech,args.zCashWallet=XXXXXXXX 16 | ``` 17 | 18 | See `values.yaml` for the available configuration parameters. 19 | -------------------------------------------------------------------------------- /infra/prometheus-external-monitor/templates/endpoint.yaml: -------------------------------------------------------------------------------- 1 | {{- $root := .}} 2 | {{- range .Values.endpoints }} 3 | --- 4 | apiVersion: v1 5 | kind: Endpoints 6 | metadata: 7 | name: {{ template "prometheus-external-monitor.fullname" $root }}-{{ .name }} 8 | labels: 9 | app: {{ template "prometheus-external-monitor.name" $root }}-{{ .name }} 10 | chart: {{ template "prometheus-external-monitor.chart" $root }} 11 | release: {{ $root.Release.Name }} 12 | heritage: {{ $root.Release.Service }} 13 | subsets: 14 | - addresses: 15 | - ip: {{ .ip }} 16 | ports: 17 | - name: metrics 18 | port: {{ .port | default "9100" }} 19 | protocol: TCP 20 | {{- end }} 21 | 22 | -------------------------------------------------------------------------------- /stable/lookout-terraform-analyzer/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "lookout-terraform-analyzer.fullname" . }} 5 | labels: 6 | app: {{ template "lookout-terraform-analyzer.name" . }} 7 | chart: {{ template "lookout-terraform-analyzer.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.port }} 14 | targetPort: {{ .Values.app.port }} 15 | protocol: TCP 16 | selector: 17 | app: {{ template "lookout-terraform-analyzer.name" . }} 18 | release: {{ .Release.Name }} 19 | -------------------------------------------------------------------------------- /stable/gitbase/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "gitbase.fullname" . }} 5 | labels: 6 | app: {{ template "gitbase.name" . }} 7 | chart: {{ template "gitbase.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | {{- if .Values.service.headless }} 12 | clusterIP: None 13 | {{- end }} 14 | type: {{ .Values.service.type }} 15 | ports: 16 | - port: {{ .Values.service.port }} 17 | # this is hardcoded as Docker image does set this 18 | targetPort: 3306 19 | selector: 20 | app: {{ template "gitbase.name" . }} 21 | release: {{ .Release.Name }} 22 | -------------------------------------------------------------------------------- /stable/lookout-gometalint-analyzer/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "lookout-gometalint-analyzer.fullname" . }} 5 | labels: 6 | app: {{ template "lookout-gometalint-analyzer.name" . }} 7 | chart: {{ template "lookout-gometalint-analyzer.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.port }} 14 | targetPort: {{ .Values.app.port }} 15 | protocol: TCP 16 | selector: 17 | app: {{ template "lookout-gometalint-analyzer.name" . }} 18 | release: {{ .Release.Name }} 19 | -------------------------------------------------------------------------------- /stable/lookout-sonarcheck-analyzer/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "lookout-sonarcheck-analyzer.fullname" . }} 5 | labels: 6 | app: {{ template "lookout-sonarcheck-analyzer.name" . }} 7 | chart: {{ template "lookout-sonarcheck-analyzer.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.port }} 14 | targetPort: {{ .Values.app.port }} 15 | protocol: TCP 16 | selector: 17 | app: {{ template "lookout-sonarcheck-analyzer.name" . }} 18 | release: {{ .Release.Name }} 19 | -------------------------------------------------------------------------------- /stable/sourced-ui/templates/warmup-configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: {{ template "sourced-ui.fullname" . }}-warmup 5 | labels: 6 | app: {{ template "sourced-ui.name" . }} 7 | chart: {{ template "sourced-ui.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | data: 11 | warmup.sh: | 12 | function check() { 13 | curl --max-time 2 --fail -o /dev/null http://localhost:8088/login/ 14 | echo "$?" 15 | } 16 | 17 | while [ "$(check)" != "0" ]; do 18 | echo "Waiting for workers to warm up" 19 | sleep 3; 20 | done 21 | echo "Workers are warmed up!" 22 | 23 | 24 | -------------------------------------------------------------------------------- /infra/hue/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "hue.fullname" . }} 5 | labels: 6 | app: {{ template "hue.name" . }} 7 | chart: {{ template "hue.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.port }} 14 | targetPort: http 15 | protocol: TCP 16 | name: http 17 | {{- if .Values.service.nodePort }} 18 | nodePort: {{ .Values.service.nodePort }} 19 | {{- end }} 20 | selector: 21 | app: {{ template "hue.name" . }} 22 | release: {{ .Release.Name }} 23 | -------------------------------------------------------------------------------- /infra/code-annotation/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "fullname" . }} 5 | labels: 6 | app: {{ template "name" . }} 7 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.codeAnnotation.externalPort }} 14 | targetPort: {{ .Values.service.codeAnnotation.internalPort }} 15 | protocol: TCP 16 | name: {{ .Values.service.codeAnnotation.name }} 17 | selector: 18 | app: {{ template "name" . }} 19 | release: {{ .Release.Name }} 20 | -------------------------------------------------------------------------------- /stable/spark/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.livy.enabled }} 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: {{ template "master-fullname" . }}-livy-conf 6 | labels: 7 | app: {{ template "name" . }} 8 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 9 | release: {{ .Release.Name }} 10 | heritage: {{ .Release.Service }} 11 | data: 12 | livy.conf: | 13 | livy.server.port = 8998 14 | livy.spark.master = spark://{{ template "master-fullname" . }}:{{ .Values.master.service.port }} 15 | livy.spark.deployMode = client 16 | livy.impersonation.enabled = true 17 | livy.ui.enabled = true 18 | livy.server.access-control.enabled = false 19 | {{- end}} 20 | -------------------------------------------------------------------------------- /stable/spark/templates/tests/test-webui-configmap.yaml: -------------------------------------------------------------------------------- 1 | 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: {{ .Release.Name }}-test-webui 6 | data: 7 | tests.sh: | 8 | @test "redirect" { 9 | statusCode=$(curl -I -X GET http://{{ template "webui-proxy-fullname" . }}:{{ .Values.webUIProxy.service.port }} | head -n 1 | cut -d$' ' -f2) 10 | [ "$statusCode" == "302" ] 11 | } 12 | 13 | @test "Check if cluster reports alive" { 14 | alive=$(curl http://{{ template "webui-proxy-fullname" . }}:{{ .Values.webUIProxy.service.port }}/proxy:{{ template "webui-fullname" . }}:{{ .Values.webUI.service.port }} | grep -c "Status:.*ALIVE") 15 | [ "$alive" -ge 1 ] 16 | } 17 | -------------------------------------------------------------------------------- /stable/bblfshd/templates/tests/test.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: "{{ template "bblfshd.fullname" . }}-test" 5 | annotations: 6 | "helm.sh/hook": test-success 7 | spec: 8 | volumes: 9 | - name: tests 10 | configMap: 11 | name: {{ template "bblfshd.fullname" . }}-test 12 | containers: 13 | - name: {{ .Release.Name }}-test 14 | image: python:3.7-slim 15 | volumeMounts: 16 | - name: tests 17 | mountPath: /tests 18 | command: 19 | - sh 20 | - -c 21 | - | 22 | apt-get update 23 | apt-get install -y gcc make g++ 24 | pip install bblfsh 25 | python /tests/tests.py 26 | restartPolicy: Never 27 | -------------------------------------------------------------------------------- /stable/rovers/templates/secret.yaml: -------------------------------------------------------------------------------- 1 | # create secrets only if there is no name for existing secrets 2 | {{- required "Secrets or secretName are missing" (or .Values.secretName .Values.secrets) }} 3 | {{- if not .Values.secretName }} 4 | apiVersion: v1 5 | data: 6 | bing: {{ required "Missing Bing key" .Values.secrets.bingKey | b64enc }} 7 | github: {{ required "Missing GitHub key" .Values.secrets.githubToken | b64enc }} 8 | kind: Secret 9 | metadata: 10 | name: {{ template "fullname" . }} 11 | labels: 12 | app: {{ template "fullname" . }} 13 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 14 | release: "{{ .Release.Name }}" 15 | heritage: "{{ .Release.Service }}" 16 | type: Opaque 17 | {{- end }} 18 | -------------------------------------------------------------------------------- /infra/ghost-gcs-backup/templates/secret.yaml: -------------------------------------------------------------------------------- 1 | # create secrets only if there is no name for existing secrets 2 | {{- required "ghostAPIKeySecretName or ghostAPI are missing" (or .Values.app.ghostAPIKeySecretName .Values.app.ghostAPIKey) }} 3 | {{- if not .Values.app.ghostAPIKeySecretName }} 4 | apiVersion: v1 5 | kind: Secret 6 | metadata: 7 | name: {{ template "ghost-gcs-backup.fullname" . }} 8 | labels: 9 | app: {{ template "ghost-gcs-backup.name" . }} 10 | chart: {{ template "ghost-gcs-backup.chart" . }} 11 | release: {{ .Release.Name }} 12 | heritage: {{ .Release.Service }} 13 | type: Opaque 14 | data: 15 | api_key: "{{ required "ghostAPIKey is missing" .Values.app.ghostAPIKey | b64enc }}" 16 | {{- end }} 17 | -------------------------------------------------------------------------------- /stable/lookout-sonarcheck-analyzer/README.md: -------------------------------------------------------------------------------- 1 | # Lookout sonarcheck analyzer 2 | 3 | This chart deploys the [lookout sonarcheck analyzer](https://github.com/src-d/lookout-sonarcheck-analyzer) 4 | 5 | ## Prerequisites 6 | 7 | - Kubernetes 1.4+ with Beta APIs enabled 8 | 9 | ## Installing the Chart 10 | 11 | To install the chart with the release name `my-release`: 12 | 13 | ```bash 14 | $ helm install --name my-release lookout-sonarcheck-analyzer 15 | ``` 16 | 17 | ## Configuration 18 | 19 | See `values.yaml` for the available configuration parameters. Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. 20 | 21 | ```sh 22 | $ helm install --name my-release lookout-sonarcheck-analyzer 23 | ``` 24 | -------------------------------------------------------------------------------- /stable/sourced-ui/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "sourced-ui.fullname" . }} 5 | labels: 6 | app: {{ template "sourced-ui.name" . }} 7 | chart: {{ template "sourced-ui.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.port }} 14 | targetPort: superset 15 | protocol: TCP 16 | name: superset 17 | {{- if .Values.service.nodePort }} 18 | nodePort: {{ .Values.service.nodePort }} 19 | {{- end }} 20 | selector: 21 | app: {{ template "sourced-ui.name" . }} 22 | release: {{ .Release.Name }} 23 | -------------------------------------------------------------------------------- /stable/bblfsh-web/templates/tests/test-configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: {{ template "bblfsh-web.fullname" . }}-test 5 | labels: 6 | app: {{ template "bblfsh-web.fullname" . }} 7 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 8 | release: "{{ .Release.Name }}" 9 | heritage: "{{ .Release.Service }}" 10 | data: 11 | tests.sh: |- 12 | @test "Testing connection" { 13 | command="curl -s -o /dev/null -w %{http_code} http://{{ template "bblfsh-web.fullname" . }}:{{ .Values.service.port }}" 14 | run $command 15 | echo "command = [${command}]" 16 | echo "output = [${output}]" 17 | echo "status = [${status}]" 18 | [ "${output}" -eq "200" ] 19 | } 20 | -------------------------------------------------------------------------------- /infra/website-redirect/templates/caddy-configmap.yaml: -------------------------------------------------------------------------------- 1 | {{- if empty .Values.redirects }} 2 | {{- fail "You have to either set at least one redirect in redirects" }} 3 | {{- end }} 4 | apiVersion: v1 5 | kind: ConfigMap 6 | metadata: 7 | name: {{ template "website-redirect.fullname" . }}-caddyfile 8 | labels: 9 | chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" 10 | data: 11 | Caddyfile: | 12 | :80/health { 13 | status 200 /health 14 | } 15 | 16 | {{- range $redirect := .Values.redirects }} 17 | {{ required "Hostname is missing" $redirect.hostname }}:80 { 18 | redir / {{ required "To is missing" $redirect.to }}{{ if $redirect.preservePath }}{uri}{{ end }} 301 19 | } 20 | {{- end }} 21 | 22 | -------------------------------------------------------------------------------- /stable/spark/templates/spark-webui-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "webui-fullname" . }} 5 | labels: 6 | heritage: {{ .Release.Service | quote }} 7 | release: {{ .Release.Name | quote }} 8 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 9 | component: "{{ .Release.Name }}-spark-master" 10 | spec: 11 | type: {{ .Values.master.service.type }} 12 | ports: 13 | - port: {{ .Values.webUI.service.port }} 14 | targetPort: webui 15 | protocol: TCP 16 | name: webui 17 | {{- if .Values.webUI.service.nodePort }} 18 | nodePort: {{ .Values.webUI.service.nodePort }} 19 | {{- end }} 20 | selector: 21 | component: "{{ .Release.Name }}-spark-master" 22 | -------------------------------------------------------------------------------- /stable/bblfshd-sidecar/templates/service.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.metrics.enabled}} 2 | --- 3 | apiVersion: v1 4 | kind: Service 5 | metadata: 6 | name: {{ template "bblfshd-sidecar.fullname" . }}-metrics 7 | labels: 8 | app: {{ template "bblfshd-sidecar.name" . }}-metrics 9 | chart: {{ .Chart.Name }} 10 | release: {{ .Release.Name }} 11 | heritage: {{ .Release.Service }} 12 | spec: 13 | type: ClusterIP 14 | ports: 15 | - name: metrics 16 | port: 2112 17 | protocol: TCP 18 | targetPort: metrics 19 | selector: 20 | release: {{ .Release.Name }} 21 | {{- if .Values.metrics.additionalServiceMatchLabels }} 22 | {{ toYaml .Values.metrics.additionalServiceMatchLabels | indent 4 }} 23 | {{- end }} 24 | {{- end }} 25 | -------------------------------------------------------------------------------- /infra/git-server/README.md: -------------------------------------------------------------------------------- 1 | # Borges 2 | 3 | This chart deploys a test git server, without authentication 4 | 5 | ## Pre-requisites 6 | 7 | - Kubernetes 1.4+ 8 | 9 | ## Installing the Chart 10 | 11 | To install the chart with the release name `git-server` 12 | 13 | ```bash 14 | helm install -n git-server-release . git-server 15 | ``` 16 | 17 | ## Configuration 18 | 19 | See `values.yaml` for the available configuration parameters. 20 | 21 | For example, to define where pods will be deployed, we can use `nodeSelector' property 22 | 23 | ```sh 24 | $ helm install --name git-server-release --set nodeSelector."srcd\.host/type"=worker 25 | ``` 26 | 27 | ## TODO 28 | 29 | * Hardcoded to use HostPath. Should move to PVC or at least give multiple possibilities 30 | -------------------------------------------------------------------------------- /stable/bblfshd/templates/tests/test-configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: {{ template "bblfshd.fullname" . }}-test 5 | labels: 6 | app: {{ template "bblfshd.fullname" . }} 7 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 8 | release: "{{ .Release.Name }}" 9 | heritage: "{{ .Release.Service }}" 10 | data: 11 | tests.py: |- 12 | import unittest 13 | import bblfsh 14 | 15 | class TestConnection(unittest.TestCase): 16 | def test_connection(self): 17 | client = bblfsh.BblfshClient("{{ template "bblfshd.fullname" . }}:{{ .Values.service.port }}") 18 | self.assertNotEqual(client.parse(__file__), '') 19 | 20 | if __name__ == '__main__': 21 | unittest.main() 22 | -------------------------------------------------------------------------------- /infra/prometheus-external-monitor/templates/service.yaml: -------------------------------------------------------------------------------- 1 | {{- $root := .}} 2 | {{- range .Values.endpoints }} 3 | --- 4 | apiVersion: v1 5 | kind: Service 6 | metadata: 7 | name: {{ template "prometheus-external-monitor.fullname" $root }}-{{ .name }} 8 | labels: 9 | app: {{ template "prometheus-external-monitor.name" $root }}-{{ .name }} 10 | chart: {{ template "prometheus-external-monitor.chart" $root }} 11 | release: {{ $root.Release.Name }} 12 | heritage: {{ $root.Release.Service }} 13 | spec: 14 | type: ExternalName 15 | externalName: {{ .hostname }} 16 | clusterIP: "" 17 | ports: 18 | - name: metrics 19 | port: {{ .port | default "9100" }} 20 | protocol: TCP 21 | targetPort: {{ .port | default "9100" }} 22 | {{- end }} 23 | -------------------------------------------------------------------------------- /incubator/spark-api-jupyter/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "fullname" . }} 5 | labels: 6 | app: {{ template "name" . }} 7 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | {{- if .Values.service.loadBalancerIP }} 13 | loadBalancerIP: {{ .Values.service.loadBalancerIP }} 14 | {{- end }} 15 | ports: 16 | - port: {{ .Values.service.externalPort }} 17 | targetPort: {{ .Values.service.internalPort }} 18 | protocol: TCP 19 | name: {{ .Values.service.name }} 20 | selector: 21 | app: {{ template "name" . }} 22 | release: {{ .Release.Name }} 23 | -------------------------------------------------------------------------------- /infra/nfs-gluster-bridge/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "nfs-gluster-bridge.fullname" . }} 5 | labels: 6 | app: {{ template "nfs-gluster-bridge.name" . }} 7 | chart: {{ template "nfs-gluster-bridge.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.port }} 14 | targetPort: nfs 15 | protocol: TCP 16 | name: nfs 17 | {{- if .Values.service.nodePort }} 18 | nodePort: {{ .Values.service.nodePort }} 19 | {{- end }} 20 | sessionAffinity: ClientIP 21 | selector: 22 | app: {{ template "nfs-gluster-bridge.name" . }} 23 | release: {{ .Release.Name }} 24 | -------------------------------------------------------------------------------- /stable/bblfshd-sidecar/templates/servicemonitor.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.metrics.enabled}} 2 | apiVersion: monitoring.coreos.com/v1 3 | kind: ServiceMonitor 4 | metadata: 5 | name: {{ template "bblfshd-sidecar.fullname" . }} 6 | namespace: {{ .Values.metrics.namespace }} 7 | labels: 8 | app: {{ template "bblfshd-sidecar.name" . }} 9 | chart: {{ .Chart.Name }} 10 | release: {{ .Release.Name }} 11 | heritage: {{ .Release.Service }} 12 | spec: 13 | selector: 14 | matchLabels: 15 | app: {{ template "bblfshd-sidecar.name" . }}-metrics 16 | heritage: {{ .Release.Service }} 17 | endpoints: 18 | - port: metrics 19 | interval: {{ .Values.metrics.interval | default "10s" }} 20 | namespaceSelector: 21 | matchNames: 22 | - {{ .Release.Namespace }} 23 | {{- end }} 24 | -------------------------------------------------------------------------------- /stable/lookout/templates/lookout-configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: {{ template "lookout.fullname" . }}-lookout-configuration 5 | labels: 6 | app: {{ template "lookout.name" . }} 7 | chart: {{ template "lookout.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | data: 11 | config.yaml: | 12 | analyzers: 13 | {{- with .Values.analyzers }} 14 | {{ toYaml . | indent 6 }} 15 | {{- end }} 16 | {{- with .Values.providers }} 17 | providers: 18 | {{ toYaml . | indent 6 }} 19 | {{- end }} 20 | {{- with .Values.repositories }} 21 | repositories: 22 | {{ toYaml . | indent 6 }} 23 | {{- end }} 24 | {{- with .Values.timeout }} 25 | timeout: 26 | {{ toYaml . | indent 6 }} 27 | {{- end }} 28 | -------------------------------------------------------------------------------- /stable/borges/README.md: -------------------------------------------------------------------------------- 1 | # Borges 2 | 3 | This chart deploys [borges](https://github.com/src-d/borges) 4 | 5 | ## Pre-requisites 6 | 7 | - Kubernetes 1.4+ 8 | - borges v0.18.0+ 9 | 10 | ## Scope 11 | 12 | This chart supports Borges writing to HDFS or Gluster 13 | 14 | ## Installing the Chart 15 | 16 | * To install Borges using Gluster as storage 17 | 18 | ```sh 19 | $ helm install --name borges-release --set \ 20 | glusterfs.endpoint=,\ 21 | glusterfs.volume= 22 | ``` 23 | 24 | * To install Borges using HDFS as storage 25 | 26 | ```sh 27 | $ helm install --name borges-release --set \ 28 | hadoop.userName=,\ 29 | hadoop.connectionString= 30 | ``` 31 | 32 | ## Configuration 33 | 34 | See `values.yaml` for the available configuration parameters. 35 | -------------------------------------------------------------------------------- /stable/rovers/README.md: -------------------------------------------------------------------------------- 1 | # Rovers 2 | 3 | This chart deploys [rovers](https://github.com/src-d/rovers) 4 | 5 | ## Pre-requisites 6 | 7 | - Kubernetes 1.4+ 8 | 9 | ## Installing the Chart 10 | 11 | * To install Rovers giving all the secrets needed in the command line: 12 | 13 | ```sh 14 | helm install --name rovers-release --set \ 15 | secrets.bingKey=,\ 16 | secrets.githubToken= 17 | ``` 18 | 19 | * To install Rovers using an already deployed secret 20 | 21 | ```sh 22 | helm install --name rovers-release --set secretName= 23 | ``` 24 | 25 | ## Configuration 26 | 27 | See `values.yaml` for the available configuration parameters. 28 | 29 | ## Notes 30 | 31 | This chart has a pre-install hook to create rovers database. Rovers code takes care that tables are only created if they don't exist 32 | -------------------------------------------------------------------------------- /stable/bblfshd/templates/servicemonitor.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.metrics.enabled}} 2 | apiVersion: monitoring.coreos.com/v1 3 | kind: ServiceMonitor 4 | metadata: 5 | name: {{ template "bblfshd.fullname" . }} 6 | namespace: {{ .Values.metrics.namespace }} 7 | labels: 8 | app: {{ template "bblfshd.name" . }} 9 | chart: {{ template "bblfshd.chart" . }} 10 | release: {{ .Release.Name }} 11 | heritage: {{ .Release.Service }} 12 | spec: 13 | selector: 14 | matchLabels: 15 | app: {{ template "bblfshd.name" . }} 16 | chart: {{ template "bblfshd.chart" . }} 17 | release: {{ .Release.Name }} 18 | heritage: {{ .Release.Service }} 19 | endpoints: 20 | - port: metrics 21 | interval: {{ .Values.metrics.interval | default "10s" }} 22 | namespaceSelector: 23 | any: true 24 | {{- end }} 25 | -------------------------------------------------------------------------------- /infra/kubernetes-local-pv-provisioner/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for kubernetes-local-pv-provisioner 2 | image: 3 | repository: srcd/kubernetes-local-pv-provisioner 4 | # tag: latest 5 | pullPolicy: IfNotPresent 6 | 7 | rbac: 8 | enabled: true 9 | 10 | resources: {} 11 | # We usually recommend not to specify default resources and to leave this as a conscious 12 | # choice for the user. This also increases chances charts run on environments with little 13 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 14 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 15 | # limits: 16 | # cpu: 100m 17 | # memory: 128Mi 18 | # requests: 19 | # cpu: 100m 20 | # memory: 128Mi 21 | 22 | nodeSelector: {} 23 | 24 | tolerations: [] 25 | 26 | affinity: {} 27 | -------------------------------------------------------------------------------- /stable/bblfshd/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Babelfish server 4 | 5 | This chart deploys a [Babelfish server](https://doc.bblf.sh/) 6 | 7 | ## Official Documentation 8 | 9 | Official project documentation found [here](https://doc.bblf.sh/) 10 | 11 | ## Prerequisites 12 | 13 | - Kubernetes 1.4+ with Beta APIs enabled 14 | 15 | ## Installing the Chart 16 | 17 | To install the chart with the release name `my-release`: 18 | 19 | ```bash 20 | $ helm install --name my-release bblfshd 21 | ``` 22 | 23 | ## Configuration 24 | 25 | See `values.yaml` for the available configuration parameters. Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example: 26 | 27 | ```bash 28 | $ helm install --name my-release --set image.tag=v0.5.0 bblfshd 29 | ``` 30 | -------------------------------------------------------------------------------- /infra/landing/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "fullname" . }} 5 | labels: 6 | app: {{ template "name" . }} 7 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: {{ .Values.service.type }} 12 | ports: 13 | - port: {{ .Values.service.landing.externalPort }} 14 | targetPort: {{ .Values.service.landing.internalPort }} 15 | protocol: TCP 16 | name: {{ .Values.service.landing.name }} 17 | - port: {{ .Values.service.landingApi.externalPort }} 18 | targetPort: {{ .Values.service.landingApi.internalPort }} 19 | protocol: TCP 20 | name: {{ .Values.service.landingApi.name }} 21 | selector: 22 | app: {{ template "name" . }} 23 | release: {{ .Release.Name }} 24 | -------------------------------------------------------------------------------- /infra/code-annotation/templates/secrets.yaml: -------------------------------------------------------------------------------- 1 | # create secrets only if there is no name for existing secrets 2 | {{- required "Secrets or secretName are missing" (or .Values.secretName .Values.secrets) }} 3 | {{- if not .Values.secretName }} 4 | apiVersion: v1 5 | kind: Secret 6 | metadata: 7 | name: {{ template "fullname" . }} 8 | labels: 9 | app: {{ template "fullname" . }} 10 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 11 | release: "{{ .Release.Name }}" 12 | heritage: "{{ .Release.Service }}" 13 | type: Opaque 14 | data: 15 | github_client: "{{ required "Github client ID is missing" .Values.secrets.github_client | b64enc }}" 16 | github_secret: "{{ required "Github secret is missing" .Values.secrets.github_secret | b64enc }}" 17 | jwt_signing_key: "{{ required "JWT signing key secret is missing" .Values.secrets.jwt_signing_key | b64enc }}" 18 | {{- end }} 19 | -------------------------------------------------------------------------------- /stable/bblfshd/templates/service.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: {{ template "bblfshd.fullname" . }} 6 | labels: 7 | app: {{ template "bblfshd.name" . }} 8 | chart: {{ template "bblfshd.chart" . }} 9 | release: {{ .Release.Name }} 10 | heritage: {{ .Release.Service }} 11 | spec: 12 | type: {{ .Values.service.type }} 13 | {{- if .Values.service.loadBalancerIP }} 14 | loadBalancerIP: {{ .Values.service.loadBalancerIP }} 15 | {{- end }} 16 | ports: 17 | - port: {{ .Values.service.port }} 18 | targetPort: bblfshd 19 | protocol: TCP 20 | name: bblfshd 21 | {{- if .Values.metrics.enabled }} 22 | - name: metrics 23 | port: 2112 24 | protocol: TCP 25 | targetPort: metrics 26 | {{- end }} 27 | selector: 28 | app: {{ template "bblfshd.fullname" . }} 29 | release: {{ .Release.Name }} 30 | -------------------------------------------------------------------------------- /infra/kubernetes-local-pv-provisioner/templates/rbac.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.enabled }} 2 | kind: ClusterRole 3 | apiVersion: rbac.authorization.k8s.io/v1beta1 4 | metadata: 5 | name: {{ template "kubernetes-local-pv-provisioner.fullname" . }} 6 | rules: 7 | - apiGroups: 8 | - "" 9 | resources: 10 | - persistentvolumes 11 | verbs: 12 | - get 13 | - list 14 | - watch 15 | --- 16 | kind: ClusterRoleBinding 17 | apiVersion: rbac.authorization.k8s.io/v1beta1 18 | metadata: 19 | name: {{ template "kubernetes-local-pv-provisioner.fullname" . }} 20 | roleRef: 21 | apiGroup: rbac.authorization.k8s.io 22 | kind: ClusterRole 23 | name: {{ template "kubernetes-local-pv-provisioner.fullname" . }} 24 | subjects: 25 | - kind: ServiceAccount 26 | name: {{ template "kubernetes-local-pv-provisioner.fullname" . }} 27 | namespace: {{ .Release.Namespace }} 28 | {{- end }} 29 | -------------------------------------------------------------------------------- /stable/gemini/templates/pvc.yaml: -------------------------------------------------------------------------------- 1 | 2 | {{- if .Values.persistence.enabled -}} 3 | kind: PersistentVolumeClaim 4 | apiVersion: v1 5 | metadata: 6 | name: {{ template "gemini.fullname" . }} 7 | labels: 8 | app: {{ template "gemini.name" . }} 9 | chart: {{ template "gemini.chart" . }} 10 | release: {{ .Release.Name }} 11 | heritage: {{ .Release.Service }} 12 | {{- if .Values.persistence.keep }} 13 | helm.sh/resource-policy: keep 14 | {{- end }} 15 | spec: 16 | accessModes: 17 | - {{ .Values.persistence.accessMode | quote }} 18 | resources: 19 | requests: 20 | storage: {{ .Values.persistence.size | quote }} 21 | {{- if .Values.persistence.storageClass }} 22 | {{- if (eq "-" .Values.persistence.storageClass) }} 23 | storageClassName: "" 24 | {{- else }} 25 | storageClassName: "{{ .Values.persistence.storageClass }}" 26 | {{- end }} 27 | {{- end }} 28 | {{- end -}} 29 | -------------------------------------------------------------------------------- /infra/k8s-pod-headless-service-operator/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for kubernetes-local-pv-provisioner 2 | image: 3 | repository: srcd/k8s-pod-headless-service-operator 4 | # tag: latest 5 | pullPolicy: IfNotPresent 6 | 7 | app: {} 8 | # podAnnotation: 9 | # namespace: 10 | 11 | rbac: 12 | enabled: true 13 | 14 | resources: {} 15 | # We usually recommend not to specify default resources and to leave this as a conscious 16 | # choice for the user. This also increases chances charts run on environments with little 17 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 18 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 19 | # limits: 20 | # cpu: 100m 21 | # memory: 128Mi 22 | # requests: 23 | # cpu: 100m 24 | # memory: 128Mi 25 | 26 | nodeSelector: {} 27 | 28 | tolerations: [] 29 | 30 | affinity: {} 31 | -------------------------------------------------------------------------------- /infra/git-server/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for git-server. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | replicaCount: 1 5 | image: 6 | repository: srcd/git-server 7 | tag: v0.0.1 8 | pullPolicy: IfNotPresent 9 | service: 10 | name: git-server 11 | type: ClusterIP 12 | externalPort: 9418 13 | internalPort: 9418 14 | # repositories: 15 | # hostPath: 16 | resources: {} 17 | # We usually recommend not to specify default resources and to leave this as a conscious 18 | # choice for the user. This also increases chances charts run on environments with little 19 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 20 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 21 | # limits: 22 | # cpu: 100m 23 | # memory: 128Mi 24 | # requests: 25 | # cpu: 100m 26 | # memory: 128Mi 27 | -------------------------------------------------------------------------------- /incubator/jupyter-single/templates/pvc.yaml: -------------------------------------------------------------------------------- 1 | 2 | {{- if .Values.persistence.enabled -}} 3 | kind: PersistentVolumeClaim 4 | apiVersion: v1 5 | metadata: 6 | name: {{ template "jupyter-single.fullname" . }} 7 | labels: 8 | app: {{ template "jupyter-single.name" . }} 9 | chart: {{ template "jupyter-single.chart" . }} 10 | release: {{ .Release.Name }} 11 | heritage: {{ .Release.Service }} 12 | {{- if .Values.persistence.keep }} 13 | helm.sh/resource-policy: keep 14 | {{- end }} 15 | spec: 16 | accessModes: 17 | - {{ .Values.persistence.accessMode | quote }} 18 | resources: 19 | requests: 20 | storage: {{ .Values.persistence.size | quote }} 21 | {{- if .Values.persistence.storageClass }} 22 | {{- if (eq "-" .Values.persistence.storageClass) }} 23 | storageClassName: "" 24 | {{- else }} 25 | storageClassName: "{{ .Values.persistence.storageClass }}" 26 | {{- end }} 27 | {{- end }} 28 | {{- end -}} 29 | -------------------------------------------------------------------------------- /infra/website-redirect/templates/tests/test-configmap.yaml: -------------------------------------------------------------------------------- 1 | 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: {{ .Release.Name }}-tests 6 | data: 7 | tests.sh: | 8 | @test "health check" { 9 | statusCode=$(curl -I http://{{ template "website-redirect.fullname" . }}/health | head -n 1 | cut -d$' ' -f2) 10 | [ "$statusCode" == "200" ] 11 | } 12 | 13 | @test "first redirect status code" { 14 | statusCode=$(curl -I http://{{ template "website-redirect.fullname" . }} -H Host:{{ (index .Values.redirects 0).hostname }} | head -n 1 | cut -d$' ' -f2) 15 | [ "$statusCode" == "301" ] 16 | } 17 | 18 | @test "first redirect location header" { 19 | location=$(curl -I http://{{ template "website-redirect.fullname" . }} -H Host:{{ (index .Values.redirects 0).hostname }} | grep Location | tr -d '\r' | cut -d$' ' -f2) 20 | echo "$location" 21 | [ "$location" == "{{ (index .Values.redirects 0).to }}" ] 22 | } 23 | -------------------------------------------------------------------------------- /stable/bblfshd-sidecar/README.md: -------------------------------------------------------------------------------- 1 | # Babelfish "sidecar" server 2 | 3 | This chart gives a template to deploy a [Babelfish server](https://doc.bblf.sh/) container into another deployment 4 | 5 | ## Using the Chart 6 | 7 | Once this chart has been added to `requirements.yml` you need to import the chart's components in the pos where you want bblfshd. 8 | This will allow you to connect to bblfshd on localhost on port `9432` 9 | 10 | ``` 11 | apiVersion: extensions/v1beta1 12 | kind: Deployment 13 | metadata: 14 | name: dummy-app 15 | labels: 16 | app: dummy-app 17 | spec: 18 | replicas: 1 19 | selector: 20 | template: 21 | spec: 22 | volumes: 23 | {{ include "bblfshd-sidecar.volumes" . | indent 8 }} 24 | containers: 25 | {{ include "bblfshd-sidecar.containers" . | indent 8 }} 26 | - name: app 27 | image: src-d/dummy:1.0.0 28 | env: 29 | - name: BBLFSH_URL 30 | value: localhost:9432 31 | ``` 32 | -------------------------------------------------------------------------------- /infra/online-net-stock-alert/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for online-net-stock-alert. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | suspend: true 6 | serverType: core-3-m-sata 7 | schedule: "* * * * *" 8 | 9 | # secretName: 10 | 11 | image: 12 | repository: meyskens/online-net-stock-alert 13 | tag: amd64-0.1.1 14 | pullPolicy: IfNotPresent 15 | 16 | resources: {} 17 | # We usually recommend not to specify default resources and to leave this as a conscious 18 | # choice for the user. This also increases chances charts run on environments with little 19 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 20 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 21 | # limits: 22 | # cpu: 100m 23 | # memory: 128Mi 24 | # requests: 25 | # cpu: 100m 26 | # memory: 128Mi 27 | 28 | nodeSelector: {} 29 | 30 | tolerations: [] 31 | 32 | affinity: {} 33 | -------------------------------------------------------------------------------- /stable/spark/templates/tests/test-job-pod.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: "{{ .Release.Name }}-test-job" 5 | annotations: 6 | "helm.sh/hook": test-success 7 | spec: 8 | containers: 9 | - name: {{ .Release.Name }}-test-job 10 | image: "{{ .Values.worker.image }}:{{ .Values.worker.imageTag }}" 11 | env: 12 | - name: POD_IP 13 | valueFrom: 14 | fieldRef: 15 | fieldPath: status.podIP 16 | command: 17 | - spark-submit 18 | - --master 19 | - spark://{{ template "master-fullname" . }}:{{ .Values.master.service.port }} 20 | - --class 21 | - org.apache.spark.examples.SparkPi 22 | - --executor-memory 23 | - 1G 24 | - --total-executor-cores 25 | - "1" 26 | - --conf 27 | - "spark.driver.host=$(POD_IP)" 28 | - /opt/spark-2.2.0-bin-hadoop2.7/examples/jars/spark-examples_2.11-2.2.0.jar 29 | - "1" 30 | restartPolicy: Never 31 | -------------------------------------------------------------------------------- /stable/bblfsh-web/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Babelfish Web 4 | 5 | This chart deploys a [web client](https://github.com/bblfsh/web) for [Babelfish](https://doc.bblf.sh/), and optionally a Babelfish server, if you don't have one running in your environment. 6 | 7 | ## Official Documentation 8 | 9 | Official project documentation found [here](https://doc.bblf.sh/) 10 | 11 | ## Prerequisites 12 | 13 | - Kubernetes 1.4+ with Beta APIs enabled 14 | 15 | ## Installing the Chart 16 | 17 | To install the chart with the release name `my-release`: 18 | 19 | ```bash 20 | $ helm install --name my-release bblfsh-web 21 | ``` 22 | 23 | ## Configuration 24 | 25 | See `values.yaml` for the available configuration parameters. Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. 26 | 27 | For example, to use an existing bblfsh server we set the server address: 28 | 29 | ```sh 30 | $ helm install --name my-release --set settings.serverAddr=1.2.3.4:9432 bblfsh-web 31 | ``` 32 | -------------------------------------------------------------------------------- /infra/nfs-gluster-bridge/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for nfs-gluster-bridge. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | replicaCount: 1 6 | 7 | image: 8 | repository: itsthenetwork/nfs-server-alpine 9 | tag: 12 10 | pullPolicy: IfNotPresent 11 | 12 | service: 13 | type: ClusterIP 14 | port: 80 15 | # nodePort: 32049 16 | 17 | gluster: {} 18 | # volume: volumeName 19 | # endpoint: endpointName 20 | 21 | resources: {} 22 | # We usually recommend not to specify default resources and to leave this as a conscious 23 | # choice for the user. This also increases chances charts run on environments with little 24 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 25 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 26 | # limits: 27 | # cpu: 100m 28 | # memory: 128Mi 29 | # requests: 30 | # cpu: 100m 31 | # memory: 128Mi 32 | 33 | nodeSelector: {} 34 | 35 | tolerations: [] 36 | 37 | affinity: {} 38 | -------------------------------------------------------------------------------- /stable/lookout-terraform-analyzer/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for lookout-terraform-analyzer. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | replicaCount: 1 6 | 7 | image: 8 | repository: srcd/lookout-terraform-analyzer 9 | tag: v0.0.2 10 | pullPolicy: IfNotPresent 11 | 12 | service: 13 | type: ClusterIP 14 | port: 10303 15 | 16 | app: 17 | port: 10303 18 | logLevel: info 19 | # dataServiceUrl: lookout:10301 20 | 21 | resources: {} 22 | # We usually recommend not to specify default resources and to leave this as a conscious 23 | # choice for the user. This also increases chances charts run on environments with little 24 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 25 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 26 | # limits: 27 | # cpu: 100m 28 | # memory: 128Mi 29 | # requests: 30 | # cpu: 100m 31 | # memory: 128Mi 32 | 33 | nodeSelector: {} 34 | 35 | tolerations: [] 36 | 37 | affinity: {} 38 | -------------------------------------------------------------------------------- /incubator/spark-api-jupyter/templates/ingress.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.ingress.enabled -}} 2 | {{- $serviceName := include "fullname" . -}} 3 | {{- $servicePort := .Values.service.externalPort -}} 4 | apiVersion: extensions/v1beta1 5 | kind: Ingress 6 | metadata: 7 | name: {{ template "fullname" . }} 8 | labels: 9 | app: {{ template "name" . }} 10 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 11 | release: {{ .Release.Name }} 12 | heritage: {{ .Release.Service }} 13 | annotations: 14 | {{- range $key, $value := .Values.ingress.annotations }} 15 | {{ $key }}: {{ $value | quote }} 16 | {{- end }} 17 | spec: 18 | rules: 19 | {{- range $host := .Values.ingress.hosts }} 20 | - host: {{ $host }} 21 | http: 22 | paths: 23 | - path: / 24 | backend: 25 | serviceName: {{ $serviceName }} 26 | servicePort: {{ $servicePort }} 27 | {{- end -}} 28 | {{- if .Values.ingress.tls }} 29 | tls: 30 | {{ toYaml .Values.ingress.tls | indent 4 }} 31 | {{- end -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/lookout-gometalint-analyzer/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for lookout-gometalint-analyzer. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | replicaCount: 1 6 | 7 | image: 8 | repository: srcd/lookout-gometalint-analyzer 9 | tag: v0.0.3 10 | pullPolicy: IfNotPresent 11 | 12 | service: 13 | type: ClusterIP 14 | port: 10303 15 | 16 | app: 17 | port: 10303 18 | logLevel: info 19 | # dataServiceUrl: lookout:10301 20 | 21 | resources: {} 22 | # We usually recommend not to specify default resources and to leave this as a conscious 23 | # choice for the user. This also increases chances charts run on environments with little 24 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 25 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 26 | # limits: 27 | # cpu: 100m 28 | # memory: 128Mi 29 | # requests: 30 | # cpu: 100m 31 | # memory: 128Mi 32 | 33 | nodeSelector: {} 34 | 35 | tolerations: [] 36 | 37 | affinity: {} 38 | -------------------------------------------------------------------------------- /stable/lookout-sonarcheck-analyzer/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for lookout-sonarcheck-analyzer. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | replicaCount: 1 6 | 7 | image: 8 | repository: srcd/lookout-sonarcheck-analyzer 9 | tag: v0.0.1 10 | pullPolicy: IfNotPresent 11 | 12 | service: 13 | type: ClusterIP 14 | port: 10304 15 | 16 | app: 17 | port: 10304 18 | logLevel: info 19 | # dataServiceUrl: lookout:10301 20 | 21 | resources: {} 22 | # We usually recommend not to specify default resources and to leave this as a conscious 23 | # choice for the user. This also increases chances charts run on environments with little 24 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 25 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 26 | # limits: 27 | # cpu: 100m 28 | # memory: 128Mi 29 | # requests: 30 | # cpu: 100m 31 | # memory: 128Mi 32 | 33 | nodeSelector: {} 34 | 35 | tolerations: [] 36 | 37 | affinity: {} 38 | -------------------------------------------------------------------------------- /infra/hue/templates/ingress.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.ingress.enabled -}} 2 | {{- $fullName := include "hue.fullname" . -}} 3 | {{- $ingressPath := .Values.ingress.path -}} 4 | apiVersion: extensions/v1beta1 5 | kind: Ingress 6 | metadata: 7 | name: {{ $fullName }} 8 | labels: 9 | app: {{ template "hue.name" . }} 10 | chart: {{ template "hue.chart" . }} 11 | release: {{ .Release.Name }} 12 | heritage: {{ .Release.Service }} 13 | {{- with .Values.ingress.annotations }} 14 | annotations: 15 | {{ toYaml . | indent 4 }} 16 | {{- end }} 17 | spec: 18 | {{- if .Values.ingress.tls }} 19 | tls: 20 | {{- range .Values.ingress.tls }} 21 | - hosts: 22 | {{- range .hosts }} 23 | - {{ . }} 24 | {{- end }} 25 | secretName: {{ .secretName }} 26 | {{- end }} 27 | {{- end }} 28 | rules: 29 | {{- range .Values.ingress.hosts }} 30 | - host: {{ . }} 31 | http: 32 | paths: 33 | - path: {{ $ingressPath }} 34 | backend: 35 | serviceName: {{ $fullName }} 36 | servicePort: http 37 | {{- end }} 38 | {{- end }} 39 | -------------------------------------------------------------------------------- /stable/bblfsh-web/templates/tests/test.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: "{{ template "bblfsh-web.fullname" . }}-test" 5 | annotations: 6 | "helm.sh/hook": test-success 7 | spec: 8 | volumes: 9 | - name: tools 10 | emptyDir: {} 11 | - name: tests 12 | configMap: 13 | name: {{ template "bblfsh-web.fullname" . }}-test 14 | initContainers: 15 | - name: test-framework 16 | image: dduportal/bats:0.4.0 17 | command: 18 | - bash 19 | - -c 20 | - | 21 | set -ex 22 | # copy bats to tools dir 23 | cp -R /usr/local/libexec/ /tools/bats/ 24 | volumeMounts: 25 | - name: tools 26 | mountPath: /tools 27 | containers: 28 | - name: {{ .Release.Name }}-test 29 | image: alpine 30 | volumeMounts: 31 | - name: tools 32 | mountPath: /tools 33 | - name: tests 34 | mountPath: /tests 35 | command: 36 | - sh 37 | - -c 38 | - | 39 | apk add --no-cache curl bash 40 | /tools/bats/bats -t /tests/tests.sh 41 | restartPolicy: Never 42 | -------------------------------------------------------------------------------- /stable/gitbase/templates/tests/test.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: "{{ template "gitbase.fullname" . }}-test" 5 | annotations: 6 | "helm.sh/hook": test-success 7 | spec: 8 | volumes: 9 | - name: tools 10 | emptyDir: {} 11 | - name: tests 12 | configMap: 13 | name: {{ template "gitbase.fullname" . }}-test 14 | initContainers: 15 | - name: test-framework 16 | image: dduportal/bats:0.4.0 17 | command: 18 | - bash 19 | - -c 20 | - | 21 | set -ex 22 | # copy bats to tools dir 23 | cp -R /usr/local/libexec/ /tools/bats/ 24 | volumeMounts: 25 | - name: tools 26 | mountPath: /tools 27 | containers: 28 | - name: {{ .Release.Name }}-test 29 | image: alpine 30 | volumeMounts: 31 | - name: tools 32 | mountPath: /tools 33 | - name: tests 34 | mountPath: /tests 35 | command: 36 | - sh 37 | - -c 38 | - | 39 | apk add --no-cache mysql-client bash 40 | /tools/bats/bats -t /tests/tests.sh 41 | restartPolicy: Never 42 | -------------------------------------------------------------------------------- /stable/spark/templates/tests/test-webui.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: "{{ .Release.Name }}-test-webui" 5 | annotations: 6 | "helm.sh/hook": test-success 7 | spec: 8 | volumes: 9 | - name: tools 10 | emptyDir: {} 11 | - name: tests 12 | configMap: 13 | name: {{ .Release.Name }}-test-webui 14 | initContainers: 15 | - name: test-framework 16 | image: dduportal/bats:0.4.0 17 | command: 18 | - bash 19 | - -c 20 | - | 21 | set -ex 22 | # copy bats to tools dir 23 | cp -R /usr/local/libexec/ /tools/bats/ 24 | volumeMounts: 25 | volumeMounts: 26 | - name: tools 27 | mountPath: /tools 28 | containers: 29 | - name: {{ .Release.Name }}-test-webui 30 | image: alpine 31 | volumeMounts: 32 | - name: tools 33 | mountPath: /tools 34 | - name: tests 35 | mountPath: /tests 36 | command: 37 | - sh 38 | - -c 39 | - | 40 | apk add --no-cache bash curl 41 | /tools/bats/bats -t /tests/tests.sh 42 | restartPolicy: Never 43 | -------------------------------------------------------------------------------- /stable/gemini/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for gemini. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | replicaCount: 1 6 | 7 | image: 8 | repository: srcd/gemini 9 | tag: v0.7.0 10 | pullPolicy: IfNotPresent 11 | 12 | persistence: 13 | enabled: false 14 | keep: false # keep PVC on helm delete 15 | accessMode: ReadWriteOnce 16 | size: 10Gi 17 | # storageClass: 18 | 19 | bblfshd: 20 | enabled: false 21 | 22 | featureExtractor: 23 | enabled: false 24 | 25 | resources: {} 26 | # We usually recommend not to specify default resources and to leave this as a conscious 27 | # choice for the user. This also increases chances charts run on environments with little 28 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 29 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 30 | # limits: 31 | # cpu: 100m 32 | # memory: 128Mi 33 | # requests: 34 | # cpu: 100m 35 | # memory: 128Mi 36 | 37 | nodeSelector: {} 38 | 39 | tolerations: [] 40 | 41 | affinity: {} 42 | -------------------------------------------------------------------------------- /stable/sourced-ui/templates/ingress.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.ingress.enabled -}} 2 | {{- $fullName := include "sourced-ui.fullname" . -}} 3 | {{- $ingressPath := .Values.ingress.path -}} 4 | apiVersion: extensions/v1beta1 5 | kind: Ingress 6 | metadata: 7 | name: {{ $fullName }} 8 | labels: 9 | app: {{ template "sourced-ui.name" . }} 10 | chart: {{ template "sourced-ui.chart" . }} 11 | release: {{ .Release.Name }} 12 | heritage: {{ .Release.Service }} 13 | {{- with .Values.ingress.annotations }} 14 | annotations: 15 | {{ toYaml . | indent 4 }} 16 | {{- end }} 17 | spec: 18 | {{- if .Values.ingress.tls }} 19 | tls: 20 | {{- range .Values.ingress.tls }} 21 | - hosts: 22 | {{- range .hosts }} 23 | - {{ . }} 24 | {{- end }} 25 | secretName: {{ .secretName }} 26 | {{- end }} 27 | {{- end }} 28 | rules: 29 | {{- range .Values.ingress.hosts }} 30 | - host: {{ . }} 31 | http: 32 | paths: 33 | - path: {{ $ingressPath }} 34 | backend: 35 | serviceName: {{ $fullName }} 36 | servicePort: http 37 | {{- end }} 38 | {{- end }} 39 | -------------------------------------------------------------------------------- /infra/k8s-pod-headless-service-operator/templates/rbac.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.enabled }} 2 | kind: ClusterRole 3 | apiVersion: rbac.authorization.k8s.io/v1beta1 4 | metadata: 5 | name: {{ template "k8s-pod-headless-service-operator.fullname" . }} 6 | rules: 7 | - apiGroups: 8 | - "" 9 | resources: 10 | - pods 11 | verbs: 12 | - get 13 | - list 14 | - watch 15 | - apiGroups: 16 | - "" 17 | resources: 18 | - services 19 | - endpoints 20 | verbs: 21 | - get 22 | - list 23 | - watch 24 | - create 25 | - update 26 | - patch 27 | - delete 28 | --- 29 | kind: ClusterRoleBinding 30 | apiVersion: rbac.authorization.k8s.io/v1beta1 31 | metadata: 32 | name: {{ template "k8s-pod-headless-service-operator.fullname" . }} 33 | roleRef: 34 | apiGroup: rbac.authorization.k8s.io 35 | kind: ClusterRole 36 | name: {{ template "k8s-pod-headless-service-operator.fullname" . }} 37 | subjects: 38 | - kind: ServiceAccount 39 | name: {{ template "k8s-pod-headless-service-operator.fullname" . }} 40 | namespace: {{ .Release.Namespace }} 41 | {{- end }} 42 | -------------------------------------------------------------------------------- /stable/bblfsh-web/templates/ingress.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.ingress.enabled -}} 2 | {{- $fullName := include "bblfsh-web.fullname" . -}} 3 | {{- $ingressPath := .Values.ingress.path -}} 4 | apiVersion: extensions/v1beta1 5 | kind: Ingress 6 | metadata: 7 | name: {{ $fullName }} 8 | labels: 9 | app: {{ template "bblfsh-web.name" . }} 10 | chart: {{ template "bblfsh-web.chart" . }} 11 | release: {{ .Release.Name }} 12 | heritage: {{ .Release.Service }} 13 | {{- with .Values.ingress.annotations }} 14 | annotations: 15 | {{ toYaml . | indent 4 }} 16 | {{- end }} 17 | 18 | spec: 19 | {{- if .Values.ingress.tls }} 20 | tls: 21 | {{- range .Values.ingress.tls }} 22 | - hosts: 23 | {{- range .hosts }} 24 | - {{ . }} 25 | {{- end }} 26 | secretName: {{ .secretName }} 27 | {{- end }} 28 | {{- end }} 29 | rules: 30 | {{- range .Values.ingress.hosts }} 31 | - host: {{ . }} 32 | http: 33 | paths: 34 | - path: {{ $ingressPath }} 35 | backend: 36 | serviceName: {{ $fullName }} 37 | servicePort: http 38 | {{- end }} 39 | {{- end }} 40 | 41 | -------------------------------------------------------------------------------- /incubator/jupyter-single/templates/ingress.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.ingress.enabled -}} 2 | {{- $fullName := include "jupyter-single.fullname" . -}} 3 | {{- $ingressPath := .Values.ingress.path -}} 4 | apiVersion: extensions/v1beta1 5 | kind: Ingress 6 | metadata: 7 | name: {{ $fullName }} 8 | labels: 9 | app: {{ template "jupyter-single.name" . }} 10 | chart: {{ template "jupyter-single.chart" . }} 11 | release: {{ .Release.Name }} 12 | heritage: {{ .Release.Service }} 13 | {{- with .Values.ingress.annotations }} 14 | annotations: 15 | {{ toYaml . | indent 4 }} 16 | {{- end }} 17 | spec: 18 | {{- if .Values.ingress.tls }} 19 | tls: 20 | {{- range .Values.ingress.tls }} 21 | - hosts: 22 | {{- range .hosts }} 23 | - {{ . }} 24 | {{- end }} 25 | secretName: {{ .secretName }} 26 | {{- end }} 27 | {{- end }} 28 | rules: 29 | {{- range .Values.ingress.hosts }} 30 | - host: {{ . }} 31 | http: 32 | paths: 33 | - path: {{ $ingressPath }} 34 | backend: 35 | serviceName: {{ $fullName }} 36 | servicePort: http 37 | {{- end }} 38 | {{- end }} 39 | -------------------------------------------------------------------------------- /infra/ml-deployment/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for ml-deployment. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | replicaCount: 1 6 | 7 | image: 8 | repository: srcd/ml-infra-tf-cuda-python 9 | tag: latest 10 | pullPolicy: Always 11 | 12 | imagePullSecrets: [] 13 | nameOverride: "" 14 | fullnameOverride: "" 15 | 16 | service: 17 | type: ClusterIP 18 | ports: 19 | - port: 8123 20 | - port: 9000 21 | headless: false 22 | 23 | app: 24 | args: [] 25 | 26 | resources: {} 27 | # We usually recommend not to specify default resources and to leave this as a conscious 28 | # choice for the user. This also increases chances charts run on environments with little 29 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 30 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 31 | # limits: 32 | # cpu: 100m 33 | # memory: 128Mi 34 | # requests: 35 | # cpu: 100m 36 | # memory: 128Mi 37 | 38 | nodeSelector: {} 39 | 40 | tolerations: [] 41 | 42 | serviceAccount: 43 | name: reader 44 | automountToken: true 45 | -------------------------------------------------------------------------------- /infra/website-redirect/templates/tests/test-pod.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: "{{ .Release.Name }}-test-redirect" 5 | annotations: 6 | "helm.sh/hook": test-success 7 | spec: 8 | volumes: 9 | - name: tools 10 | emptyDir: {} 11 | - name: tests 12 | configMap: 13 | name: {{ .Release.Name }}-tests 14 | initContainers: 15 | - name: test-framework 16 | image: dduportal/bats:0.4.0 17 | command: 18 | - bash 19 | - -c 20 | - | 21 | set -ex 22 | # copy bats to tools dir 23 | cp -R /usr/local/libexec/ /tools/bats/ 24 | volumeMounts: 25 | volumeMounts: 26 | - name: tools 27 | mountPath: /tools 28 | containers: 29 | - name: {{ .Release.Name }}-test-redirect 30 | image: alpine 31 | volumeMounts: 32 | - name: tools 33 | mountPath: /tools 34 | - name: tests 35 | mountPath: /tests 36 | env: 37 | - name: REDIRECTS 38 | value: test 39 | command: 40 | - sh 41 | - -c 42 | - | 43 | apk add --no-cache bash curl 44 | /tools/bats/bats -t /tests/tests.sh 45 | restartPolicy: Never 46 | -------------------------------------------------------------------------------- /infra/hue/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "hue.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "hue.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "hue.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /infra/scylla/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "scylla.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "scylla.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "scylla.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/sourced-ui/templates/admin-secret.yaml: -------------------------------------------------------------------------------- 1 | # create secrets only if there is no name for existing secrets 2 | {{- if not .Values.admin.secretName }} 3 | --- 4 | apiVersion: v1 5 | kind: Secret 6 | metadata: 7 | name: {{ template "sourced-ui.admin.secretName" . }} 8 | labels: 9 | app: {{ template "sourced-ui.name" . }} 10 | chart: {{ template "sourced-ui.chart" . }} 11 | release: {{ .Release.Name }} 12 | heritage: {{ .Release.Service }} 13 | type: Opaque 14 | data: 15 | {{ default "password" .Values.admin.secretKey }}: "{{ default "admin" .Values.admin.password | b64enc }}" 16 | --- 17 | apiVersion: v1 18 | kind: Secret 19 | metadata: 20 | name: {{ template "sourced-ui.admin.hookSecretName" . }} 21 | labels: 22 | app: {{ template "sourced-ui.name" . }} 23 | chart: {{ template "sourced-ui.chart" . }} 24 | release: {{ .Release.Name }} 25 | heritage: {{ .Release.Service }} 26 | annotations: 27 | "helm.sh/hook": "pre-install,pre-upgrade" 28 | "helm.sh/hook-delete-policy": "hook-succeeded,hook-failed" 29 | type: Opaque 30 | data: 31 | {{ default "password" .Values.admin.secretKey }}: "{{ default "admin" .Values.admin.password | b64enc }}" 32 | {{- end }} 33 | -------------------------------------------------------------------------------- /stable/sourced-ui/templates/gitbase-secret.yaml: -------------------------------------------------------------------------------- 1 | # create secrets only if there is no name for existing secrets 2 | {{- if .Values.gitbase.password }} 3 | --- 4 | apiVersion: v1 5 | kind: Secret 6 | metadata: 7 | name: {{ template "sourced-ui.gitbase.secretName" . }} 8 | labels: 9 | app: {{ template "sourced-ui.name" . }} 10 | chart: {{ template "sourced-ui.chart" . }} 11 | release: {{ .Release.Name }} 12 | heritage: {{ .Release.Service }} 13 | type: Opaque 14 | data: 15 | {{ default "password" .Values.gitbase.secretKey }}: "{{ default "" .Values.gitbase.password | b64enc }}" 16 | --- 17 | apiVersion: v1 18 | kind: Secret 19 | metadata: 20 | name: {{ template "sourced-ui.gitbase.hookSecretName" . }} 21 | labels: 22 | app: {{ template "sourced-ui.name" . }} 23 | chart: {{ template "sourced-ui.chart" . }} 24 | release: {{ .Release.Name }} 25 | heritage: {{ .Release.Service }} 26 | annotations: 27 | "helm.sh/hook": "pre-install,pre-upgrade" 28 | "helm.sh/hook-delete-policy": "hook-succeeded,hook-failed" 29 | type: Opaque 30 | data: 31 | {{ default "password" .Values.gitbase.secretKey }}: "{{ default "" .Values.gitbase.password | b64enc }}" 32 | {{- end }} 33 | -------------------------------------------------------------------------------- /stable/bblfshd/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "bblfshd.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "bblfshd.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "bblfshd.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/gemini/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "gemini.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "gemini.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "gemini.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/lookout/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "lookout.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "lookout.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "lookout.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/bblfsh-web/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "bblfsh-web.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "bblfsh-web.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "bblfsh-web.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /infra/code-annotation/templates/ingress.yaml: -------------------------------------------------------------------------------- 1 | {{- $serviceName := include "fullname" . -}} 2 | {{- $servicePort := .Values.service.codeAnnotation.externalPort -}} 3 | apiVersion: extensions/v1beta1 4 | kind: Ingress 5 | metadata: 6 | name: {{ template "fullname" . }} 7 | labels: 8 | app: {{ template "name" . }} 9 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 10 | release: {{ .Release.Name }} 11 | heritage: {{ .Release.Service }} 12 | annotations: 13 | {{- range $key, $value := .Values.ingress.annotations }} 14 | {{ $key }}: {{ $value | quote }} 15 | {{- end }} 16 | kubernetes.io/ingress.global-static-ip-name: {{ required "Missing .Values.ingress.globalStaticIpName" .Values.ingress.globalStaticIpName }} 17 | spec: 18 | rules: 19 | - host: {{ required "Hostname is missing" .Values.ingress.hostname }} 20 | http: 21 | paths: 22 | - path: /* 23 | backend: 24 | serviceName: {{ $serviceName }} 25 | servicePort: {{ $servicePort }} 26 | 27 | {{- if .Values.ingress.tls }} 28 | tls: 29 | - secretName: "{{ template "fullname" . }}-tls" 30 | hosts: 31 | - {{ .Values.ingress.hostname }} 32 | {{- end }} 33 | -------------------------------------------------------------------------------- /incubator/jupyter-single/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "jupyter-single.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "jupyter-single.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "jupyter-single.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /infra/ghost-gcs-backup/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "ghost-gcs-backup.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "ghost-gcs-backup.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "ghost-gcs-backup.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /infra/website-redirect/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "website-redirect.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "website-redirect.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "website-redirect.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /infra/nfs-gluster-bridge/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "nfs-gluster-bridge.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "nfs-gluster-bridge.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "nfs-gluster-bridge.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/spark/Chart.yaml: -------------------------------------------------------------------------------- 1 | ## Copyright 2016 The Kubernetes Authors. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | # Inspired from official spark chart 16 | # https://github.com/kubernetes/charts/tree/master/stable/spark 17 | 18 | apiVersion: v1 19 | name: spark 20 | version: 1.2.0 21 | appVersion: 2.2.0 22 | description: Fast and general-purpose cluster computing system. 23 | home: http://spark.apache.org 24 | icon: http://spark.apache.org/images/spark-logo-trademark.png 25 | sources: 26 | - https://github.com/kubernetes/kubernetes/tree/master/examples/spark 27 | - https://github.com/apache/spark 28 | maintainers: 29 | - email: infra@sourced.tech 30 | name: Infrastructure Team 31 | -------------------------------------------------------------------------------- /infra/ghost-gcs-backup/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for ghost-gcs-backup. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | image: 6 | repository: srcd/ghost-gcs-backup 7 | tag: v0.0.1 8 | pullPolicy: IfNotPresent 9 | 10 | app: 11 | ghostPostLimit: 1000 12 | # ghostEndpoint: https://sourced.ghost.io 13 | # ghostAPIKey: 14 | # ghostAPIKeySecretName: 15 | # gcsBucket: my-bucket 16 | 17 | googleApplicationCredentialsSecret: 18 | enabled: false 19 | # name: my-secret 20 | # key: secret-key 21 | 22 | job: {} 23 | # schedule: * * * * * 24 | # successfulJobsHistoryLimit: 2 25 | # activeDeadlineSeconds: 60 26 | 27 | resources: {} 28 | # We usually recommend not to specify default resources and to leave this as a conscious 29 | # choice for the user. This also increases chances charts run on environments with little 30 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 31 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 32 | # limits: 33 | # cpu: 100m 34 | # memory: 128Mi 35 | # requests: 36 | # cpu: 100m 37 | # memory: 128Mi 38 | 39 | nodeSelector: {} 40 | 41 | tolerations: [] 42 | 43 | affinity: {} 44 | -------------------------------------------------------------------------------- /infra/online-net-stock-alert/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "online-net-stock-alert.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "online-net-stock-alert.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "online-net-stock-alert.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/lookout-style-analyzer/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "lookout-style-analyzer.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "lookout-style-analyzer.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "lookout-style-analyzer.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/lookout-typos-analyzer/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "lookout-typos-analyzer.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "lookout-typos-analyzer.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "lookout-typos-analyzer.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /infra/prometheus-external-monitor/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "prometheus-external-monitor.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "prometheus-external-monitor.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "prometheus-external-monitor.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/lookout-gometalint-analyzer/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "lookout-gometalint-analyzer.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "lookout-gometalint-analyzer.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "lookout-gometalint-analyzer.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/lookout-sonarcheck-analyzer/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "lookout-sonarcheck-analyzer.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "lookout-sonarcheck-analyzer.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "lookout-sonarcheck-analyzer.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/lookout-terraform-analyzer/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "lookout-terraform-analyzer.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "lookout-terraform-analyzer.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "lookout-terraform-analyzer.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /infra/google-cloud-dns-healthcheck/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "google-cloud-dns-healthcheck.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "google-cloud-dns-healthcheck.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "google-cloud-dns-healthcheck.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /infra/landing/README.md: -------------------------------------------------------------------------------- 1 | # Landing 2 | 3 | This chart deploys [landing](https://github.com/src-d/landing) source{d} web page 4 | 5 | ## Pre-requisites 6 | 7 | * Kubernetes 1.4+ with Beta APIs enabled 8 | 9 | ## Installing the chart 10 | 11 | All parameters under `settings` in [values.yaml](/landing/values.yaml) must be provided. 12 | 13 | ``` 14 | helm install -n --set "\ 15 | ingress.hosts={srcd.run,www.srcd.run},\ 16 | ingress.globalStaticIpName=landing-srcd-run,\ 17 | image.tag=your-favourite.tag\ 18 | ``` 19 | 20 | These are the mandatory parameters that need to be provided or installation will fail. 21 | Other parameters can be provided too but, if not, a default value will be used. 22 | 23 | # Configuration 24 | 25 | Please refer to [values.yaml](values.yaml) for the full run-down on defaults. 26 | 27 | To override any of those default values, 28 | specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. 29 | 30 | Alternatively, a YAML file that specifies the values for the parameters can be provided 31 | while installing the chart. 32 | For example, 33 | 34 | ```bash 35 | $ helm install --name -f values.yaml 36 | ``` 37 | 38 | > **Tip**: You can use the default [values.yaml](values.yaml) 39 | -------------------------------------------------------------------------------- /infra/kubernetes-local-pv-provisioner/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "kubernetes-local-pv-provisioner.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "kubernetes-local-pv-provisioner.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "kubernetes-local-pv-provisioner.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/gitbase/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for gitbase. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | replicaCount: 1 6 | 7 | image: 8 | repository: srcd/gitbase 9 | tag: v0.18.0 10 | pullPolicy: IfNotPresent 11 | 12 | service: 13 | type: ClusterIP 14 | port: 3306 15 | headless: false 16 | 17 | storage: 18 | enablePVC: true 19 | size: 10Gi 20 | customVolumesSpec: {} 21 | # subPath: 22 | 23 | settings: 24 | user: gitbase 25 | password: gitbase 26 | # podManagementPolicy: OrderedReady 27 | 28 | resources: {} 29 | # We usually recommend not to specify default resources and to leave this as a conscious 30 | # choice for the user. This also increases chances charts run on environments with little 31 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 32 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 33 | # limits: 34 | # cpu: 100m 35 | # memory: 128Mi 36 | # requests: 37 | # cpu: 100m 38 | # memory: 128Mi 39 | 40 | nodeSelector: {} 41 | 42 | tolerations: [] 43 | 44 | affinity: {} 45 | 46 | bblfshd-sidecar: 47 | image: 48 | # The minimum requirement is v2.10.0 49 | tag: v2.10.0 50 | 51 | extraEnv: [] 52 | -------------------------------------------------------------------------------- /infra/k8s-pod-headless-service-operator/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "k8s-pod-headless-service-operator.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "k8s-pod-headless-service-operator.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "k8s-pod-headless-service-operator.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /stable/gitbase/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 1. Get the application URL by running these commands: 2 | {{- if contains "NodePort" .Values.service.type }} 3 | export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "gitbase.fullname" . }}) 4 | export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") 5 | echo http://$NODE_IP:$NODE_PORT 6 | {{- else if contains "LoadBalancer" .Values.service.type }} 7 | NOTE: It may take a few minutes for the LoadBalancer IP to be available. 8 | You can watch the status of by running 'kubectl get svc -w {{ template "gitbase.fullname" . }}' 9 | export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "gitbase.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') 10 | echo http://$SERVICE_IP:{{ .Values.service.port }} 11 | {{- else if contains "ClusterIP" .Values.service.type }} 12 | export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "gitbase.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") 13 | echo "Visit http://127.0.0.1:8080 to use your application" 14 | kubectl port-forward $POD_NAME 8080:80 15 | {{- end }} 16 | -------------------------------------------------------------------------------- /infra/scylla/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for scylla. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | replicaCount: 1 6 | 7 | image: 8 | repository: scylladb/scylla 9 | tag: 2.0.2 10 | pullPolicy: IfNotPresent 11 | 12 | service: 13 | type: ClusterIP 14 | externalPort: 9042 15 | internalPort: 9042 16 | name: scylla 17 | 18 | statefulset: 19 | intraPort: 7000 20 | intraName: intra-node 21 | tlsIntraPort: 7001 22 | tlsIntraName: tls-intra-node 23 | jmxPort: 7199 24 | jmxName: jmx 25 | cqlPort: 9042 26 | cqlName: cql 27 | 28 | persistence: 29 | enabled: false 30 | ## If defined, storageClassName: 31 | ## If set to "-", storageClassName: "", which disables dynamic provisioning 32 | ## If undefined (the default) or set to null, no storageClassName spec is 33 | ## set, choosing the default provisioner. (gp2 on AWS, standard on 34 | ## GKE, AWS & OpenStack) 35 | ## 36 | # storageClass: "-" 37 | accessModes: 38 | - ReadWriteOnce 39 | size: 8Gi 40 | annotations: {} 41 | 42 | config: 43 | # This breaks the Helm style guide to later add more smarter configuration handling as Scylla uses YAML. 44 | commitlog_segment_size_in_mb: 256 45 | write_request_timeout_in_ms: 2000 46 | 47 | # nodeSelector: {} 48 | -------------------------------------------------------------------------------- /infra/nfs-gluster-bridge/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 1. Get the application URL by running these commands: 2 | {{- if contains "NodePort" .Values.service.type }} 3 | export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "nfs-gluster-bridge.fullname" . }}) 4 | export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") 5 | echo http://$NODE_IP:$NODE_PORT 6 | {{- else if contains "LoadBalancer" .Values.service.type }} 7 | NOTE: It may take a few minutes for the LoadBalancer IP to be available. 8 | You can watch the status of by running 'kubectl get svc -w {{ template "nfs-gluster-bridge.fullname" . }}' 9 | export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "nfs-gluster-bridge.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') 10 | echo http://$SERVICE_IP:{{ .Values.service.port }} 11 | {{- else if contains "ClusterIP" .Values.service.type }} 12 | export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "nfs-gluster-bridge.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") 13 | echo "Visit http://127.0.0.1:8080 to use your application" 14 | kubectl port-forward $POD_NAME 8080:80 15 | {{- end }} 16 | -------------------------------------------------------------------------------- /stable/gitbase/templates/tests/test-configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: {{ template "gitbase.fullname" . }}-test 5 | labels: 6 | app: {{ template "gitbase.fullname" . }} 7 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 8 | release: "{{ .Release.Name }}" 9 | heritage: "{{ .Release.Service }}" 10 | data: 11 | tests.sh: |- 12 | @test "Testing gitbase connection" { 13 | command="echo 'SELECT 1;' | mysql --host={{ template "gitbase.fullname" . }} --port={{ .Values.service.port }} --user={{ .Values.settings.user }} --password={{ .Values.settings.password }}" 14 | run bash -c "${command}" 15 | echo "command = [${command}]" 16 | echo "output = [${output}]" 17 | echo "status = [${status}]" 18 | [ "${status}" -eq "0" ] 19 | } 20 | 21 | @test "Testing gitbase and bblfshd" { 22 | temp_file=$(mktemp) 23 | echo 'SELECT uast("print f", "python");' > "${temp_file}" 24 | command="cat ${temp_file} | mysql --host={{ template "gitbase.fullname" . }} --port={{ .Values.service.port }} --user={{ .Values.settings.user }} --password={{ .Values.settings.password }}" 25 | run bash -c "${command}" 26 | echo "command = [${command}]" 27 | echo "output = [${output}]" 28 | echo "status = [${status}]" 29 | [ "${status}" -eq "0" ] 30 | } 31 | -------------------------------------------------------------------------------- /infra/prometheus-external-monitor/templates/servicemonitor.yaml: -------------------------------------------------------------------------------- 1 | {{- $root := .}} 2 | {{- range .Values.endpoints }} 3 | --- 4 | apiVersion: monitoring.coreos.com/v1 5 | kind: ServiceMonitor 6 | metadata: 7 | name: {{ template "prometheus-external-monitor.fullname" $root }}-{{ .name }} 8 | labels: 9 | app: {{ template "prometheus-external-monitor.name" $root }}-{{ .name }} 10 | chart: {{ template "prometheus-external-monitor.chart" $root }} 11 | release: {{ $root.Release.Name }} 12 | heritage: {{ $root.Release.Service }} 13 | spec: 14 | selector: 15 | matchLabels: 16 | app: {{ template "prometheus-external-monitor.name" $root }}-{{ .name }} 17 | chart: {{ template "prometheus-external-monitor.chart" $root }} 18 | release: {{ $root.Release.Name }} 19 | heritage: {{ $root.Release.Service }} 20 | endpoints: 21 | - port: metrics 22 | interval: {{ $root.Values.serviceMonitor.interval }} 23 | path: {{ .path | default "/metrics" }} 24 | {{- if .scheme }} 25 | scheme: {{ .scheme }} 26 | {{- end }} 27 | {{- if .basicAuth }} 28 | basicAuth: 29 | {{ toYaml .basicAuth | indent 8 }} 30 | {{- end }} 31 | {{- if .tlsConfig }} 32 | tlsConfig: 33 | {{ toYaml .tlsConfig | indent 8 }} 34 | {{- end }} 35 | 36 | namespaceSelector: 37 | any: true 38 | {{- end }} 39 | -------------------------------------------------------------------------------- /infra/website-redirect/templates/ingress.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.ingress.enabled -}} 2 | {{- $serviceName := include "website-redirect.fullname" . -}} 3 | {{- $servicePort := .Values.service.port -}} 4 | apiVersion: extensions/v1beta1 5 | kind: Ingress 6 | metadata: 7 | name: {{ template "website-redirect.fullname" . }} 8 | labels: 9 | app: {{ template "website-redirect.name" . }} 10 | chart: {{ template "website-redirect.chart" . }} 11 | release: {{ .Release.Name }} 12 | heritage: {{ .Release.Service }} 13 | annotations: 14 | {{- range $key, $value := .Values.ingress.annotations }} 15 | {{ $key }}: {{ $value | quote }} 16 | {{- end }} 17 | kubernetes.io/ingress.global-static-ip-name: {{ required "Static IP is missing" .Values.ingress.globalStaticIpName }} 18 | 19 | spec: 20 | rules: 21 | {{- range $redirect := .Values.redirects }} 22 | - host: {{ required "Hostname is missing" $redirect.hostname }} 23 | http: 24 | paths: 25 | - path: /* 26 | backend: 27 | serviceName: {{ $serviceName }} 28 | servicePort: {{ $servicePort }} 29 | {{- end }} 30 | tls: 31 | {{- range $redirect := .Values.redirects }} 32 | - secretName: {{ $redirect.hostname | replace "." "-" }}-tls 33 | hosts: 34 | - {{ $redirect.hostname }} 35 | {{- end }} 36 | {{- end }} 37 | -------------------------------------------------------------------------------- /stable/sourced-ui/templates/postgres-secret.yaml: -------------------------------------------------------------------------------- 1 | # create secrets only if there is no name for existing secrets 2 | {{- required "postgres.secretName or postgres.password are missing" (or .Values.postgres.secretName .Values.postgres.password) }} 3 | {{- if not .Values.postgres.secretName }} 4 | --- 5 | apiVersion: v1 6 | kind: Secret 7 | metadata: 8 | name: {{ template "sourced-ui.postgres.secretName" . }} 9 | labels: 10 | app: {{ template "sourced-ui.name" . }} 11 | chart: {{ template "sourced-ui.chart" . }} 12 | release: {{ .Release.Name }} 13 | heritage: {{ .Release.Service }} 14 | type: Opaque 15 | data: 16 | {{ default "password" .Values.postgres.secretKey }}: "{{ required "missing postgres.password" .Values.postgres.password | b64enc }}" 17 | --- 18 | apiVersion: v1 19 | kind: Secret 20 | metadata: 21 | name: {{ template "sourced-ui.postgres.hookSecretName" . }} 22 | labels: 23 | app: {{ template "sourced-ui.name" . }} 24 | chart: {{ template "sourced-ui.chart" . }} 25 | release: {{ .Release.Name }} 26 | heritage: {{ .Release.Service }} 27 | annotations: 28 | "helm.sh/hook": "pre-install,pre-upgrade" 29 | "helm.sh/hook-delete-policy": "hook-succeeded,hook-failed" 30 | type: Opaque 31 | data: 32 | {{ default "password" .Values.postgres.secretKey }}: "{{ required "missing postgres.password" .Values.postgres.password | b64enc }}" 33 | {{- end }} 34 | -------------------------------------------------------------------------------- /stable/bblfshd/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 1. Get the application URL by running these commands: 2 | {{- if contains "NodePort" .Values.service.type }} 3 | export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "bblfshd.fullname" . }}) 4 | export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") 5 | You can access bblfsh server in $SERVICE_IP:{{ .Values.service.externalPort }} 6 | {{- else if contains "LoadBalancer" .Values.service.type }} 7 | NOTE: It may take a few minutes for the LoadBalancer IP to be available. 8 | You can watch the status of by running 'kubectl get svc -w {{ template "bblfshd.fullname" . }}' 9 | export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "bblfshd.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') 10 | You can access bblfsh server in $SERVICE_IP:{{ .Values.service.externalPort }} 11 | {{- else if contains "ClusterIP" .Values.service.type }} 12 | export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "bblfshd.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") 13 | You can access bblfsh server in localhost:9432 14 | kubectl port-forward $POD_NAME 9432:{{ .Values.service.externalPort }} 15 | {{- end }} 16 | -------------------------------------------------------------------------------- /infra/ml-deployment/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 1. Get the application URL by running these commands: 2 | {{- if contains "NodePort" .Values.service.type }} 3 | export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "ml-deployment.fullname" . }}) 4 | export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") 5 | echo http://$NODE_IP:$NODE_PORT 6 | {{- else if contains "LoadBalancer" .Values.service.type }} 7 | NOTE: It may take a few minutes for the LoadBalancer IP to be available. 8 | You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "ml-deployment.fullname" . }}' 9 | export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "ml-deployment.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') 10 | echo http://$SERVICE_IP:{{ .Values.service.port }} 11 | {{- else if contains "ClusterIP" .Values.service.type }} 12 | export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "ml-deployment.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") 13 | echo "Visit http://127.0.0.1:8080 to use your application" 14 | kubectl port-forward $POD_NAME 8080:80 15 | {{- end }} 16 | -------------------------------------------------------------------------------- /stable/spark-thrift-server/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "spark-thrift-server.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "spark-thrift-server.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "spark-thrift-server.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | 34 | {{- define "spark-thrift-server.gitbase.secretName" -}} 35 | {{- printf "gitbase-%s" (include "spark-thrift-server.fullname" .) -}} 36 | {{- end -}} 37 | -------------------------------------------------------------------------------- /infra/google-cloud-dns-healthcheck/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for google-cloud-dns-healthcheck. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | image: 6 | repository: srcd/google-cloud-dns-healthcheck 7 | tag: v0.1.0 8 | pullPolicy: IfNotPresent 9 | 10 | app: {} 11 | # recordName: test.hola.com 12 | # project: my-google-project 13 | # managedZone: my-google-dns-managed-zone 14 | # rrdatas: 147.135.39.104,147.135.39.105 15 | # healthcheckPath: /health 16 | # httpScheme: http 17 | # httpTimeout: 5 18 | # httpPort: 8080 19 | # dryRun: false 20 | 21 | # googleApplicationCredentialsSecret: 22 | # name: my-secret 23 | # key: secret-key 24 | 25 | job: {} 26 | # schedule: * * * * * 27 | # successfulJobsHistoryLimit: 2 28 | # activeDeadlineSeconds: 60 29 | 30 | resources: {} 31 | # We usually recommend not to specify default resources and to leave this as a conscious 32 | # choice for the user. This also increases chances charts run on environments with little 33 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 34 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 35 | # limits: 36 | # cpu: 100m 37 | # memory: 128Mi 38 | # requests: 39 | # cpu: 100m 40 | # memory: 128Mi 41 | 42 | nodeSelector: {} 43 | 44 | tolerations: [] 45 | 46 | affinity: {} 47 | -------------------------------------------------------------------------------- /incubator/spark-api-jupyter/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 1. Get the application URL by running these commands: 2 | {{- if .Values.ingress.hostname }} 3 | http://{{- .Values.ingress.hostname }} 4 | {{- else if contains "NodePort" .Values.service.type }} 5 | export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "fullname" . }}) 6 | export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") 7 | echo http://$NODE_IP:$NODE_PORT 8 | {{- else if contains "LoadBalancer" .Values.service.type }} 9 | NOTE: It may take a few minutes for the LoadBalancer IP to be available. 10 | You can watch the status of by running 'kubectl get svc -w {{ template "fullname" . }}' 11 | export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') 12 | echo http://$SERVICE_IP:{{ .Values.service.externalPort }} 13 | {{- else if contains "ClusterIP" .Values.service.type }} 14 | export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") 15 | echo "Visit http://127.0.0.1:8080 to use your application" 16 | kubectl port-forward $POD_NAME 8080:{{ .Values.service.externalPort }} 17 | {{- end }} 18 | -------------------------------------------------------------------------------- /infra/online-net-stock-alert/templates/cronjob.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: batch/v1beta1 3 | kind: CronJob 4 | metadata: 5 | name: {{ template "online-net-stock-alert.fullname" . }} 6 | spec: 7 | schedule: "{{ .Values.schedule }}" 8 | failedJobsHistoryLimit: 1 9 | successfulJobsHistoryLimit: 1 10 | suspend: {{ .Values.suspend }} 11 | jobTemplate: 12 | spec: 13 | template: 14 | spec: 15 | restartPolicy: Never 16 | containers: 17 | - name: {{ .Chart.Name }} 18 | image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" 19 | imagePullPolicy: {{ .Values.image.pullPolicy }} 20 | command: [ "/opt/online.sh", "{{ .Values.serverType }}" ] 21 | env: 22 | - name: SLACKTEE_WEBHOOK 23 | valueFrom: 24 | secretKeyRef: 25 | name: {{ required "secretName is missing" .Values.secretName}} 26 | key: SLACKTEE_WEBHOOK 27 | resources: 28 | {{ toYaml .Values.resources | indent 14 }} 29 | {{- with .Values.nodeSelector }} 30 | nodeSelector: 31 | {{ toYaml . | indent 10 }} 32 | {{- end }} 33 | {{- with .Values.affinity }} 34 | affinity: 35 | {{ toYaml . | indent 10 }} 36 | {{- end }} 37 | {{- with .Values.tolerations }} 38 | tolerations: 39 | {{ toYaml . | indent 10 }} 40 | {{- end }} 41 | -------------------------------------------------------------------------------- /stable/spark/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create fully qualified names. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | */}} 13 | {{- define "master-fullname" -}} 14 | {{- $name := default .Chart.Name .Values.nameOverride -}} 15 | {{- printf "%s-%s-master" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 16 | {{- end -}} 17 | 18 | {{- define "webui-fullname" -}} 19 | {{- $name := default .Chart.Name .Values.nameOverride -}} 20 | {{- printf "%s-%s-webui" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 21 | {{- end -}} 22 | 23 | {{- define "livy-fullname" -}} 24 | {{- $name := default .Chart.Name .Values.nameOverride -}} 25 | {{- printf "%s-%s-livy" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 26 | {{- end -}} 27 | 28 | {{- define "worker-fullname" -}} 29 | {{- $name := default .Chart.Name .Values.nameOverride -}} 30 | {{- printf "%s-%s-worker" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 31 | {{- end -}} 32 | 33 | {{- define "webui-proxy-fullname" -}} 34 | {{- $name := default .Chart.Name .Values.nameOverride -}} 35 | {{- printf "%s-%s-webui-proxy" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 36 | {{- end -}} 37 | -------------------------------------------------------------------------------- /stable/rovers/templates/initdb-job.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: batch/v1 2 | kind: Job 3 | metadata: 4 | name: {{ template "fullname" . }} 5 | labels: 6 | app: {{ template "name" . }} 7 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | annotations: 11 | "helm.sh/hook": pre-install 12 | "helm.sh/hook-delete-policy": hook-succeeded 13 | spec: 14 | template: 15 | metadata: 16 | name: {{ template "fullname" . }} 17 | labels: 18 | app: {{ template "name" . }} 19 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 20 | release: {{ .Release.Name }} 21 | heritage: {{ .Release.Service }} 22 | spec: 23 | restartPolicy: Never 24 | containers: 25 | - name: rovers-initdb 26 | image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" 27 | imagePullPolicy: {{ .Values.image.pullPolicy }} 28 | args: 29 | - rovers 30 | - initdb 31 | env: 32 | - name: CONFIG_DBUSER 33 | value: "{{ .Values.db.user }}" 34 | - name: CONFIG_DBPASS 35 | value: "{{ .Values.db.pass }}" 36 | - name: CONFIG_DBHOST 37 | value: "{{ .Values.db.host }}" 38 | - name: CONFIG_DBNAME 39 | value: "{{ .Values.db.name }}" 40 | 41 | -------------------------------------------------------------------------------- /ct-install.yaml: -------------------------------------------------------------------------------- 1 | remote: origin 2 | target-branch: master 3 | validate-maintainers: false 4 | chart-repos: 5 | - stable=https://kubernetes-charts.storage.googleapis.com/ 6 | - incubator=https://kubernetes-charts-incubator.storage.googleapis.com/ 7 | - srcd-legacy=https://src-d.github.io/charts/ 8 | - srcd-stable=https://src-d.github.io/charts/stable 9 | - srcd-incubator=https://src-d.github.io/charts/incubator 10 | - srcd-infra=https://src-d.github.io/charts/infra 11 | helm-extra-args: --timeout 600 12 | chart-dirs: 13 | - stable 14 | - incubator 15 | - infra 16 | # These charts are excluded from being installed to test since they contain no useful tests 17 | # Some are included as they do not have the required dependancies to test 18 | excluded-charts: 19 | - bblfshd-sidecar 20 | - borges 21 | - ewbf-miner 22 | - gemini 23 | - git-server 24 | - google-cloud-dns-healthcheck 25 | - hue 26 | - jupyter-single 27 | - kubernetes-local-pv-provisioner 28 | - lookout 29 | - lookout-gometalint-analyzer 30 | - lookout-sonarcheck-analyzer 31 | - lookout-style-analyzer 32 | - lookout-terraform-analyzer 33 | - lookout-typos-analyzer 34 | - nfs-gluster-bridge 35 | - online-net-stock-alert 36 | - prometheus-external-monitor 37 | - rovers 38 | - scylla 39 | - sourced-ui 40 | - spark-api-jupyter 41 | - spark-thrift-server 42 | - k8s-pod-headless-service-operator 43 | - landing 44 | - code-annotation 45 | - ml-deployment 46 | -------------------------------------------------------------------------------- /incubator/jupyter-single/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for jupyter-single. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | image: 6 | # repository: nginx 7 | # tag: stable 8 | command: [] 9 | pullPolicy: IfNotPresent 10 | 11 | persistence: 12 | enabled: false 13 | keep: false # keep PVC on helm delete 14 | accessMode: ReadWriteOnce 15 | size: 10Gi 16 | # storageClass: 17 | 18 | service: 19 | type: ClusterIP 20 | port: 80 21 | 22 | ingress: 23 | enabled: false 24 | annotations: {} 25 | # kubernetes.io/ingress.class: nginx 26 | # kubernetes.io/tls-acme: "true" 27 | path: / 28 | hosts: 29 | - chart-example.local 30 | tls: [] 31 | # - secretName: chart-example-tls 32 | # hosts: 33 | # - chart-example.local 34 | 35 | rbac: 36 | serviceAccountName: "" 37 | 38 | resources: {} 39 | # We usually recommend not to specify default resources and to leave this as a conscious 40 | # choice for the user. This also increases chances charts run on environments with little 41 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 42 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 43 | # limits: 44 | # cpu: 100m 45 | # memory: 128Mi 46 | # requests: 47 | # cpu: 100m 48 | # memory: 128Mi 49 | 50 | nodeSelector: {} 51 | 52 | tolerations: [] 53 | 54 | affinity: {} 55 | -------------------------------------------------------------------------------- /infra/hue/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 1. Get the application URL by running these commands: 2 | {{- if .Values.ingress.enabled }} 3 | {{- range .Values.ingress.hosts }} 4 | http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }} 5 | {{- end }} 6 | {{- else if contains "NodePort" .Values.service.type }} 7 | export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "hue.fullname" . }}) 8 | export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") 9 | echo http://$NODE_IP:$NODE_PORT 10 | {{- else if contains "LoadBalancer" .Values.service.type }} 11 | NOTE: It may take a few minutes for the LoadBalancer IP to be available. 12 | You can watch the status of by running 'kubectl get svc -w {{ template "hue.fullname" . }}' 13 | export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "hue.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') 14 | echo http://$SERVICE_IP:{{ .Values.service.port }} 15 | {{- else if contains "ClusterIP" .Values.service.type }} 16 | export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "hue.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") 17 | echo "Visit http://127.0.0.1:8080 to use your application" 18 | kubectl port-forward $POD_NAME 8080:80 19 | {{- end }} 20 | -------------------------------------------------------------------------------- /stable/spark/README.md: -------------------------------------------------------------------------------- 1 | # Apache Spark Helm Chart 2 | 3 | Apache Spark is a fast and general-purpose cluster computing system 4 | 5 | * http://spark.apache.org/ 6 | 7 | Adapted from https://github.com/kubernetes/charts/tree/master/stable/spark 8 | 9 | ## Chart Details 10 | This chart will do the following: 11 | 12 | * 1 x Spark Master with port 8080 exposed using a ClusterIP service 13 | * A DaemonSet for Spark workers that can be bound to certain nodes using a node selector 14 | * 1 x [Spark Ui Proxy](https://github.com/src-d/spark-ui-proxy) to be able to use Spark web ui behind a firewall or a reverse proxy 15 | * All using Kubernetes Deployments 16 | 17 | ## Prerequisites 18 | 19 | * Assumes that serviceAccount tokens are available under hostname metadata. (Works on GKE by default) URL -- http://metadata/computeMetadata/v1/instance/service-accounts/default/token 20 | 21 | ## Installing the Chart 22 | 23 | To install the chart with the release name `my-release`: 24 | 25 | ```bash 26 | $ helm install --name my-release spark 27 | ``` 28 | 29 | ### Loading the chart 30 | 31 | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. 32 | 33 | Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example, 34 | 35 | ```bash 36 | $ helm install --name my-release -f values.yaml stable/spark 37 | ``` 38 | 39 | > **Tip**: You can use the default [values.yaml](values.yaml) 40 | -------------------------------------------------------------------------------- /stable/lookout-style-analyzer/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for lookout-style-analyzer. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | replicaCount: 1 6 | 7 | image: 8 | repository: srcd/style-analyzer 9 | # tag: latest 10 | pullPolicy: IfNotPresent 11 | 12 | service: 13 | type: ClusterIP 14 | port: 2000 15 | 16 | app: 17 | port: 2000 18 | # requestServer: lookout:10301 19 | # volume: 20 | # pvcName: the-name 21 | log: 22 | structured: true 23 | level: info 24 | 25 | databases: 26 | postgres: 27 | cloudSQL: false 28 | 29 | # For use without Cloud SQL: 30 | # dbConnectionString: postgresql://lookout:lookout@postgres-postgresql:5432/lookout-style-analyzer 31 | 32 | # For use with Cloud SQL: 33 | # instanceConnectionName: 34 | # serviceAccountSecret: 35 | # connectionDetailsSecret: 36 | 37 | resources: {} 38 | # We usually recommend not to specify default resources and to leave this as a conscious 39 | # choice for the user. This also increases chances charts run on environments with little 40 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 41 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 42 | # limits: 43 | # cpu: 100m 44 | # memory: 128Mi 45 | # requests: 46 | # cpu: 100m 47 | # memory: 128Mi 48 | 49 | nodeSelector: {} 50 | 51 | tolerations: [] 52 | 53 | affinity: {} 54 | -------------------------------------------------------------------------------- /stable/lookout-typos-analyzer/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for lookout-typos-analyzer. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | replicaCount: 1 6 | 7 | image: 8 | repository: srcd/style-analyzer 9 | # tag: latest 10 | pullPolicy: IfNotPresent 11 | 12 | service: 13 | type: ClusterIP 14 | port: 2000 15 | 16 | app: 17 | port: 2000 18 | # requestServer: lookout:10301 19 | # volume: 20 | # pvcName: the-name 21 | log: 22 | structured: true 23 | level: info 24 | 25 | databases: 26 | postgres: 27 | cloudSQL: false 28 | 29 | # For use without Cloud SQL: 30 | # dbConnectionString: postgresql://lookout:lookout@postgres-postgresql:5432/lookout-style-analyzer 31 | 32 | # For use with Cloud SQL: 33 | # instanceConnectionName: 34 | # serviceAccountSecret: 35 | # connectionDetailsSecret: 36 | 37 | resources: {} 38 | # We usually recommend not to specify default resources and to leave this as a conscious 39 | # choice for the user. This also increases chances charts run on environments with little 40 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 41 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 42 | # limits: 43 | # cpu: 100m 44 | # memory: 128Mi 45 | # requests: 46 | # cpu: 100m 47 | # memory: 128Mi 48 | 49 | nodeSelector: {} 50 | 51 | tolerations: [] 52 | 53 | affinity: {} 54 | -------------------------------------------------------------------------------- /stable/rovers/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for rovers. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | replicaCount: 1 5 | 6 | image: 7 | repository: srcd/rovers 8 | tag: v2.6.0 9 | pullPolicy: IfNotPresent 10 | 11 | db: 12 | user: testing 13 | pass: testing 14 | host: postgres 15 | name: testing 16 | 17 | broker: 18 | connectionString: amqp://guest:guest@rabbitmq:5672 19 | 20 | args: 21 | action: repos 22 | queueName: rovers 23 | # by default all providers are considered unless 24 | # any is specified. In that case, only those are considered 25 | providers: {} 26 | # github: true 27 | # bitbucket: true 28 | # cgit: true 29 | 30 | # Secrets must be either explictly given 31 | # secrets: 32 | # githubToken: xxxxx 33 | # bingKey: xxxx 34 | # 35 | # or through an already present secret in the cluster 36 | # See secret.yaml file to get the expected key names 37 | # secretName: "existing name" 38 | 39 | resources: {} 40 | # We usually recommend not to specify default resources and to leave this as a conscious 41 | # choice for the user. This also increases chances charts run on environments with little 42 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 43 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 44 | # limits: 45 | # cpu: 100m 46 | # memory: 128Mi 47 | # requests: 48 | # cpu: 100m 49 | # memory: 128Mi 50 | -------------------------------------------------------------------------------- /stable/sourced-ui/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 1. Get the application URL by running these commands: 2 | {{- if .Values.ingress.enabled }} 3 | {{- range .Values.ingress.hosts }} 4 | http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }} 5 | {{- end }} 6 | {{- else if contains "NodePort" .Values.service.type }} 7 | export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "sourced-ui.fullname" . }}) 8 | export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") 9 | echo http://$NODE_IP:$NODE_PORT 10 | {{- else if contains "LoadBalancer" .Values.service.type }} 11 | NOTE: It may take a few minutes for the LoadBalancer IP to be available. 12 | You can watch the status of by running 'kubectl get svc -w {{ template "sourced-ui.fullname" . }}' 13 | export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "sourced-ui.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') 14 | echo http://$SERVICE_IP:{{ .Values.service.port }} 15 | {{- else if contains "ClusterIP" .Values.service.type }} 16 | export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "sourced-ui.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") 17 | echo "Visit http://127.0.0.1:8080 to use your application" 18 | kubectl port-forward $POD_NAME 8080:80 19 | {{- end }} 20 | -------------------------------------------------------------------------------- /incubator/jupyter-single/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 1. Get the application URL by running these commands: 2 | {{- if .Values.ingress.enabled }} 3 | {{- range .Values.ingress.hosts }} 4 | http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }} 5 | {{- end }} 6 | {{- else if contains "NodePort" .Values.service.type }} 7 | export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "jupyter-single.fullname" . }}) 8 | export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") 9 | echo http://$NODE_IP:$NODE_PORT 10 | {{- else if contains "LoadBalancer" .Values.service.type }} 11 | NOTE: It may take a few minutes for the LoadBalancer IP to be available. 12 | You can watch the status of by running 'kubectl get svc -w {{ template "jupyter-single.fullname" . }}' 13 | export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "jupyter-single.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') 14 | echo http://$SERVICE_IP:{{ .Values.service.port }} 15 | {{- else if contains "ClusterIP" .Values.service.type }} 16 | export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "jupyter-single.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") 17 | echo "Visit http://127.0.0.1:8080 to use your application" 18 | kubectl port-forward $POD_NAME 8080:80 19 | {{- end }} 20 | -------------------------------------------------------------------------------- /infra/landing/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for landing. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | replicaCount: 2 5 | 6 | # If provided, these will be used by the deployment 7 | # nodeSelector: XXXXXXX 8 | 9 | image: 10 | # same tag for everyone as it is how landing repo Makefile works 11 | tag: master 12 | pullPolicy: IfNotPresent 13 | registry: quay.io/srcd 14 | landing: 15 | name: landing 16 | landingApi: 17 | name: landing-api 18 | service: 19 | type: NodePort 20 | landing: 21 | externalPort: 8090 22 | internalPort: 8090 23 | name: landing 24 | landingApi: 25 | externalPort: 8080 26 | internalPort: 8080 27 | name: landing-api 28 | ingress: 29 | annotations: 30 | kubernetes.io/ingress.class: gce 31 | kubernetes.io/tls-acme: "true" 32 | tls: true 33 | # below values are required 34 | # hosts: 35 | # - sourced.tech 36 | # - www.sourced.tech 37 | # globalStaticIpName: "landing-ip" 38 | 39 | resources: {} 40 | # We usually recommend not to specify default resources and to leave this as a conscious 41 | # choice for the user. This also increases chances charts run on environments with little 42 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 43 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 44 | # limits: 45 | # cpu: 100m 46 | # memory: 128Mi 47 | # requests: 48 | # cpu: 100m 49 | # memory: 128Mi 50 | # 51 | -------------------------------------------------------------------------------- /DCO: -------------------------------------------------------------------------------- 1 | Developer Certificate of Origin 2 | Version 1.1 3 | 4 | Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 5 | 660 York Street, Suite 102, 6 | San Francisco, CA 94110 USA 7 | 8 | Everyone is permitted to copy and distribute verbatim copies of this 9 | license document, but changing it is not allowed. 10 | 11 | 12 | Developer's Certificate of Origin 1.1 13 | 14 | By making a contribution to this project, I certify that: 15 | 16 | (a) The contribution was created in whole or in part by me and I 17 | have the right to submit it under the open source license 18 | indicated in the file; or 19 | 20 | (b) The contribution is based upon previous work that, to the best 21 | of my knowledge, is covered under an appropriate open source 22 | license and I have the right under that license to submit that 23 | work with modifications, whether created in whole or in part 24 | by me, under the same open source license (unless I am 25 | permitted to submit under a different license), as indicated 26 | in the file; or 27 | 28 | (c) The contribution was provided directly to me by some other 29 | person who certified (a), (b) or (c) and I have not modified 30 | it. 31 | 32 | (d) I understand and agree that this project and the contribution 33 | are public and that a record of the contribution (including all 34 | personal information I submit with it, including my sign-off) is 35 | maintained indefinitely and may be redistributed consistent with 36 | this project or the open source license(s) involved. 37 | -------------------------------------------------------------------------------- /infra/website-redirect/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for website-redirect. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | replicaCount: 1 6 | 7 | image: 8 | repository: abiosoft/caddy 9 | tag: 1.0.3 10 | pullPolicy: IfNotPresent 11 | 12 | redirects: [] 13 | # - to: 14 | # preservePath: false 15 | # hostname: 16 | 17 | service: 18 | # NodePort is needed to work properly with default ingress 19 | type: NodePort 20 | port: 80 21 | 22 | ingress: 23 | enabled: true 24 | # globalStaticIpName must be received as a parameter 25 | # hosts defined in templates/ingress.yml. Do not override here. 26 | annotations: 27 | kubernetes.io/ingress.class: gce 28 | kubernetes.io/tls-acme: "true" 29 | # kubernetes.io/ingress.global-static-ip-name is defined in templates/ingress.yml. Do not override here. 30 | tls: true 31 | # secretName and hosts are defined in templates/ingress.yml. Do not override here. 32 | 33 | resources: {} 34 | # We usually recommend not to specify default resources and to leave this as a conscious 35 | # choice for the user. This also increases chances charts run on environments with little 36 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 37 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 38 | # limits: 39 | # cpu: 100m 40 | # memory: 128Mi 41 | # requests: 42 | # cpu: 100m 43 | # memory: 128Mi 44 | 45 | nodeSelector: {} 46 | 47 | tolerations: [] 48 | 49 | affinity: {} 50 | -------------------------------------------------------------------------------- /stable/spark-thrift-server/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for spark-thrift-server. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | replicaCount: 1 6 | 7 | image: 8 | repository: srcd/gitbase-spark-connector-enterprise 9 | tag: latest 10 | pullPolicy: Always 11 | imagePullSecrets: [] 12 | 13 | app: 14 | # bblfshHost: 15 | bblfshPort: 9432 16 | # gitbaseServers: 17 | # sparkMasterURI: 18 | gitbaseUser: gitbase 19 | gitbasePassword: gitbase 20 | # gitbasePasswordSecretName: 21 | # executorCores: 1 22 | # maxCores: 1 23 | 24 | 25 | service: 26 | type: ClusterIP 27 | port: 10000 28 | 29 | resources: {} 30 | # We usually recommend not to specify default resources and to leave this as a conscious 31 | # choice for the user. This also increases chances charts run on environments with little 32 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 33 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 34 | # limits: 35 | # cpu: 100m 36 | # memory: 128Mi 37 | # requests: 38 | # cpu: 100m 39 | # memory: 128Mi 40 | 41 | nodeSelector: {} 42 | 43 | tolerations: [] 44 | 45 | affinity: {} 46 | 47 | livenessProbe: 48 | enabled: true 49 | initialDelaySeconds: 60 50 | periodSeconds: 10 51 | timeoutSeconds: 5 52 | failureThreshold: 5 53 | successThreshold: 1 54 | 55 | readinessProbe: 56 | enabled: true 57 | initialDelaySeconds: 5 58 | periodSeconds: 10 59 | timeoutSeconds: 5 60 | failureThreshold: 5 61 | successThreshold: 1 62 | -------------------------------------------------------------------------------- /infra/landing/templates/ingress.yaml: -------------------------------------------------------------------------------- 1 | {{- $serviceName := include "fullname" . -}} 2 | {{- $apiPort := .Values.service.landingApi.externalPort -}} 3 | {{- $landingPort := .Values.service.landing.externalPort -}} 4 | apiVersion: extensions/v1beta1 5 | kind: Ingress 6 | metadata: 7 | name: {{ template "fullname" . }} 8 | labels: 9 | app: {{ template "name" . }} 10 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 11 | release: {{ .Release.Name }} 12 | heritage: {{ .Release.Service }} 13 | annotations: 14 | {{- range $key, $value := .Values.ingress.annotations }} 15 | {{ $key }}: {{ $value | quote }} 16 | {{- end }} 17 | kubernetes.io/ingress.global-static-ip-name: {{ required "Missing .Values.ingress.globalStaticIpName" .Values.ingress.globalStaticIpName }} 18 | spec: 19 | rules: 20 | # Cannot specify multiple hosts. See https://github.com/kubernetes/kubernetes/issues/43633 21 | {{- range $host := required "Missing .Values.ingress.hosts" .Values.ingress.hosts }} 22 | - host: {{ $host }} 23 | http: 24 | paths: 25 | - backend: 26 | serviceName: {{ $serviceName }} 27 | servicePort: {{ $landingPort }} 28 | path: /* 29 | - backend: 30 | serviceName: {{ $serviceName }} 31 | servicePort: {{ $apiPort }} 32 | path: /api/* 33 | {{- end }} 34 | {{- if .Values.ingress.tls }} 35 | tls: 36 | - secretName: "{{ template "fullname" . }}-tls" 37 | hosts: 38 | {{- range $host := required "Missing .Values.ingress.hosts" .Values.ingress.hosts }} 39 | - {{ $host }} 40 | {{- end }} 41 | {{- end }} 42 | -------------------------------------------------------------------------------- /infra/ml-deployment/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "ml-deployment.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "ml-deployment.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{/* 28 | Create chart name and version as used by the chart label. 29 | */}} 30 | {{- define "ml-deployment.chart" -}} 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 32 | {{- end -}} 33 | 34 | {{/* 35 | Common labels 36 | */}} 37 | {{- define "ml-deployment.labels" -}} 38 | app.kubernetes.io/name: {{ include "ml-deployment.name" . }} 39 | helm.sh/chart: {{ include "ml-deployment.chart" . }} 40 | app.kubernetes.io/instance: {{ .Release.Name }} 41 | {{- if .Chart.AppVersion }} 42 | app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} 43 | {{- end }} 44 | app.kubernetes.io/managed-by: {{ .Release.Service }} 45 | {{- end -}} 46 | -------------------------------------------------------------------------------- /stable/gitbase/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "gitbase.name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | If release name contains chart name it will be used as a full name. 13 | */}} 14 | {{- define "gitbase.fullname" -}} 15 | {{- if .Values.fullnameOverride -}} 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 17 | {{- else -}} 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} 19 | {{- if contains $name .Release.Name -}} 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 21 | {{- else -}} 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 23 | {{- end -}} 24 | {{- end -}} 25 | {{- end -}} 26 | 27 | {{- define "fullname" -}} 28 | {{- if .Values.fullnameOverride -}} 29 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 30 | {{- else -}} 31 | {{- $name := default .Chart.Name .Values.nameOverride -}} 32 | {{- if contains $name .Release.Name -}} 33 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 34 | {{- else -}} 35 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 36 | {{- end -}} 37 | {{- end -}} 38 | {{- end -}} 39 | 40 | 41 | {{/* 42 | Create chart name and version as used by the chart label. 43 | */}} 44 | {{- define "gitbase.chart" -}} 45 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 46 | {{- end -}} 47 | -------------------------------------------------------------------------------- /scripts/install-minikube.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | if [ "$TRAVIS_BRANCH" != "master" ]; then 6 | CHANGED_FILES=$(git diff --name-only "origin/master..$TRAVIS_BRANCH") 7 | else 8 | CHANGED_FILES=$(git diff --name-only "$TRAVIS_COMMIT_RANGE") 9 | fi 10 | 11 | # Remove excluded charts from the changes list 12 | excluded_charts=$(yq -r ".\"excluded-charts\" | .[]" ct-install.yaml) 13 | for chart in $excluded_charts 14 | do 15 | CHANGED_FILES=$(echo "$CHANGED_FILES" | grep -v "$chart/Chart.yaml" ) 16 | done 17 | 18 | echo "$CHANGED_FILES" | grep 'Chart.yaml$' || { echo "No Chart.yaml files changed. No need to have Kubernetes. Exiting."; exit 0; } 19 | 20 | curl -Lo kubectl "https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSION}/bin/linux/amd64/kubectl" 21 | sudo chmod +x kubectl && sudo mv kubectl /usr/local/bin/ 22 | curl -Lo minikube https://storage.googleapis.com/minikube/releases/${MINIKUBE_VERSION}/minikube-linux-amd64 23 | sudo chmod +x minikube && sudo mv minikube /usr/local/bin/ 24 | sudo minikube start --vm-driver=none --kubernetes-version="${KUBERNETES_VERSION}" 25 | sudo chown -R travis /home/travis/.minikube/ 26 | sudo chown -R travis /home/travis/.kube/ 27 | 28 | # wait till node is ready 29 | JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1; done 30 | 31 | helm init 32 | # wait till the tiller is ready 33 | JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl get pods -n kube-system -l name=tiller -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1; done 34 | -------------------------------------------------------------------------------- /infra/git-server/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: {{ template "fullname" . }} 5 | labels: 6 | app: {{ template "name" . }} 7 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | replicas: {{ .Values.replicaCount }} 12 | template: 13 | metadata: 14 | labels: 15 | app: {{ template "name" . }} 16 | release: {{ .Release.Name }} 17 | spec: 18 | volumes: 19 | - name: repositories-dir 20 | hostPath: 21 | path: {{ .Values.repositories.hostPath }} 22 | containers: 23 | - name: {{ .Chart.Name }} 24 | image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" 25 | imagePullPolicy: {{ .Values.image.pullPolicy }} 26 | volumeMounts: 27 | - name: repositories-dir 28 | mountPath: /var/lib/git/repositories 29 | env: 30 | - name: "REPOSITORIES_DIR" 31 | value: "/var/lib/git/repositories" 32 | - name: "GIT_PORT" 33 | value: "{{ .Values.service.internalPort }}" 34 | ports: 35 | - containerPort: {{ .Values.service.internalPort }} 36 | livenessProbe: 37 | tcpSocket: 38 | port: {{ .Values.service.internalPort }} 39 | readinessProbe: 40 | tcpSocket: 41 | port: {{ .Values.service.internalPort }} 42 | resources: 43 | {{ toYaml .Values.resources | indent 12 }} 44 | {{- if .Values.nodeSelector }} 45 | nodeSelector: 46 | {{ toYaml .Values.nodeSelector | indent 8 }} 47 | {{- end }} 48 | -------------------------------------------------------------------------------- /stable/bblfshd-sidecar/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for bblfshd. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | image: 5 | repository: bblfsh/bblfshd 6 | tag: v2.14.0-drivers 7 | pullPolicy: IfNotPresent 8 | 9 | drivers: 10 | install: false 11 | languages: {} 12 | # python: 13 | # repository: bblfsh/python-driver 14 | # tag: latest 15 | # java: 16 | # repository: bblfsh/java-driver 17 | # tag: latest 18 | # javascript: 19 | # repository: bblfsh/javascript-driver 20 | # tag: latest 21 | # typescript: 22 | # repository: bblfsh/typescript-driver 23 | # tag: latest 24 | # bash: 25 | # repository: bblfsh/bash-driver 26 | # tag: latest 27 | # ruby: 28 | # repository: bblfsh/ruby-driver 29 | # tag: latest 30 | # go: 31 | # repository: bblfsh/go-driver 32 | # tag: latest 33 | # php: 34 | # repository: bblfsh/php-driver 35 | # tag: latest 36 | # csharp: 37 | # repository: bblfsh/csharp-driver 38 | # tag: latest 39 | 40 | resources: {} 41 | # We usually recommend not to specify default resources and to leave this as a conscious 42 | # choice for the user. This also increases chances charts run on environments with little 43 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 44 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 45 | # limits: 46 | # cpu: 100m 47 | # memory: 128Mi 48 | # requests: 49 | # cpu: 100m 50 | # memory: 128Mi 51 | # 52 | 53 | metrics: 54 | enabled: false 55 | interval: 10s 56 | namespace: monitoring 57 | additionalServiceMatchLabels: {} 58 | -------------------------------------------------------------------------------- /incubator/spark-api-jupyter/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for spark-api-jupyter. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | replicaCount: 1 5 | service: 6 | name: spark-api-jupyter 7 | type: LoadBalancer 8 | externalPort: 80 9 | internalPort: 8888 10 | # loadBalancerIP: 11 | ingress: 12 | enabled: false 13 | # Used to create Ingress record (should used with service.type: ClusterIP). 14 | hosts: 15 | - chart-example.local 16 | annotations: 17 | # kubernetes.io/ingress.class: nginx 18 | # kubernetes.io/tls-acme: "true" 19 | tls: 20 | # Secrets must be manually created in the namespace. 21 | # - secretName: chart-example-tls 22 | # hosts: 23 | # - chart-example.local 24 | jupyter: 25 | image: 26 | repository: srcd/spark-api-jupyter 27 | tag: v0.0.6 28 | pullPolicy: IfNotPresent 29 | repositoriesPath: /repositories 30 | # repositoriesDisk: repository-data 31 | userPath: /home/jovyan/work 32 | # userDataDisk: repository-data 33 | 34 | # We usually recommend not to specify default resources and to leave this as a conscious 35 | # choice for the user. This also increases chances charts run on environments with little 36 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 37 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 38 | # limits: 39 | # cpu: 100m 40 | # memory: 128Mi 41 | # requests: 42 | # cpu: 100m 43 | # memory: 128Mi 44 | resources: {} 45 | 46 | server: 47 | image: 48 | repository: bblfsh/bblfshd 49 | tag: v2.0.0 50 | pullPolicy: IfNotPresent 51 | driversPath: /var/lib/bblfshd 52 | # driversDisk: bblfsh-drivers 53 | resources: {} 54 | -------------------------------------------------------------------------------- /scripts/repo-sync.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -o errexit 4 | set -o nounset 5 | set -o pipefail 6 | 7 | REPO_NAME="${REPO_NAME:-stable}" 8 | REPO_URL="${REPO_URL:-https://src-d.github.io/charts/$REPO_NAME/}" 9 | TARGET_BRANCH="${TARGET_BRANCH:-gh-pages}" 10 | GH_REF="${GH_REF:-github.com/src-d/charts.git}" 11 | GH_REMOTE_URL="https://$GITHUB_TOKEN@$GH_REF" 12 | 13 | log_error() { 14 | printf '\e[31mERROR: %s\n\e[39m' "$1" >&2 15 | } 16 | 17 | helm init --client-only 18 | helm repo add "srcd-$REPO_NAME" "$REPO_URL" 19 | 20 | packages_dir=$(mktemp -d) 21 | repo_packages_dir="$packages_dir/$REPO_NAME" 22 | index_dir=$(mktemp -d) 23 | trap "rm -rf $packages_dir $index_dir" EXIT 24 | 25 | pushd "$packages_dir" 26 | git clone --branch=gh-pages --depth=1 "$GH_REMOTE_URL" . 27 | git config user.email "infra@sourced.tech" 28 | git config user.name "Infra sourced{d}" 29 | [ -d "$REPO_NAME" ] || mkdir "$REPO_NAME" 30 | pushd "$REPO_NAME" 31 | [ -d "index.yaml" ] || touch index.yaml 32 | mv index.yaml "$index_dir/index.yaml" 33 | popd 34 | popd 35 | 36 | pushd "$REPO_NAME" 37 | for dir in ./* ; do 38 | [ -d "$dir" ] || continue 39 | if helm dependency build "$dir"; then 40 | helm package --destination "$repo_packages_dir" "$dir" 41 | else 42 | log_error "Problem building dependencies of '$dir'." 43 | exit 1 44 | fi 45 | done 46 | popd 47 | 48 | if ! helm repo index --url "$REPO_URL" --merge "$index_dir/index.yaml" "$repo_packages_dir"; then 49 | log_error "Exiting because unable to update index. Not safe to push update." 50 | exit 1 51 | fi 52 | 53 | cd "$packages_dir" 54 | cat "$repo_packages_dir/index.yaml" 55 | git add -A . 56 | git commit -sm "Updating helm packages and index for $REPO_NAME" 57 | git push "$GH_REMOTE_URL" "$TARGET_BRANCH:$TARGET_BRANCH" 58 | -------------------------------------------------------------------------------- /infra/code-annotation/README.md: -------------------------------------------------------------------------------- 1 | # Code Annotation Tool 2 | 3 | This chart deploys source{d} [code annotation tool](https://github.com/src-d/code-annotation) 4 | 5 | ## Pre-requisites 6 | 7 | * Kubernetes 1.4+ with Beta APIs enabled 8 | 9 | ## Installing the chart 10 | 11 | All parameters under `settings` in [values.yaml](values.yaml) must be provided. 12 | 13 | ``` 14 | helm install -n --set \ 15 | secrets.jwt_signing_key=,\ 16 | secrets.github_client=,\ 17 | secrets.github_secret=,\ 18 | ingress.hostname=,\ 19 | ingress.globalStaticIpName=,\ 20 | image.tag= 21 | ``` 22 | 23 | These are the mandatory parameters that need to be provided or installation will fail. 24 | Other parameters can be provided too but, if not, a default value will be used. 25 | 26 | It's also possible to set name of separately deployed secrets using parameter `secretName`. 27 | 28 | Full command for deployment: 29 | 30 | ``` 31 | helm install -n --set \ 32 | secretName=,\ 33 | ingress.hostname=,\ 34 | ingress.globalStaticIpName=,\ 35 | image.tag= 36 | ``` 37 | 38 | # Configuration 39 | 40 | Please refer to [values.yaml](values.yaml) for the full run-down on defaults. 41 | 42 | To override any of those default values, 43 | specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. 44 | 45 | Alternatively, a YAML file that specifies the values for the parameters can be provided 46 | while installing the chart. 47 | For example, 48 | 49 | ```bash 50 | $ helm install --name -f values.yaml 51 | ``` 52 | 53 | > **Tip**: You can use the default [values.yaml](values.yaml) 54 | -------------------------------------------------------------------------------- /infra/code-annotation/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for landing. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | replicaCount: 1 5 | 6 | # If provided, these will be used by the deployment 7 | # nodeSelector: XXXXXXX 8 | 9 | image: 10 | repository: docker.io/srcd/code-annotation 11 | # tag must be received as a parameter 12 | pullPolicy: IfNotPresent 13 | deployment: 14 | internalDatabasePath: "/var/code-annotation" 15 | # gaTrackingID must be received as a parameter 16 | authorization: 17 | restrictAccessGroup: "org:src-d" 18 | restrictRequesterGroup: "" 19 | service: 20 | type: NodePort 21 | codeAnnotation: 22 | externalPort: 8080 23 | internalPort: 8080 24 | name: code-annotation 25 | ingress: 26 | annotations: 27 | kubernetes.io/ingress.class: gce 28 | kubernetes.io/tls-acme: "true" 29 | tls: true 30 | # below values are required 31 | # hostname: "code-annotation.srcd.run" 32 | # globalStaticIpName: "code-annotation-ip" 33 | 34 | # Provide with 'helm install', and do NOT change it when doing 'helm upgrade' 35 | # github_client: 36 | # github_secret: 37 | # jwt_signing_key: 38 | # It's also possible to use deployed secrets by using argument: 39 | # secretName: "existing name" 40 | 41 | resources: {} 42 | # We usually recommend not to specify default resources and to leave this as a conscious 43 | # choice for the user. This also increases chances charts run on environments with little 44 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 45 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 46 | # limits: 47 | # cpu: 100m 48 | # memory: 128Mi 49 | # requests: 50 | # cpu: 100m 51 | # memory: 128Mi 52 | # 53 | -------------------------------------------------------------------------------- /stable/bblfshd/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for bblfshd. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | replicaCount: 1 5 | 6 | image: 7 | repository: bblfsh/bblfshd 8 | tag: v2.14.0-drivers 9 | pullPolicy: IfNotPresent 10 | 11 | service: 12 | type: ClusterIP 13 | port: 9432 14 | # loadBalancerIP 15 | 16 | drivers: 17 | install: false 18 | languages: {} 19 | # python: 20 | # repository: bblfsh/python-driver 21 | # tag: latest 22 | # java: 23 | # repository: bblfsh/java-driver 24 | # tag: latest 25 | # javascript: 26 | # repository: bblfsh/javascript-driver 27 | # tag: latest 28 | # typescript: 29 | # repository: bblfsh/typescript-driver 30 | # tag: latest 31 | # bash: 32 | # repository: bblfsh/bash-driver 33 | # tag: latest 34 | # ruby: 35 | # repository: bblfsh/ruby-driver 36 | # tag: latest 37 | # go: 38 | # repository: bblfsh/go-driver 39 | # tag: latest 40 | # php: 41 | # repository: bblfsh/php-driver 42 | # tag: latest 43 | # csharp: 44 | # repository: bblfsh/csharp-driver 45 | # tag: latest 46 | 47 | resources: {} 48 | # We usually recommend not to specify default resources and to leave this as a conscious 49 | # choice for the user. This also increases chances charts run on environments with little 50 | # resources, such as Minikube. If you do want to specify resources, uncomment the following 51 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. 52 | # limits: 53 | # cpu: 100m 54 | # memory: 128Mi 55 | # requests: 56 | # cpu: 100m 57 | # memory: 128Mi 58 | # 59 | 60 | affinity: {} 61 | 62 | metrics: 63 | enabled: false 64 | interval: 10s 65 | namespace: monitoring 66 | -------------------------------------------------------------------------------- /infra/k8s-pod-headless-service-operator/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | kind: Deployment 2 | apiVersion: apps/v1 3 | metadata: 4 | name: {{ template "k8s-pod-headless-service-operator.fullname" . }} 5 | labels: 6 | app: {{ template "k8s-pod-headless-service-operator.name" . }} 7 | chart: {{ template "k8s-pod-headless-service-operator.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | selector: 12 | matchLabels: 13 | app: {{ template "k8s-pod-headless-service-operator.name" . }} 14 | release: {{ .Release.Name }} 15 | template: 16 | metadata: 17 | labels: 18 | app: {{ template "k8s-pod-headless-service-operator.name" . }} 19 | release: {{ .Release.Name }} 20 | spec: 21 | serviceAccountName: {{ template "k8s-pod-headless-service-operator.fullname" . }} 22 | containers: 23 | - name: {{ .Chart.Name }} 24 | image: "{{ .Values.image.repository }}:{{ required "missing image.tag" .Values.image.tag }}" 25 | imagePullPolicy: {{ .Values.image.pullPolicy }} 26 | env: 27 | {{- if .Values.app.podAnnotation }} 28 | - name: POD_ANNOTATION 29 | value: {{ .Values.app.podAnnotation }} 30 | {{- end }} 31 | {{- if .Values.app.namespace }} 32 | - name: NAMESPACE 33 | value: {{ .Values.app.namespace }} 34 | {{- end }} 35 | resources: 36 | {{ toYaml .Values.resources | indent 12 }} 37 | {{- with .Values.nodeSelector }} 38 | nodeSelector: 39 | {{ toYaml . | indent 8 }} 40 | {{- end }} 41 | {{- with .Values.affinity }} 42 | affinity: 43 | {{ toYaml . | indent 8 }} 44 | {{- end }} 45 | {{- with .Values.tolerations }} 46 | tolerations: 47 | {{ toYaml . | indent 8 }} 48 | {{- end }} 49 | --------------------------------------------------------------------------------