Skip to content

Commit

Permalink
fix: Not to consider disabled annotations as custom annotations (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3CHO authored Jan 22, 2024
1 parent b644946 commit dcc4a19
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1625,6 +1625,9 @@ private static void setFunctionalAnnotation(V1ObjectMeta metadata, String key, S
}

private static boolean isCustomAnnotation(String key) {
if (key.startsWith(KubernetesConstants.Annotation.DISABLED_KEY_EXTRA_PREFIX)) {
key = key.substring(KubernetesConstants.Annotation.DISABLED_KEY_EXTRA_PREFIX.length());
}
if (SUPPORTED_ANNOTATIONS.contains(key)) {
return false;
}
Expand Down

0 comments on commit dcc4a19

Please sign in to comment.