Skip to content

Commit

Permalink
updating to latest sundrio
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Jul 5, 2023
1 parent 449d06b commit bc5dbaf
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public AddCustomResourceDefinitionResourceDecorator(String name, String apiGroup

@Override
public void visit(KubernetesListBuilder list) {
boolean exists = list.getItems().stream().anyMatch(i -> i.getKind().equals("CustomResourceDefinition")
boolean exists = list.buildItems().stream().anyMatch(i -> i.getKind().equals("CustomResourceDefinition")
&& i.getMetadata().getName().equals(name)
&& ApiVersionUtil.trimVersion(i.getApiVersion()).equals("v1"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public AddCustomResourceDefinitionResourceDecorator(String name, String apiGroup

@Override
public void visit(KubernetesListBuilder list) {
boolean exists = list.getItems().stream().anyMatch(i -> i.getKind().equals("CustomResourceDefinition")
boolean exists = list.buildItems().stream().anyMatch(i -> i.getKind().equals("CustomResourceDefinition")
&& i.getMetadata().getName().equals(name)
&& ApiVersionUtil.trimVersion(i.getApiVersion()).equals("v1beta1"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,12 @@

public class RunOperations {

public interface RunConfigNested extends RunConfigFluent<RunConfigNested> {
public class RunConfigNested extends RunConfigFluent<RunConfigNested> {

Pod done();

}

private class RunConfigNestedImpl extends RunConfigFluentImpl<RunConfigNested> implements RunConfigNested {

RunConfigNestedImpl() {
RunConfigNested() {
super(runConfig); // copy the existing properties
}

@Override
public Pod done() {
RunConfig runConfig = new RunConfigBuilder(this).build();
return withRunConfig(runConfig).done();
Expand Down Expand Up @@ -102,7 +95,7 @@ public RunOperations withRunConfig(RunConfig generatorRunConfig) {
* @return
*/
public RunConfigNested withNewRunConfig() {
return new RunConfigNestedImpl();
return new RunConfigNested();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class DefaultSharedIndexInformerTest {
"410: The event in requested index is outdated and cleared (the requested history has been cleared [3/1]) [2]")
.build();
static final WatchEvent outdatedEvent = new WatchEventBuilder().withType(Watcher.Action.ERROR.name())
.withStatusObject(outdatedStatus)
.withObject(outdatedStatus)
.build();
static final Long WATCH_EVENT_EMIT_TIME = 1L;
static final Long OUTDATED_WATCH_EVENT_EMIT_TIME = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public void onClose(WatcherException cause) {

private static WatchEvent outdatedEvent() {
return new WatchEventBuilder().withType(Watcher.Action.ERROR.name())
.withStatusObject(
.withObject(
new StatusBuilder().withCode(HttpURLConnection.HTTP_GONE)
.withMessage(
"410: The event in requested index is outdated and cleared (the requested history has been cleared [3/1]) [2]")
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!-- Core versions -->
<sundrio.version>0.95.0</sundrio.version>
<sundrio.version>0.100.1</sundrio.version>
<okhttp.version>3.12.12</okhttp.version>
<okhttp.bundle.version>3.12.1_1</okhttp.bundle.version>
<okio.version>1.15.0</okio.version>
Expand Down

0 comments on commit bc5dbaf

Please sign in to comment.