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
"openAPIV3Schema.properties.spec.properties.source.properties.image.ref: Invalid value: \"string\": must start with a valid domain. valid domains must be alphanumeric characters (lowercase and uppercase) separated by the \".\" character.",
"openAPIV3Schema.properties.spec.properties.source.properties.image.ref: Invalid value: \"string\": a valid name is required. valid names must contain lowercase alphanumeric characters separated only by the \".\", \"_\", \"__\", \"-\" characters.",
62
+
},
63
+
},
64
+
"invalid digest based image ref, invalid digest algorithm": {
"openAPIV3Schema.properties.spec.properties.source.properties.image.ref: Invalid value: \"string\": digest algorithm is not valid. valid algorithms must start with an uppercase or lowercase alpha character followed by alphanumeric characters and may contain the \"-\", \"_\", \"+\", and \".\" characters.",
70
+
},
71
+
},
72
+
"invalid digest based image ref, too short digest encoding": {
73
+
spec: ImageSource{
74
+
Ref: "docker.io/foo/bar@sha256:abcdef123456789",
75
+
},
76
+
wantErrs: []string{
77
+
"openAPIV3Schema.properties.spec.properties.source.properties.image.ref: Invalid value: \"string\": digest is not valid. the encoded string must be at least 32 characters",
78
+
},
79
+
},
80
+
"invalid digest based image ref, invalid characters in digest encoding": {
"openAPIV3Schema.properties.spec.properties.source.properties.image.ref: Invalid value: \"string\": digest is not valid. the encoded string must only contain hex characters (A-F, a-f, 0-9)",
86
+
},
87
+
},
88
+
"invalid image ref, no tag or digest": {
89
+
spec: ImageSource{
90
+
Ref: "docker.io/foo/bar",
91
+
},
92
+
wantErrs: []string{
93
+
"openAPIV3Schema.properties.spec.properties.source.properties.image.ref: Invalid value: \"string\": must end with a digest or a tag",
"openAPIV3Schema.properties.spec.properties.source.properties.image.ref: Invalid value: \"string\": tag is invalid. the tag must not be more than 127 characters",
102
+
},
103
+
},
104
+
"invalid tag based image ref, tag contains invalid characters": {
105
+
spec: ImageSource{
106
+
Ref: "docker.io/foo/bar:-foo_bar-",
107
+
},
108
+
wantErrs: []string{
109
+
"openAPIV3Schema.properties.spec.properties.source.properties.image.ref: Invalid value: \"string\": tag is invalid. valid tags must begin with a word character (alphanumeric + \"_\") followed by word characters or \".\", and \"-\" characters",
110
+
},
111
+
},
112
+
"valid tag based image ref": {
113
+
spec: ImageSource{
114
+
Ref: "docker.io/foo/bar:v1.0.0",
115
+
},
116
+
wantErrs: []string{},
117
+
},
118
+
"valid tag based image ref, pollIntervalMinutes specified": {
119
+
spec: ImageSource{
120
+
Ref: "docker.io/foo/bar:v1.0.0",
121
+
PollIntervalMinutes: ptr.To(5),
122
+
},
123
+
wantErrs: []string{},
124
+
},
125
+
"invalid image ref, only domain with port": {
126
+
spec: ImageSource{
127
+
Ref: "docker.io:8080",
128
+
},
129
+
wantErrs: []string{
130
+
"openAPIV3Schema.properties.spec.properties.source.properties.image.ref: Invalid value: \"string\": a valid name is required. valid names must contain lowercase alphanumeric characters separated only by the \".\", \"_\", \"__\", \"-\" characters.",
"openAPIV3Schema.properties.status.properties.resolvedSource.properties.image.properties.ref: Invalid value: \"string\": must start with a valid domain. valid domains must be alphanumeric characters (lowercase and uppercase) separated by the \".\" character.",
"openAPIV3Schema.properties.status.properties.resolvedSource.properties.image.properties.ref: Invalid value: \"string\": a valid name is required. valid names must contain lowercase alphanumeric characters separated only by the \".\", \"_\", \"__\", \"-\" characters.",
189
+
},
190
+
},
191
+
"invalid digest based image ref, invalid digest algorithm": {
"openAPIV3Schema.properties.status.properties.resolvedSource.properties.image.properties.ref: Invalid value: \"string\": digest algorithm is not valid. valid algorithms must start with an uppercase or lowercase alpha character followed by alphanumeric characters and may contain the \"-\", \"_\", \"+\", and \".\" characters.",
197
+
},
198
+
},
199
+
"invalid digest based image ref, too short digest encoding": {
200
+
spec: ImageSource{
201
+
Ref: "docker.io/foo/bar@sha256:abcdef123456789",
202
+
},
203
+
wantErrs: []string{
204
+
"openAPIV3Schema.properties.status.properties.resolvedSource.properties.image.properties.ref: Invalid value: \"string\": digest is not valid. the encoded string must be at least 32 characters",
205
+
},
206
+
},
207
+
"invalid digest based image ref, invalid characters in digest encoding": {
"openAPIV3Schema.properties.status.properties.resolvedSource.properties.image.properties.ref: Invalid value: \"string\": digest is not valid. the encoded string must only contain hex characters (A-F, a-f, 0-9)",
213
+
},
214
+
},
215
+
"invalid image ref, no digest": {
216
+
spec: ImageSource{
217
+
Ref: "docker.io/foo/bar",
218
+
},
219
+
wantErrs: []string{
220
+
"openAPIV3Schema.properties.status.properties.resolvedSource.properties.image.properties.ref: Invalid value: \"string\": must end with a digest",
221
+
},
222
+
},
223
+
"invalid image ref, only domain with port": {
224
+
spec: ImageSource{
225
+
Ref: "docker.io:8080",
226
+
},
227
+
wantErrs: []string{
228
+
"openAPIV3Schema.properties.status.properties.resolvedSource.properties.image.properties.ref: Invalid value: \"string\": a valid name is required. valid names must contain lowercase alphanumeric characters separated only by the \".\", \"_\", \"__\", \"-\" characters.",
229
+
"openAPIV3Schema.properties.status.properties.resolvedSource.properties.image.properties.ref: Invalid value: \"string\": must end with a digest",
230
+
},
231
+
},
232
+
"invalid image ref, tag-based ref": {
233
+
spec: ImageSource{
234
+
Ref: "docker.io/foo/bar:latest",
235
+
},
236
+
wantErrs: []string{
237
+
"openAPIV3Schema.properties.status.properties.resolvedSource.properties.image.properties.ref: Invalid value: \"string\": must end with a digest",
0 commit comments