Skip to content

Commit 4114017

Browse files
author
Per G. da Silva
committed
Use yamlfmt to format testdata files
Signed-off-by: Per G. da Silva <[email protected]>
1 parent 64b6618 commit 4114017

12 files changed

+217
-231
lines changed

testdata/images/bundles/test-operator/v1.0.0/manifests/bundle.configmap.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ metadata:
44
name: test-configmap
55
annotations:
66
shouldNotTemplate: >
7-
The namespace is {{ $labels.namespace }}. The templated
8-
$labels.namespace is NOT expected to be processed by OLM's
9-
rendering engine for registry+v1 bundles.
7+
The namespace is {{ $labels.namespace }}. The templated $labels.namespace is NOT expected to be processed by OLM's rendering engine for registry+v1 bundles.
8+
109
data:
1110
version: "v1.0.0"
1211
name: "test-configmap"

testdata/images/bundles/test-operator/v1.0.0/manifests/olm.operatorframework.com_olme2etest.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: apiextensions.k8s.io/v1
32
kind: CustomResourceDefinition
43
metadata:

testdata/images/bundles/test-operator/v1.0.0/manifests/testoperator.clusterserviceversion.yaml

Lines changed: 98 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -35,115 +35,115 @@ spec:
3535
description: OLM E2E Testing Operator
3636
displayName: test-operator
3737
icon:
38-
- base64data: ""
39-
mediatype: ""
38+
- base64data: ""
39+
mediatype: ""
4040
install:
4141
spec:
4242
deployments:
43-
- label:
44-
app.kubernetes.io/component: controller
45-
app.kubernetes.io/name: test-operator
46-
app.kubernetes.io/version: 1.0.0
47-
name: test-operator
48-
spec:
49-
replicas: 1
50-
selector:
51-
matchLabels:
52-
app: olme2etest
53-
template:
54-
metadata:
55-
labels:
43+
- label:
44+
app.kubernetes.io/component: controller
45+
app.kubernetes.io/name: test-operator
46+
app.kubernetes.io/version: 1.0.0
47+
name: test-operator
48+
spec:
49+
replicas: 1
50+
selector:
51+
matchLabels:
5652
app: olme2etest
57-
spec:
58-
terminationGracePeriodSeconds: 0
59-
containers:
60-
- name: busybox
61-
image: busybox:1.36
62-
command:
63-
- 'sleep'
64-
- '1000'
65-
securityContext:
66-
runAsUser: 1000
67-
runAsNonRoot: true
68-
serviceAccountName: simple-bundle-manager
53+
template:
54+
metadata:
55+
labels:
56+
app: olme2etest
57+
spec:
58+
terminationGracePeriodSeconds: 0
59+
containers:
60+
- name: busybox
61+
image: busybox:1.36
62+
command:
63+
- 'sleep'
64+
- '1000'
65+
securityContext:
66+
runAsUser: 1000
67+
runAsNonRoot: true
68+
serviceAccountName: simple-bundle-manager
6969
clusterPermissions:
70-
- rules:
71-
- apiGroups:
72-
- authentication.k8s.io
73-
resources:
74-
- tokenreviews
75-
verbs:
76-
- create
77-
- apiGroups:
78-
- authorization.k8s.io
79-
resources:
80-
- subjectaccessreviews
81-
verbs:
82-
- create
83-
serviceAccountName: simple-bundle-manager
70+
- rules:
71+
- apiGroups:
72+
- authentication.k8s.io
73+
resources:
74+
- tokenreviews
75+
verbs:
76+
- create
77+
- apiGroups:
78+
- authorization.k8s.io
79+
resources:
80+
- subjectaccessreviews
81+
verbs:
82+
- create
83+
serviceAccountName: simple-bundle-manager
8484
permissions:
85-
- rules:
86-
- apiGroups:
87-
- ""
88-
resources:
89-
- configmaps
90-
- serviceaccounts
91-
verbs:
92-
- get
93-
- list
94-
- watch
95-
- create
96-
- update
97-
- patch
98-
- delete
99-
- apiGroups:
100-
- networking.k8s.io
101-
resources:
102-
- networkpolicies
103-
verbs:
104-
- get
105-
- list
106-
- create
107-
- update
108-
- delete
109-
- apiGroups:
110-
- coordination.k8s.io
111-
resources:
112-
- leases
113-
verbs:
114-
- get
115-
- list
116-
- watch
117-
- create
118-
- update
119-
- patch
120-
- delete
121-
- apiGroups:
122-
- ""
123-
resources:
124-
- events
125-
verbs:
126-
- create
127-
- patch
128-
serviceAccountName: simple-bundle-manager
85+
- rules:
86+
- apiGroups:
87+
- ""
88+
resources:
89+
- configmaps
90+
- serviceaccounts
91+
verbs:
92+
- get
93+
- list
94+
- watch
95+
- create
96+
- update
97+
- patch
98+
- delete
99+
- apiGroups:
100+
- networking.k8s.io
101+
resources:
102+
- networkpolicies
103+
verbs:
104+
- get
105+
- list
106+
- create
107+
- update
108+
- delete
109+
- apiGroups:
110+
- coordination.k8s.io
111+
resources:
112+
- leases
113+
verbs:
114+
- get
115+
- list
116+
- watch
117+
- create
118+
- update
119+
- patch
120+
- delete
121+
- apiGroups:
122+
- ""
123+
resources:
124+
- events
125+
verbs:
126+
- create
127+
- patch
128+
serviceAccountName: simple-bundle-manager
129129
strategy: deployment
130130
installModes:
131-
- supported: false
132-
type: OwnNamespace
133-
- supported: true
134-
type: SingleNamespace
135-
- supported: false
136-
type: MultiNamespace
137-
- supported: true
138-
type: AllNamespaces
131+
- supported: false
132+
type: OwnNamespace
133+
- supported: true
134+
type: SingleNamespace
135+
- supported: false
136+
type: MultiNamespace
137+
- supported: true
138+
type: AllNamespaces
139139
keywords:
140-
- registry
140+
- registry
141141
links:
142-
- name: simple-bundle
143-
url: https://simple-bundle.domain
142+
- name: simple-bundle
143+
url: https://simple-bundle.domain
144144
maintainers:
145-
- email: main#simple-bundle.domain
146-
name: Simple Bundle
145+
- email: main#simple-bundle.domain
146+
name: Simple Bundle
147147
maturity: beta
148148
provider:
149149
name: Simple Bundle

testdata/images/bundles/test-operator/v1.0.0/manifests/testoperator.networkpolicy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ metadata:
55
spec:
66
podSelector: {}
77
policyTypes:
8-
- Ingress
8+
- Ingress

testdata/images/bundles/test-operator/v1.2.0/manifests/bundle.configmap.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ metadata:
44
name: test-configmap
55
annotations:
66
shouldNotTemplate: >
7-
The namespace is {{ $labels.namespace }}. The templated
8-
$labels.namespace is NOT expected to be processed by OLM's
9-
rendering engine for registry+v1 bundles.
7+
The namespace is {{ $labels.namespace }}. The templated $labels.namespace is NOT expected to be processed by OLM's rendering engine for registry+v1 bundles.
8+
109
data:
1110
version: "v1.2.0"
1211
name: "test-configmap"

testdata/images/bundles/test-operator/v1.2.0/manifests/olm.operatorframework.com_olme2etest.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: apiextensions.k8s.io/v1
32
kind: CustomResourceDefinition
43
metadata:

0 commit comments

Comments
 (0)