Skip to content

Commit 3a3b0d7

Browse files
geoandgsmet
authored andcommitted
Sanitize app.dekorate.io/vcs-url kubernetes annotation
Fixes: #38055 (cherry picked from commit 8afe4ff)
1 parent 1a6f4cb commit 3a3b0d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)