Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kubecmd client and executor #15

Merged
merged 3 commits into from
Feb 22, 2024
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
@@ -1,3 +1,7 @@
/*
* Copyright Skodjob authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.skodjob.testframe.clients;

import io.fabric8.kubernetes.client.Config;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Copyright Skodjob authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.skodjob.testframe.clients;


import io.skodjob.testframe.executor.ExecResult;

public class KubeClusterException extends RuntimeException {
public final ExecResult result;

public KubeClusterException(ExecResult result, String s) {
super(s);
this.result = result;
}

public KubeClusterException(Throwable cause) {
super(cause);
this.result = null;
}

public static class NotFound extends KubeClusterException {

public NotFound(ExecResult result, String s) {
super(result, s);
}
}

public static class AlreadyExists extends KubeClusterException {

public AlreadyExists(ExecResult result, String s) {
super(result, s);
}
}

public static class InvalidResource extends KubeClusterException {

public InvalidResource(ExecResult result, String s) {
super(result, s);
}
}
}
Loading
Loading