Skip to content

Commit

Permalink
- Patch version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjzazuet committed Aug 25, 2024
1 parent f19dcd8 commit f3338a6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
fi
- name: Build bl-k8s-rt
if: env.BL_COMMON_PROJECTS_MODIFIED == 'true'
run: gradle :bl-k8s-rt:build
run: gradle :bl-codegen:build :bl-k8s-rt:build :io.vacco.beleth.gradle.plugin:build
env:
SONATYPE_USER: ${{secrets.SONATYPE_USER}}
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
Expand Down
4 changes: 1 addition & 3 deletions bl-k8s-test/src/test/java/BlKubeRtTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ public class BlKubeRtTest {
if (add) {
rt
.add(BlTestManifests.nameSpace)
.add(BlTestManifests.serviceAccount)
.add(BlTestManifests.clusterRoleAggregatedMetricsReader)
.add(BlTestManifests.clusterRoleMetricsServer);
.add(BlTestManifests.serviceAccount);
}

var pkg = "io.gopher.test";
Expand Down
39 changes: 0 additions & 39 deletions bl-k8s-test/src/test/java/BlTestManifests.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import io.k8s.api.core.v1.Namespace;
import io.k8s.api.core.v1.ServiceAccount;
import io.k8s.api.rbac.v1.ClusterRole;

import java.util.List;

import static io.k8s.api.core.v1.Namespace.namespace;
import static io.k8s.api.core.v1.ServiceAccount.serviceAccount;
import static io.k8s.api.rbac.v1.ClusterRole.clusterRole;
import static io.k8s.api.rbac.v1.PolicyRule.policyRule;
import static io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta.objectMeta;
import static io.k8s.apimachinery.pkg.apis.meta.v1.objectmeta.Labels.labels;

Expand All @@ -34,38 +29,4 @@ public class BlTestManifests {
.labels(labels().kv("k8s-app", "momo-server"))
);

public static final ClusterRole clusterRoleAggregatedMetricsReader = clusterRole()
.apiVersion("rbac.authorization.k8s.io/v1")
.kind("ClusterRole")
.metadata(
objectMeta()
.name("momo-metrics-reader")
.labels(labels().kv("k8s-app", "momo-server"))
)
.rules(List.of(
policyRule()
.apiGroups(List.of("metrics.k8s.io"))
.resources(List.of("pods", "nodes"))
.verbs(List.of("get", "list", "watch"))
));

public static final ClusterRole clusterRoleMetricsServer = clusterRole()
.apiVersion("rbac.authorization.k8s.io/v1")
.kind("ClusterRole")
.metadata(
objectMeta()
.name("momo-metrics-server")
.labels(labels().kv("k8s-app", "momo-server"))
)
.rules(List.of(
policyRule()
.apiGroups(List.of(""))
.resources(List.of("nodes/metrics"))
.verbs(List.of("get")),
policyRule()
.apiGroups(List.of(""))
.resources(List.of("pods", "nodes"))
.verbs(List.of("get", "list", "watch"))
));

}
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.2"
version = "0.4.3"

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

0 comments on commit f3338a6

Please sign in to comment.