Skip to content

Commit

Permalink
- Dangling resource fix.
Browse files Browse the repository at this point in the history
- Patch version bump.
  • Loading branch information
jjzazuet committed Aug 26, 2024
1 parent d30f4e3 commit af81764
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bl-k8s-rt/src/main/java/io/vacco/beleth/rt/BlKubeRt.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ public void commit(String packageName) {
var d = cluster.stream()
.filter(r -> !r.id().equals(res.id()))
.filter(r -> r.getContentHash().equals(res.getContentHash()))
.map(Object::toString)
.collect(toList());
if (!d.isEmpty()) {
log.info("Skipping cluster managed resource {}, derived from\n{}", res, join("\n", d));
} else {
var delete = d.isEmpty() || d.stream().filter(local::contains).findFirst().isEmpty();
if (delete) {
kubeApi.delete(res);
} else {
log.info("Skipping cluster managed resource {}, derived from\n{}", res, d);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins { id("io.vacco.oss.gitflow") version "1.0.1" apply(false) }
subprojects {
apply(plugin = "io.vacco.oss.gitflow")
group = "io.vacco.beleth"
version = "0.4.0"
version = "0.4.1"

configure<io.vacco.oss.gitflow.GsPluginProfileExtension> {
sharedLibrary(true, false)
Expand Down

0 comments on commit af81764

Please sign in to comment.