Skip to content

Commit 5bc05ee

Browse files
authored
Merge pull request #38748 from geoand/#38055
Sanitize app.dekorate.io/vcs-url kubernetes annotation
2 parents e8a84db + 8afe4ff commit 5bc05ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KubernetesCommonHelper.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
import io.dekorate.project.Project;
7676
import io.dekorate.project.ScmInfo;
7777
import io.dekorate.utils.Annotations;
78+
import io.dekorate.utils.Git;
7879
import io.dekorate.utils.Labels;
7980
import io.dekorate.utils.Strings;
8081
import io.fabric8.kubernetes.api.model.ContainerBuilder;
@@ -989,7 +990,7 @@ private static List<DecoratorBuildItem> createAnnotationDecorators(Optional<Proj
989990
if (vcsUrl != null) {
990991
result.add(new DecoratorBuildItem(target,
991992
new AddAnnotationDecorator(name,
992-
new Annotation(QUARKUS_ANNOTATIONS_VCS_URL, vcsUrl, new String[0]))));
993+
new Annotation(QUARKUS_ANNOTATIONS_VCS_URL, Git.sanitizeRemoteUrl(vcsUrl), new String[0]))));
993994
}
994995

995996
});

0 commit comments

Comments
 (0)