@@ -48,11 +48,12 @@ import (
48
48
)
49
49
50
50
const (
51
- copaProduct = "copa"
52
- defaultRegistry = "docker.io"
53
- defaultTag = "latest"
54
- LINUX = "linux"
55
- trueString = "true"
51
+ copaProduct = "copa"
52
+ defaultRegistry = "docker.io"
53
+ defaultTag = "latest"
54
+ LINUX = "linux"
55
+ trueString = "true"
56
+ copaAnnotationKeyPrefix = "sh.copa"
56
57
)
57
58
58
59
// for testing.
@@ -133,13 +134,13 @@ func createMultiPlatformManifest(
133
134
// add a custom annotation to indicate this image was patched by Copa
134
135
patchedKey := exptypes.AnnotationKey {
135
136
Type : exptypes .AnnotationIndex ,
136
- Key : "copacetic .patched" ,
137
+ Key : copaAnnotationKeyPrefix + " .patched" ,
137
138
}
138
139
annotations [patchedKey ] = trueString
139
140
140
141
patchedTimestampKey := exptypes.AnnotationKey {
141
142
Type : exptypes .AnnotationIndex ,
142
- Key : "copacetic .patched.timestamp" ,
143
+ Key : copaAnnotationKeyPrefix + " .patched.timestamp" ,
143
144
}
144
145
annotations [patchedTimestampKey ] = time .Now ().UTC ().Format (time .RFC3339 )
145
146
@@ -155,13 +156,13 @@ func createMultiPlatformManifest(
155
156
156
157
patchedKey := exptypes.AnnotationKey {
157
158
Type : exptypes .AnnotationIndex ,
158
- Key : "copacetic .patched" ,
159
+ Key : copaAnnotationKeyPrefix + " .patched" ,
159
160
}
160
161
annotations [patchedKey ] = trueString
161
162
162
163
patchedTimestampKey := exptypes.AnnotationKey {
163
164
Type : exptypes .AnnotationIndex ,
164
- Key : "copacetic .patched.timestamp" ,
165
+ Key : copaAnnotationKeyPrefix + " .patched.timestamp" ,
165
166
}
166
167
annotations [patchedTimestampKey ] = time .Now ().UTC ().Format (time .RFC3339 )
167
168
}
0 commit comments