This is an automated email from the ASF dual-hosted git repository. marat pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push: new 7a89260 Remove unused labels 7a89260 is described below commit 7a8926002265bccbf1f10e82d855d0820b9b35eb Author: Marat Gubaidullin <marat.gubaidul...@gmail.com> AuthorDate: Mon Oct 17 14:25:35 2022 -0400 Remove unused labels --- .../java/org/apache/camel/karavan/operator/resource/KaravanRole.java | 4 ---- .../apache/camel/karavan/operator/resource/KaravanRoleBinding.java | 4 ---- .../camel/karavan/operator/resource/KaravanRoleBindingView.java | 4 ---- 3 files changed, 12 deletions(-) diff --git a/karavan-operator/src/main/java/org/apache/camel/karavan/operator/resource/KaravanRole.java b/karavan-operator/src/main/java/org/apache/camel/karavan/operator/resource/KaravanRole.java index ddb7dc8..fef92c6 100644 --- a/karavan-operator/src/main/java/org/apache/camel/karavan/operator/resource/KaravanRole.java +++ b/karavan-operator/src/main/java/org/apache/camel/karavan/operator/resource/KaravanRole.java @@ -24,9 +24,6 @@ import io.javaoperatorsdk.operator.api.reconciler.dependent.ReconcileResult; import io.javaoperatorsdk.operator.processing.dependent.kubernetes.CRUDKubernetesDependentResource; import org.apache.camel.karavan.operator.Constants; import org.apache.camel.karavan.operator.spec.Karavan; -import org.apache.camel.karavan.operator.Utils; - -import java.util.Map; public class KaravanRole extends CRUDKubernetesDependentResource<Role, Karavan> { @@ -41,7 +38,6 @@ public class KaravanRole extends CRUDKubernetesDependentResource<Role, Karavan> .withNewMetadata() .withName(Constants.ROLE_KARAVAN) .withNamespace(karavan.getMetadata().getNamespace()) - .withLabels(Utils.getLabels(Constants.ROLE_KARAVAN, Map.of())) .endMetadata() .withRules( new PolicyRuleBuilder().withApiGroups("").withResources("secrets", "configmaps").withVerbs("get", "list").build(), diff --git a/karavan-operator/src/main/java/org/apache/camel/karavan/operator/resource/KaravanRoleBinding.java b/karavan-operator/src/main/java/org/apache/camel/karavan/operator/resource/KaravanRoleBinding.java index 2f78944..bed2901 100644 --- a/karavan-operator/src/main/java/org/apache/camel/karavan/operator/resource/KaravanRoleBinding.java +++ b/karavan-operator/src/main/java/org/apache/camel/karavan/operator/resource/KaravanRoleBinding.java @@ -24,9 +24,6 @@ import io.javaoperatorsdk.operator.api.reconciler.dependent.ReconcileResult; import io.javaoperatorsdk.operator.processing.dependent.kubernetes.CRUDKubernetesDependentResource; import org.apache.camel.karavan.operator.Constants; import org.apache.camel.karavan.operator.spec.Karavan; -import org.apache.camel.karavan.operator.Utils; - -import java.util.Map; public class KaravanRoleBinding extends CRUDKubernetesDependentResource<RoleBinding, Karavan> { @@ -41,7 +38,6 @@ public class KaravanRoleBinding extends CRUDKubernetesDependentResource<RoleBind .withNewMetadata() .withName(Constants.ROLEBINDING_KARAVAN) .withNamespace(karavan.getMetadata().getNamespace()) - .withLabels(Utils.getLabels(Constants.ROLEBINDING_KARAVAN, Map.of())) .endMetadata() .withNewRoleRef("rbac.authorization.k8s.io", "Role", Constants.ROLE_KARAVAN) .withSubjects(new Subject("", "ServiceAccount", Constants.SERVICEACCOUNT_KARAVAN, karavan.getMetadata().getNamespace())) diff --git a/karavan-operator/src/main/java/org/apache/camel/karavan/operator/resource/KaravanRoleBindingView.java b/karavan-operator/src/main/java/org/apache/camel/karavan/operator/resource/KaravanRoleBindingView.java index 29bf37b..3e2746e 100644 --- a/karavan-operator/src/main/java/org/apache/camel/karavan/operator/resource/KaravanRoleBindingView.java +++ b/karavan-operator/src/main/java/org/apache/camel/karavan/operator/resource/KaravanRoleBindingView.java @@ -24,9 +24,6 @@ import io.javaoperatorsdk.operator.api.reconciler.dependent.ReconcileResult; import io.javaoperatorsdk.operator.processing.dependent.kubernetes.CRUDKubernetesDependentResource; import org.apache.camel.karavan.operator.Constants; import org.apache.camel.karavan.operator.spec.Karavan; -import org.apache.camel.karavan.operator.Utils; - -import java.util.Map; public class KaravanRoleBindingView extends CRUDKubernetesDependentResource<RoleBinding, Karavan> { @@ -41,7 +38,6 @@ public class KaravanRoleBindingView extends CRUDKubernetesDependentResource<Role .withNewMetadata() .withName(Constants.ROLEBINDING_KARAVAN_VIEW) .withNamespace(karavan.getMetadata().getNamespace()) - .withLabels(Utils.getLabels(Constants.ROLEBINDING_KARAVAN_VIEW, Map.of())) .endMetadata() .withNewRoleRef("rbac.authorization.k8s.io", "ClusterRole", "view") .withSubjects(new Subject("", "ServiceAccount", Constants.SERVICEACCOUNT_KARAVAN, karavan.getMetadata().getNamespace()))