From 372b25111bd955030d7268f86a3ed62625f16b9c Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Mon, 20 Feb 2023 09:33:02 +0000 Subject: [PATCH] Ignore files in chart directory. --- .github/workflows/build-test-release.yaml | 10 ++++++++++ .gitignore | 1 + README.md | 10 +++++++++- {chart => charts/jobs-manager-operator}/.helmignore | 0 {chart => charts/jobs-manager-operator}/Chart.yaml | 0 .../jobs-manager-operator}/templates/_helpers.tpl | 0 .../templates/deployment.yaml | 0 .../templates/leader-election-rbac.yaml | 0 .../templates/managedjob-crd.yaml | 0 .../templates/manager-rbac.yaml | 13 +++++++++++++ .../templates/metrics-reader-rbac.yaml | 0 .../templates/metrics-service.yaml | 0 .../templates/proxy-rbac.yaml | 0 {chart => charts/jobs-manager-operator}/values.yaml | 0 14 files changed, 33 insertions(+), 1 deletion(-) rename {chart => charts/jobs-manager-operator}/.helmignore (100%) rename {chart => charts/jobs-manager-operator}/Chart.yaml (100%) rename {chart => charts/jobs-manager-operator}/templates/_helpers.tpl (100%) rename {chart => charts/jobs-manager-operator}/templates/deployment.yaml (100%) rename {chart => charts/jobs-manager-operator}/templates/leader-election-rbac.yaml (100%) rename {chart => charts/jobs-manager-operator}/templates/managedjob-crd.yaml (100%) rename {chart => charts/jobs-manager-operator}/templates/manager-rbac.yaml (88%) rename {chart => charts/jobs-manager-operator}/templates/metrics-reader-rbac.yaml (100%) rename {chart => charts/jobs-manager-operator}/templates/metrics-service.yaml (100%) rename {chart => charts/jobs-manager-operator}/templates/proxy-rbac.yaml (100%) rename {chart => charts/jobs-manager-operator}/values.yaml (100%) diff --git a/.github/workflows/build-test-release.yaml b/.github/workflows/build-test-release.yaml index e1574f2..227ff5b 100644 --- a/.github/workflows/build-test-release.yaml +++ b/.github/workflows/build-test-release.yaml @@ -4,9 +4,19 @@ on: push: branches: - main + paths-ignore: + - 'charts/**' + - 'docs/**' + - '.github/**' + - 'README.md' pull_request: branches: - main + paths-ignore: + - 'charts/**' + - 'docs/**' + - '.github/**' + - 'README.md' workflow_dispatch: jobs: diff --git a/.gitignore b/.gitignore index e917e5c..9efd3bf 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ bin testbin/* Dockerfile.cross +chart-releaser.yaml # Test binary, build with `go test -c` *.test diff --git a/README.md b/README.md index 75944dd..1e1543b 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,15 @@ This operator is responsible for managing the lifecycle of complicated workflows ## Getting Started -### Prerequisites +### Installation with helm + +```sh +helm repo add raczylo https://lukaszraczylo.github.io/helm-charts/ +helm repo update raczylo +helm install jobs-manager raczylo/jobs-manager +``` + +### Prerequisites for local runs - [go](https://golang.org/dl/) v1.16+ - [kustomize](https://sigs.k8s.io/kustomize/docs/INSTALL.md) v3.5.4+ - [docker](https://docs.docker.com/install/) v19.03.8+ diff --git a/chart/.helmignore b/charts/jobs-manager-operator/.helmignore similarity index 100% rename from chart/.helmignore rename to charts/jobs-manager-operator/.helmignore diff --git a/chart/Chart.yaml b/charts/jobs-manager-operator/Chart.yaml similarity index 100% rename from chart/Chart.yaml rename to charts/jobs-manager-operator/Chart.yaml diff --git a/chart/templates/_helpers.tpl b/charts/jobs-manager-operator/templates/_helpers.tpl similarity index 100% rename from chart/templates/_helpers.tpl rename to charts/jobs-manager-operator/templates/_helpers.tpl diff --git a/chart/templates/deployment.yaml b/charts/jobs-manager-operator/templates/deployment.yaml similarity index 100% rename from chart/templates/deployment.yaml rename to charts/jobs-manager-operator/templates/deployment.yaml diff --git a/chart/templates/leader-election-rbac.yaml b/charts/jobs-manager-operator/templates/leader-election-rbac.yaml similarity index 100% rename from chart/templates/leader-election-rbac.yaml rename to charts/jobs-manager-operator/templates/leader-election-rbac.yaml diff --git a/chart/templates/managedjob-crd.yaml b/charts/jobs-manager-operator/templates/managedjob-crd.yaml similarity index 100% rename from chart/templates/managedjob-crd.yaml rename to charts/jobs-manager-operator/templates/managedjob-crd.yaml diff --git a/chart/templates/manager-rbac.yaml b/charts/jobs-manager-operator/templates/manager-rbac.yaml similarity index 88% rename from chart/templates/manager-rbac.yaml rename to charts/jobs-manager-operator/templates/manager-rbac.yaml index a9aab10..72c32f8 100644 --- a/chart/templates/manager-rbac.yaml +++ b/charts/jobs-manager-operator/templates/manager-rbac.yaml @@ -31,6 +31,19 @@ rules: - get - patch - update +# Add ability to manage jobs +- apiGroups: + - batch + resources: + - jobs + verbs: + - create + - delete + - get + - list + - patch + - update + - watch --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding diff --git a/chart/templates/metrics-reader-rbac.yaml b/charts/jobs-manager-operator/templates/metrics-reader-rbac.yaml similarity index 100% rename from chart/templates/metrics-reader-rbac.yaml rename to charts/jobs-manager-operator/templates/metrics-reader-rbac.yaml diff --git a/chart/templates/metrics-service.yaml b/charts/jobs-manager-operator/templates/metrics-service.yaml similarity index 100% rename from chart/templates/metrics-service.yaml rename to charts/jobs-manager-operator/templates/metrics-service.yaml diff --git a/chart/templates/proxy-rbac.yaml b/charts/jobs-manager-operator/templates/proxy-rbac.yaml similarity index 100% rename from chart/templates/proxy-rbac.yaml rename to charts/jobs-manager-operator/templates/proxy-rbac.yaml diff --git a/chart/values.yaml b/charts/jobs-manager-operator/values.yaml similarity index 100% rename from chart/values.yaml rename to charts/jobs-manager-operator/values.yaml