Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -368,35 +368,34 @@ Operator startOperator(
}

private void setNoConfigMapAccess() {
applyClusterRole("rback-test-no-configmap-access.yaml");
applyClusterRole("rbac-test-no-configmap-access.yaml");
Copy link
Preview

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo 'rback' has been corrected to 'rbac' in the file path reference.

Copilot uses AI. Check for mistakes.

applyClusterRoleBinding();
}

private void setNoCustomResourceAccess() {
applyClusterRole("rback-test-no-cr-access.yaml");
applyClusterRole("rbac-test-no-cr-access.yaml");
Copy link
Preview

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo 'rback' has been corrected to 'rbac' in the file path reference.

Copilot uses AI. Check for mistakes.

applyClusterRoleBinding();
}

private void setFullResourcesAccess() {
applyClusterRole("rback-test-full-access-role.yaml");
applyClusterRole("rbac-test-full-access-role.yaml");
Copy link
Preview

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo 'rback' has been corrected to 'rbac' in the file path reference.

Copilot uses AI. Check for mistakes.

applyClusterRoleBinding();
}

private void addRoleBindingsToTestNamespaces() {
var role =
ReconcilerUtils.loadYaml(
Role.class, this.getClass(), "rback-test-only-main-ns-access.yaml");
ReconcilerUtils.loadYaml(Role.class, this.getClass(), "rbac-test-only-main-ns-access.yaml");
adminClient.resource(role).inNamespace(actualNamespace).createOrReplace();
var roleBinding =
ReconcilerUtils.loadYaml(
RoleBinding.class, this.getClass(), "rback-test-only-main-ns-access-binding.yaml");
RoleBinding.class, this.getClass(), "rbac-test-only-main-ns-access-binding.yaml");
Copy link
Preview

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo 'rback' has been corrected to 'rbac' in the file path reference.

Copilot uses AI. Check for mistakes.

adminClient.resource(roleBinding).inNamespace(actualNamespace).createOrReplace();
}

private void applyClusterRoleBinding() {
var clusterRoleBinding =
ReconcilerUtils.loadYaml(
ClusterRoleBinding.class, this.getClass(), "rback-test-role-binding.yaml");
ClusterRoleBinding.class, this.getClass(), "rbac-test-role-binding.yaml");
Copy link
Preview

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo 'rback' has been corrected to 'rbac' in the file path reference.

Copilot uses AI. Check for mistakes.

adminClient.resource(clusterRoleBinding).createOrReplace();
}

Expand All @@ -418,7 +417,7 @@ private Namespace namespace(String name) {
private void removeClusterRoleBinding() {
var clusterRoleBinding =
ReconcilerUtils.loadYaml(
ClusterRoleBinding.class, this.getClass(), "rback-test-role-binding.yaml");
ClusterRoleBinding.class, this.getClass(), "rbac-test-role-binding.yaml");
Copy link
Preview

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo 'rback' has been corrected to 'rbac' in the file path reference.

Copilot uses AI. Check for mistakes.

adminClient.resource(clusterRoleBinding).delete();
}
}