mirror of https://github.com/portainer/k8s.git
Update CI for refactoring, prep for v2.0.0 release (#3)
parent
0734730845
commit
aa974734f8
|
@ -3,7 +3,7 @@ name: Lint and Test Charts
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'charts/**'
|
- 'deploy/helm/charts/**'
|
||||||
- '.github/**'
|
- '.github/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -15,20 +15,20 @@ jobs:
|
||||||
|
|
||||||
- name: Run chart-testing (lint)
|
- name: Run chart-testing (lint)
|
||||||
id: lint
|
id: lint
|
||||||
uses: helm/chart-testing-action@v1.0.0-rc.1
|
uses: helm/chart-testing-action@v1.0.0
|
||||||
with:
|
with:
|
||||||
config: .ci/ct-config.yaml
|
config: .ci/ct-config.yaml
|
||||||
command: lint
|
command: lint
|
||||||
|
|
||||||
- name: Create kind cluster
|
- name: Create kind cluster
|
||||||
uses: helm/kind-action@v1.0.0-alpha.3
|
uses: helm/kind-action@v1.0.0
|
||||||
with:
|
with:
|
||||||
install_local_path_provisioner: true
|
install_local_path_provisioner: true
|
||||||
# Only build a kind cluster if there are chart changes to test.
|
# Only build a kind cluster if there are chart changes to test.
|
||||||
if: steps.lint.outputs.changed == 'true'
|
if: steps.lint.outputs.changed == 'true'
|
||||||
|
|
||||||
- name: Run chart-testing (install)
|
- name: Run chart-testing (install)
|
||||||
uses: helm/chart-testing-action@v1.0.0-rc.1
|
uses: helm/chart-testing-action@v1.0.0
|
||||||
with:
|
with:
|
||||||
command: install
|
command: install
|
||||||
config: .ci/ct-config.yaml
|
config: .ci/ct-config.yaml
|
||||||
|
|
|
@ -5,7 +5,7 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- 'charts/**'
|
- 'deploy/helm/charts/**'
|
||||||
- '.github/**'
|
- '.github/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -24,14 +24,9 @@ jobs:
|
||||||
git config user.name "$GITHUB_ACTOR"
|
git config user.name "$GITHUB_ACTOR"
|
||||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||||
|
|
||||||
# See https://github.com/helm/chart-releaser-action/issues/6
|
|
||||||
- name: Install Helm
|
|
||||||
run: |
|
|
||||||
curl -fsSLo get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
|
|
||||||
chmod 700 get_helm.sh
|
|
||||||
./get_helm.sh
|
|
||||||
|
|
||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
uses: helm/chart-releaser-action@v1.0.0-rc.1
|
uses: helm/chart-releaser-action@v1.0.0
|
||||||
|
with:
|
||||||
|
charts_dir: deploy/helm/charts/
|
||||||
env:
|
env:
|
||||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
@ -16,14 +16,14 @@ type: application
|
||||||
|
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
version: 0.0.1-fp1
|
version: 1.0.0-pre1
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application.
|
# incremented each time you make changes to the application.
|
||||||
appVersion: 1.0.0
|
appVersion: 2.0.0
|
||||||
|
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/portainer/portainer-k8s
|
- https://github.com/portainer/k8s
|
||||||
|
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: funkypenguin
|
- name: funkypenguin
|
||||||
|
|
|
@ -4,14 +4,14 @@ kind: "PersistentVolumeClaim"
|
||||||
apiVersion: "v1"
|
apiVersion: "v1"
|
||||||
metadata:
|
metadata:
|
||||||
name: portainer
|
name: portainer
|
||||||
namespace: portainer
|
namespace: portainer
|
||||||
annotations:
|
annotations:
|
||||||
volume.alpha.kubernetes.io/storage-class: "generic"
|
volume.alpha.kubernetes.io/storage-class: "generic"
|
||||||
labels:
|
labels:
|
||||||
io.portainer.kubernetes.application.stack: portainer
|
io.portainer.kubernetes.application.stack: portainer
|
||||||
app.kubernetes.io/name: portainer
|
app.kubernetes.io/name: portainer
|
||||||
app.kubernetes.io/instance: portainer
|
app.kubernetes.io/instance: portainer
|
||||||
app.kubernetes.io/version: "1.0.0"
|
app.kubernetes.io/version: "2.0.0"
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- "ReadWriteOnce"
|
- "ReadWriteOnce"
|
||||||
|
@ -28,7 +28,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: portainer
|
app.kubernetes.io/name: portainer
|
||||||
app.kubernetes.io/instance: portainer
|
app.kubernetes.io/instance: portainer
|
||||||
app.kubernetes.io/version: "1.0.0"
|
app.kubernetes.io/version: "2.0.0"
|
||||||
---
|
---
|
||||||
# Source: portainer/templates/rbac.yaml
|
# Source: portainer/templates/rbac.yaml
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
@ -38,7 +38,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: portainer
|
app.kubernetes.io/name: portainer
|
||||||
app.kubernetes.io/instance: portainer
|
app.kubernetes.io/instance: portainer
|
||||||
app.kubernetes.io/version: "1.0.0"
|
app.kubernetes.io/version: "2.0.0"
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
|
@ -58,7 +58,7 @@ metadata:
|
||||||
io.portainer.kubernetes.application.stack: portainer
|
io.portainer.kubernetes.application.stack: portainer
|
||||||
app.kubernetes.io/name: portainer
|
app.kubernetes.io/name: portainer
|
||||||
app.kubernetes.io/instance: portainer
|
app.kubernetes.io/instance: portainer
|
||||||
app.kubernetes.io/version: "1.0.0"
|
app.kubernetes.io/version: "2.0.0"
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
|
@ -84,7 +84,7 @@ metadata:
|
||||||
io.portainer.kubernetes.application.stack: portainer
|
io.portainer.kubernetes.application.stack: portainer
|
||||||
app.kubernetes.io/name: portainer
|
app.kubernetes.io/name: portainer
|
||||||
app.kubernetes.io/instance: portainer
|
app.kubernetes.io/instance: portainer
|
||||||
app.kubernetes.io/version: "1.0.0"
|
app.kubernetes.io/version: "2.0.0"
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
@ -101,7 +101,7 @@ spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: "data"
|
- name: "data"
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: portainer
|
claimName: portainer
|
||||||
containers:
|
containers:
|
||||||
- name: portainer
|
- name: portainer
|
||||||
image: "portainer/portainer-ce:latest"
|
image: "portainer/portainer-ce:latest"
|
||||||
|
@ -115,7 +115,7 @@ spec:
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- name: tcp-edge
|
- name: tcp-edge
|
||||||
containerPort: 8000
|
containerPort: 8000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
|
@ -126,3 +126,4 @@ spec:
|
||||||
port: 9000
|
port: 9000
|
||||||
resources:
|
resources:
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue