Merge pull request #26237 from duglin/UseConstant
Automatic merge from submit-queue Use `CreatedByAnnotation` constant A nit but didn't want the strings to get out of sync. Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
@@ -116,8 +116,8 @@ func TestParseAnnotations(t *testing.T) {
|
||||
expectErr: false,
|
||||
},
|
||||
{
|
||||
annotations: []string{"url=" + testURL, "kubernetes.io/created-by=" + testJSON},
|
||||
expected: map[string]string{"url": testURL, "kubernetes.io/created-by": testJSON},
|
||||
annotations: []string{"url=" + testURL, api.CreatedByAnnotation + "=" + testJSON},
|
||||
expected: map[string]string{"url": testURL, api.CreatedByAnnotation: testJSON},
|
||||
expectedRemove: []string{},
|
||||
scenario: "add annotations with special characters",
|
||||
expectErr: false,
|
||||
|
Reference in New Issue
Block a user