Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add platform charts #2

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### Review Type Requested (choose one):

- [ ] **Glance** - superficial check (from domain experts)
- [ ] **Logic** - thorough check (from everybody doing review)

### Summary

Provide a one line summary and link to any relevant references

### Task/Issue reference

Closes: add_link_here

### Details (optional)

Add any additional details that might help Code Reviewers digest this PR

### How to test this code? (optional)

### Anything else? (optional)
6 changes: 5 additions & 1 deletion .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on: pull_request

jobs:
lint-test:
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand Down Expand Up @@ -33,4 +35,6 @@ jobs:
uses: helm/kind-action@v1
- name: Test Charts
if: steps.list-changed.outputs.changed == 'true'
run: ct install --target-branch ${{ github.event.repository.default_branch }}
run: |
kubectl create secret docker-registry ghcr-login --docker-server=ghcr.io --docker-username=${{ github.actor }} --docker-password=${{ github.token }}
ct install --target-branch ${{ github.event.repository.default_branch }} --namespace=default
23 changes: 23 additions & 0 deletions charts/resource-provider/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
10 changes: 10 additions & 0 deletions charts/resource-provider/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: resource-provider
description: A Helm chart for Kubernetes
icon: https://avatars.githubusercontent.com/u/148942800?s=200&v=4
maintainers:
- name: Lilypad
url: https://lilypad.tech
type: application
version: 0.1.0
appVersion: "v2.2.2"
30 changes: 30 additions & 0 deletions charts/resource-provider/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-{{ .Chart.Name }}
labels:
app.kubernetes.io/name: {{ .Chart.Name }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ .Chart.Name }}
template:
metadata:
labels:
app: {{ .Chart.Name }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: WEB3_PRIVATE_KEY
value: "{{ .Values.env.WEB3_PRIVATE_KEY }}"
13 changes: 13 additions & 0 deletions charts/resource-provider/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
image:
repository: ghcr.io/lilypad-tech/resource-provider
pullPolicy: IfNotPresent
# tag can override .Chart.AppVersion
tag: ""

imagePullSecrets:
- name: ghcr-login

replicaCount: 1

env:
WEB3_PRIVATE_KEY: "0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a"
Loading