Skip to content

Commit 716d553

Browse files
committed
Add S3 test data
1 parent c2c61b1 commit 716d553

File tree

6 files changed

+133
-1
lines changed

6 files changed

+133
-1
lines changed

config/samples/source_v1alpha1_bucket.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: source.toolkit.fluxcd.io/v1alpha1
22
kind: Bucket
33
metadata:
44
name: bucket-sample
5-
namespace: gitops-system
65
spec:
76
interval: 1m
87
provider: generic
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: minio-test
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: RoleBinding
3+
metadata:
4+
name: gotk-reconciler
5+
namespace: minio-test
6+
roleRef:
7+
apiGroup: rbac.authorization.k8s.io
8+
kind: ClusterRole
9+
name: cluster-admin
10+
subjects:
11+
- apiGroup: rbac.authorization.k8s.io
12+
kind: User
13+
name: gotk:web-team:reconciler
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: podinfo
5+
namespace: minio-test
6+
spec:
7+
minReadySeconds: 3
8+
revisionHistoryLimit: 5
9+
progressDeadlineSeconds: 60
10+
strategy:
11+
rollingUpdate:
12+
maxUnavailable: 0
13+
type: RollingUpdate
14+
selector:
15+
matchLabels:
16+
app: podinfo
17+
template:
18+
metadata:
19+
annotations:
20+
prometheus.io/scrape: "true"
21+
prometheus.io/port: "9797"
22+
labels:
23+
app: podinfo
24+
spec:
25+
containers:
26+
- name: podinfod
27+
image: stefanprodan/podinfo:4.0.6
28+
imagePullPolicy: IfNotPresent
29+
ports:
30+
- name: http
31+
containerPort: 9898
32+
protocol: TCP
33+
- name: http-metrics
34+
containerPort: 9797
35+
protocol: TCP
36+
- name: grpc
37+
containerPort: 9999
38+
protocol: TCP
39+
command:
40+
- ./podinfo
41+
- --port=9898
42+
- --port-metrics=9797
43+
- --grpc-port=9999
44+
- --grpc-service-name=podinfo
45+
- --level=info
46+
- --random-delay=false
47+
- --random-error=false
48+
env:
49+
- name: PODINFO_UI_COLOR
50+
value: "#34577c"
51+
livenessProbe:
52+
exec:
53+
command:
54+
- podcli
55+
- check
56+
- http
57+
- localhost:9898/healthz
58+
initialDelaySeconds: 5
59+
timeoutSeconds: 5
60+
readinessProbe:
61+
exec:
62+
command:
63+
- podcli
64+
- check
65+
- http
66+
- localhost:9898/readyz
67+
initialDelaySeconds: 5
68+
timeoutSeconds: 5
69+
resources:
70+
limits:
71+
cpu: 2000m
72+
memory: 512Mi
73+
requests:
74+
cpu: 100m
75+
memory: 64Mi
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: podinfo
5+
namespace: minio-test
6+
spec:
7+
type: ClusterIP
8+
selector:
9+
app: podinfo
10+
ports:
11+
- name: http
12+
port: 9898
13+
protocol: TCP
14+
targetPort: http
15+
- port: 9999
16+
targetPort: grpc
17+
protocol: TCP
18+
name: grpc

config/testdata/minio/source.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: source.toolkit.fluxcd.io/v1alpha1
2+
kind: Bucket
3+
metadata:
4+
name: podinfo
5+
namespace: gitops-system
6+
spec:
7+
interval: 1m
8+
provider: generic
9+
bucketName: podinfo
10+
endpoint: minio.minio.svc.cluster.local:9000
11+
region: us-east-1
12+
insecure: true
13+
secretRef:
14+
name: minio-credentials
15+
---
16+
apiVersion: v1
17+
kind: Secret
18+
metadata:
19+
name: minio-credentials
20+
namespace: gitops-system
21+
data:
22+
accesskey: bXlhY2Nlc3NrZXk=
23+
secretkey: bXlzZWNyZXRrZXk=

0 commit comments

Comments
 (0)