You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errStrings: []string{"Error: Value etcdoperator.v0.9.4: unable to find a deployment to install in the CSV"},
64
64
},
65
+
{
66
+
name: "should raise an warn when the channel does not follows the convention",
67
+
wantWarning: true,
68
+
args: args{
69
+
bundleDir: "./testdata/bundle_with_metadata",
70
+
},
71
+
warnStrings: []string{"Warning: Value memcached-operator.v0.0.1: channel(s) [\"alpha\"] are not following the recommended naming convention: https://olm.operatorframework.io/docs/best-practices/channel-naming"},
name: "should not return warning when the channel names following the convention",
116
+
args: args{
117
+
channels: []string{"fast", "candidate"},
118
+
},
119
+
wantWarn: false,
120
+
},
121
+
{
122
+
name: "should return warning when the channel names are NOT following the convention",
123
+
args: args{
124
+
channels: []string{"mychannel-4.5"},
125
+
},
126
+
wantWarn: true,
127
+
warnStrings: []string{"channel(s) [\"mychannel-4.5\"] are not following the recommended naming convention: https://olm.operatorframework.io/docs/best-practices/channel-naming"},
128
+
},
129
+
{
130
+
name: "should return warning when has 1 channel NOT following the convention along the others which follows up",
warnStrings: []string{"channel(s) [\"alpha\"] are not following the recommended naming convention: https://olm.operatorframework.io/docs/best-practices/channel-naming"},
description: Memcached is the Schema for the memcacheds API
21
+
properties:
22
+
apiVersion:
23
+
description: 'APIVersion defines the versioned schema of this representation
24
+
of an object. Servers should convert recognized schemas to the latest
25
+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
26
+
type: string
27
+
kind:
28
+
description: 'Kind is a string value representing the REST resource this
29
+
object represents. Servers may infer this from the endpoint the client
30
+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
31
+
type: string
32
+
metadata:
33
+
type: object
34
+
spec:
35
+
description: MemcachedSpec defines the desired state of Memcached
36
+
properties:
37
+
foo:
38
+
description: Foo is an example field of Memcached. Edit memcached_types.go
39
+
to remove/update
40
+
type: string
41
+
size:
42
+
description: Size defines the number of Memcached instances
43
+
format: int32
44
+
type: integer
45
+
type: object
46
+
status:
47
+
description: MemcachedStatus defines the observed state of Memcached
48
+
properties:
49
+
nodes:
50
+
description: Nodes store the name of the pods which are running Memcached
0 commit comments