init
All checks were successful
docker-build / Build image (push) Successful in 9s

This commit is contained in:
2025-12-07 20:18:17 +07:00
commit 489db3b8a6
68 changed files with 4723 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
---
apiVersion: batch.rml.ru/v1alpha1
kind: GitlabJobRunner
metadata:
labels:
app.kubernetes.io/name: gitlab-job-runner
app.kubernetes.io/managed-by: kustomize
name: gitlabjobrunner-sample-job
spec:
gitlabSecretRef: gitlab-credentials
repositoryURL: mygroup/myrepo
branch: main
scriptPath: scripts/cleanup.sh
image: bitnami/git:latest
serviceAccountName: default
---
apiVersion: batch.rml.ru/v1alpha1
kind: GitlabJobRunner
metadata:
labels:
app.kubernetes.io/name: gitlab-job-runner
app.kubernetes.io/managed-by: kustomize
name: gitlabjobrunner-sample-cronjob
spec:
schedule: "0 2 * * *"
gitlabSecretRef: gitlab-credentials
repositoryURL: mygroup/myrepo
branch: main
scriptPath: scripts/backup.sh
image: bitnami/git:latest
serviceAccountName: backup-sa
suspend: false
concurrencyPolicy: Forbid
---
apiVersion: v1
kind: Secret
metadata:
name: gitlab-credentials
type: Opaque
stringData:
GITLAB_URL: "https://gitlab.example.com"
GITLAB_TOKEN: "glpat-xxxxxxxxxxxxxxxxxxxx"

View File

@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: gitlab-credentials
namespace: default
type: Opaque
stringData:
GITLAB_URL: "https://gitlab.example.com"
GITLAB_TOKEN: "glpat-xxxxxxxxxxxxxxxxxxxx"

View File

@@ -0,0 +1,27 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: backup-sa
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: backup-role
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: backup-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: backup-role
subjects:
- kind: ServiceAccount
name: backup-sa
namespace: default

View File

@@ -0,0 +1,4 @@
## Append samples of your project ##
resources:
- batch_v1alpha1_gitlabjobrunner.yaml
# +kubebuilder:scaffold:manifestskustomizesamples