Skip to content

Commit

Permalink
Sanitize app.dekorate.io/vcs-url kubernetes annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Feb 13, 2024
1 parent 490992e commit 8afe4ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
import io.dekorate.project.Project;
import io.dekorate.project.ScmInfo;
import io.dekorate.utils.Annotations;
import io.dekorate.utils.Git;
import io.dekorate.utils.Labels;
import io.dekorate.utils.Strings;
import io.fabric8.kubernetes.api.model.ContainerBuilder;
Expand Down Expand Up @@ -989,7 +990,7 @@ private static List<DecoratorBuildItem> createAnnotationDecorators(Optional<Proj
if (vcsUrl != null) {
result.add(new DecoratorBuildItem(target,
new AddAnnotationDecorator(name,
new Annotation(QUARKUS_ANNOTATIONS_VCS_URL, vcsUrl, new String[0]))));
new Annotation(QUARKUS_ANNOTATIONS_VCS_URL, Git.sanitizeRemoteUrl(vcsUrl), new String[0]))));
}

});
Expand Down

0 comments on commit 8afe4ff

Please sign in to comment.