Skip to content

Commit 6e2a339

Browse files
Set all compiler feature flags on continuous integration
Signed-off-by: Florentin Dubois <florentin.dubois@clever-cloud.com>
1 parent 5479ce1 commit 6e2a339

12 files changed

+1068
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- uses: actions-rs/cargo@v1
2929
with:
3030
command: build
31-
args: --verbose --features logging --features tracker
31+
args: --verbose --all-features
3232
test:
3333
name: Test operator
3434
runs-on: ubuntu-latest
@@ -53,7 +53,7 @@ jobs:
5353
- uses: actions-rs/cargo@v1
5454
with:
5555
command: tarpaulin
56-
args: --verbose --features logging --features tracker
56+
args: --verbose --all-features
5757
format:
5858
name: Format source code
5959
runs-on: ubuntu-latest
@@ -83,7 +83,7 @@ jobs:
8383
- uses: actions-rs/cargo@v1
8484
with:
8585
command: clippy
86-
args: --verbose --features logging --features tracker -- -D warnings
86+
args: --verbose --all-features -- -D warnings
8787
doc:
8888
name: Build documentation
8989
runs-on: ubuntu-latest
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# See https://github.com/operator-framework/operator-registry/blob/master/docs/design/operator-bundle.md#Bundle-Dockerfile
2+
3+
FROM scratch
4+
5+
# Core bundle labels.
6+
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
7+
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
8+
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
9+
LABEL operators.operatorframework.io.bundle.package.v1=clever-operator
10+
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
11+
LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha
12+
13+
# Labels for testing.
14+
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
15+
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
16+
17+
# Label for OpenShift.
18+
LABEL com.redhat.openshift.versions=v4.6-v4.9
19+
20+
# Copy files to locations specified by labels.
21+
ADD manifests /manifests/
22+
ADD metadata /metadata/
23+
ADD tests/scorecard /tests/scorecard/
24+
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
name: elasticsearches.api.clever-cloud.com
6+
spec:
7+
group: api.clever-cloud.com
8+
names:
9+
categories: []
10+
kind: ElasticSearch
11+
plural: elasticsearches
12+
shortNames:
13+
- es
14+
singular: elasticsearch
15+
scope: Namespaced
16+
versions:
17+
- additionalPrinterColumns: []
18+
name: v1
19+
schema:
20+
openAPIV3Schema:
21+
description: "Auto-generated derived type for Spec via `CustomResource`"
22+
properties:
23+
spec:
24+
properties:
25+
instance:
26+
properties:
27+
plan:
28+
type: string
29+
region:
30+
type: string
31+
required:
32+
- plan
33+
- region
34+
type: object
35+
options:
36+
properties:
37+
apm:
38+
type: boolean
39+
encryption:
40+
type: boolean
41+
kibana:
42+
type: boolean
43+
version:
44+
enum:
45+
- 6
46+
- 7
47+
type: integer
48+
required:
49+
- apm
50+
- encryption
51+
- kibana
52+
- version
53+
type: object
54+
organisation:
55+
type: string
56+
required:
57+
- instance
58+
- options
59+
- organisation
60+
type: object
61+
status:
62+
nullable: true
63+
properties:
64+
addon:
65+
nullable: true
66+
type: string
67+
type: object
68+
required:
69+
- spec
70+
title: ElasticSearch
71+
type: object
72+
served: true
73+
storage: true
74+
subresources:
75+
status: {}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
name: configproviders.api.clever-cloud.com
6+
spec:
7+
group: api.clever-cloud.com
8+
names:
9+
categories: []
10+
kind: ConfigProvider
11+
plural: configproviders
12+
shortNames:
13+
- cp
14+
singular: configprovider
15+
scope: Namespaced
16+
versions:
17+
- additionalPrinterColumns: []
18+
name: v1
19+
schema:
20+
openAPIV3Schema:
21+
description: "Auto-generated derived type for Spec via `CustomResource`"
22+
properties:
23+
spec:
24+
properties:
25+
organisation:
26+
type: string
27+
variables:
28+
additionalProperties:
29+
type: string
30+
type: object
31+
required:
32+
- organisation
33+
- variables
34+
type: object
35+
status:
36+
nullable: true
37+
properties:
38+
addon:
39+
nullable: true
40+
type: string
41+
type: object
42+
required:
43+
- spec
44+
title: ConfigProvider
45+
type: object
46+
served: true
47+
storage: true
48+
subresources:
49+
status: {}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
name: mongodbs.api.clever-cloud.com
6+
spec:
7+
group: api.clever-cloud.com
8+
names:
9+
categories: []
10+
kind: MongoDb
11+
plural: mongodbs
12+
shortNames:
13+
- mo
14+
singular: mongodb
15+
scope: Namespaced
16+
versions:
17+
- additionalPrinterColumns: []
18+
name: v1
19+
schema:
20+
openAPIV3Schema:
21+
description: "Auto-generated derived type for MongoDbSpec via `CustomResource`"
22+
properties:
23+
spec:
24+
properties:
25+
instance:
26+
properties:
27+
plan:
28+
type: string
29+
region:
30+
type: string
31+
required:
32+
- plan
33+
- region
34+
type: object
35+
options:
36+
properties:
37+
encryption:
38+
type: boolean
39+
version:
40+
enum:
41+
- 403
42+
type: integer
43+
required:
44+
- encryption
45+
- version
46+
type: object
47+
organisation:
48+
type: string
49+
required:
50+
- instance
51+
- options
52+
- organisation
53+
type: object
54+
status:
55+
nullable: true
56+
properties:
57+
addon:
58+
nullable: true
59+
type: string
60+
type: object
61+
required:
62+
- spec
63+
title: MongoDb
64+
type: object
65+
served: true
66+
storage: true
67+
subresources:
68+
status: {}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
name: mysqls.api.clever-cloud.com
6+
spec:
7+
group: api.clever-cloud.com
8+
names:
9+
categories: []
10+
kind: MySql
11+
plural: mysqls
12+
shortNames:
13+
- my
14+
singular: mysql
15+
scope: Namespaced
16+
versions:
17+
- additionalPrinterColumns: []
18+
name: v1
19+
schema:
20+
openAPIV3Schema:
21+
description: "Auto-generated derived type for MySqlSpec via `CustomResource`"
22+
properties:
23+
spec:
24+
properties:
25+
instance:
26+
properties:
27+
plan:
28+
type: string
29+
region:
30+
type: string
31+
required:
32+
- plan
33+
- region
34+
type: object
35+
options:
36+
properties:
37+
encryption:
38+
type: boolean
39+
version:
40+
enum:
41+
- 57
42+
- 80
43+
type: integer
44+
required:
45+
- encryption
46+
- version
47+
type: object
48+
organisation:
49+
type: string
50+
required:
51+
- instance
52+
- options
53+
- organisation
54+
type: object
55+
status:
56+
nullable: true
57+
properties:
58+
addon:
59+
nullable: true
60+
type: string
61+
type: object
62+
required:
63+
- spec
64+
title: MySql
65+
type: object
66+
served: true
67+
storage: true
68+
subresources:
69+
status: {}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
name: postgresqls.api.clever-cloud.com
6+
spec:
7+
group: api.clever-cloud.com
8+
names:
9+
categories: []
10+
kind: PostgreSql
11+
plural: postgresqls
12+
shortNames:
13+
- pg
14+
singular: postgresql
15+
scope: Namespaced
16+
versions:
17+
- additionalPrinterColumns: []
18+
name: v1
19+
schema:
20+
openAPIV3Schema:
21+
description: "Auto-generated derived type for PostgreSqlSpec via `CustomResource`"
22+
properties:
23+
spec:
24+
properties:
25+
instance:
26+
properties:
27+
plan:
28+
type: string
29+
region:
30+
type: string
31+
required:
32+
- plan
33+
- region
34+
type: object
35+
options:
36+
properties:
37+
encryption:
38+
type: boolean
39+
version:
40+
enum:
41+
- 13
42+
- 12
43+
- 11
44+
- 10
45+
- 96
46+
type: integer
47+
required:
48+
- encryption
49+
- version
50+
type: object
51+
organisation:
52+
type: string
53+
required:
54+
- instance
55+
- options
56+
- organisation
57+
type: object
58+
status:
59+
nullable: true
60+
properties:
61+
addon:
62+
nullable: true
63+
type: string
64+
type: object
65+
required:
66+
- spec
67+
title: PostgreSql
68+
type: object
69+
served: true
70+
storage: true
71+
subresources:
72+
status: {}

0 commit comments

Comments
 (0)