Skip to content

Commit 135bd89

Browse files
committed
feat(gitlab-runner-operatot): Add manifests
1 parent 76f0490 commit 135bd89

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
#
3+
# tag: 1.31.0
4+
# commit: e8254fb99328edd9e78f6646e8abc2f7a42fdd96
5+
#
6+
apiVersion: kustomize.config.k8s.io/v1beta1
7+
kind: Kustomization
8+
9+
10+
namePrefix: gitlab-runner-
11+
12+
commonLabels:
13+
app.kubernetes.io/component: ci-cd-runner
14+
app.kubernetes.io/name: gitlab
15+
app.kubernetes.io/part-of: gitlab-runner-operator
16+
17+
# crds:
18+
# # config/default/kustomization.yaml
19+
# # - https://gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator//config/crd?ref=e8254fb99328edd9e78f6646e8abc2f7a42fdd96
20+
# - https://gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator/-/raw/e8254fb99328edd9e78f6646e8abc2f7a42fdd96/config/crd/bases/apps.gitlab.com_runners.yaml
21+
22+
23+
images:
24+
# image details fetched from https://gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator/-/releases using file `operator.k8s.yaml`
25+
# config/manager/kustomization.tpl.yaml
26+
- name: controller
27+
newName: |-
28+
registry.gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator/gitlab-runner-operator
29+
newTag: "v1.31.0"
30+
# config/manager/kustomization.tpl.yaml
31+
- name: kube-rbac-proxy
32+
newName: |-
33+
"registry.gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator/openshift4/ose-kube-rbac-proxy"
34+
newTag: "v4.13.0"
35+
36+
37+
resources:
38+
# Dont use default as it points to invalid kustomize dirs
39+
# - https://gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator//config/default?ref=e8254fb99328edd9e78f6646e8abc2f7a42fdd96
40+
41+
# config/default/kustomization.yaml
42+
- https://gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator//config/crd?ref=e8254fb99328edd9e78f6646e8abc2f7a42fdd96
43+
44+
# config/default/kustomization.yaml
45+
- https://gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator//config/rbac?ref=e8254fb99328edd9e78f6646e8abc2f7a42fdd96
46+
47+
# config/manager/kustomization.tpl.yaml
48+
# - https://gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator//config/manager/manager.yaml?ref=e8254fb99328edd9e78f6646e8abc2f7a42fdd96
49+
- https://gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator/-/raw/29031ec8946ebb30e73834d2a34812a47a1d3996/config/manager/manager.yaml
50+
51+
52+
components:
53+
# config/manager/kustomization.tpl.yaml
54+
- https://gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator//config/manager/components/kubernetes?ref=e8254fb99328edd9e78f6646e8abc2f7a42fdd96
55+
56+
57+
patches:
58+
# config/manager/kustomization.tpl.yaml
59+
- path: |-
60+
https://gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator/-/raw/e8254fb99328edd9e78f6646e8abc2f7a42fdd96/config/manager/auth_proxy_patch.yaml
61+
62+
# Operator only has arch AMD64
63+
- patch: |-
64+
- op: replace
65+
path: /spec/template/spec/affinity
66+
value:
67+
nodeAffinity:
68+
requiredDuringSchedulingIgnoredDuringExecution:
69+
nodeSelectorTerms:
70+
- matchExpressions:
71+
- key: kubernetes.io/arch
72+
operator: In
73+
values:
74+
- amd64
75+
target:
76+
kind: Deployment
77+
name: controller-manager
78+
version: v1
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
3+
apiVersion: kustomize.config.k8s.io/v1beta1
4+
kind: Kustomization
5+
6+
7+
namespace: operators
8+
9+
10+
commonLabels:
11+
app.kubernetes.io/instance: my-gitlab-runner-instance
12+
13+
14+
resources:
15+
- ../../base
16+
17+
components:
18+
- ../../components/service-monitor

0 commit comments

Comments
 (0)