Skip to content

Commit

Permalink
fix: remove Apache Commons IO dependency (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Aug 31, 2022
1 parent 56816ad commit 7f2354d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;

import org.apache.commons.io.FileUtils;

import io.fabric8.kubernetes.api.model.ServiceAccount;
import io.fabric8.kubernetes.api.model.apps.Deployment;
import io.fabric8.kubernetes.api.model.rbac.ClusterRole;
Expand Down Expand Up @@ -37,7 +36,7 @@ public Path getFileName() {
public byte[] getManifestData(List<ServiceAccount> serviceAccounts, List<ClusterRoleBinding> clusterRoleBindings,
List<ClusterRole> clusterRoles, List<RoleBinding> roleBindings, List<Role> roles, List<Deployment> deployments)
throws IOException {
return FileUtils.readFileToByteArray(new File(crd.getFilePath()));
return Files.readAllBytes(new File(crd.getFilePath()).toPath());
}

@Override
Expand Down

0 comments on commit 7f2354d

Please sign in to comment.