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

Migrate to ghcr deployment mechanism #200

Merged
merged 2 commits into from
Nov 8, 2021
Merged
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
2 changes: 1 addition & 1 deletion deploy/kubernetes/helm/sloth/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description: Base chart for Sloth.
type: application
home: https://github.com/slok/sloth
kubeVersion: ">= 1.19.0-0"
version: 0.3.0
version: 0.3.1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ClusterRoleBinding
metadata:
name: sloth-test
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ClusterRoleBinding
metadata:
name: sloth
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ClusterRole
metadata:
name: sloth-test
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ClusterRole
metadata:
name: sloth
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: sloth-test
namespace: custom
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -22,7 +22,7 @@ spec:
template:
metadata:
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: sloth-test
namespace: custom
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -22,7 +22,7 @@ spec:
template:
metadata:
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: sloth
namespace: default
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -21,7 +21,7 @@ spec:
template:
metadata:
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -32,7 +32,7 @@ spec:
serviceAccountName: sloth
containers:
- name: sloth
image: slok/sloth:v0.8.0
image: ghcr.io/slok/sloth:v0.8.0
args:
- kubernetes-controller
- --sli-plugins-path=/plugins
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: sloth-test
namespace: custom
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: sloth
namespace: default
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: sloth-test
namespace: custom
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: sloth
namespace: default
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes/helm/sloth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
labels: {}

image:
repository: slok/sloth
repository: ghcr.io/slok/sloth
tag: v0.8.0

sloth:
Expand Down
14 changes: 7 additions & 7 deletions deploy/kubernetes/raw/sloth-with-common-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: sloth
namespace: monitoring
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -18,7 +18,7 @@ kind: ClusterRole
metadata:
name: sloth
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -38,7 +38,7 @@ kind: ClusterRoleBinding
metadata:
name: sloth
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -59,7 +59,7 @@ metadata:
name: sloth
namespace: monitoring
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -74,7 +74,7 @@ spec:
template:
metadata:
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -85,7 +85,7 @@ spec:
serviceAccountName: sloth
containers:
- name: sloth
image: slok/sloth:v0.8.0
image: ghcr.io/slok/sloth:v0.8.0
args:
- kubernetes-controller
- --sli-plugins-path=/plugins
Expand Down Expand Up @@ -130,7 +130,7 @@ metadata:
name: sloth
namespace: monitoring
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
14 changes: 7 additions & 7 deletions deploy/kubernetes/raw/sloth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: sloth
namespace: monitoring
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -18,7 +18,7 @@ kind: ClusterRole
metadata:
name: sloth
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -38,7 +38,7 @@ kind: ClusterRoleBinding
metadata:
name: sloth
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -59,7 +59,7 @@ metadata:
name: sloth
namespace: monitoring
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -74,7 +74,7 @@ spec:
template:
metadata:
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -85,7 +85,7 @@ spec:
serviceAccountName: sloth
containers:
- name: sloth
image: slok/sloth:v0.8.0
image: ghcr.io/slok/sloth:v0.8.0
args:
- kubernetes-controller
ports:
Expand All @@ -106,7 +106,7 @@ metadata:
name: sloth
namespace: monitoring
labels:
helm.sh/chart: sloth-0.3.0
helm.sh/chart: sloth-0.3.1
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploygen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ IFS=$'\t\n'

command -v helm >/dev/null 2>&1 || { echo 'please install helm'; exit 1; }

HELM_CHART_PATH="${HELM_CHART_PATH:-./deploy/kubernetes/helm}"
HELM_CHART_PATH="${HELM_CHART_PATH:-./deploy/kubernetes/helm/sloth}"
[ -z "$HELM_CHART_PATH" ] && echo "HELM_CHART_PATH env is needed" && exit 1;

GEN_PATH="${GEN_PATH:-./deploy/kubernetes/raw}"
Expand Down