Skip to content

Commit

Permalink
fix fabric8io#3407: adding a changelog and an Itemable interface
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Mar 4, 2022
1 parent 8e453ab commit 84560e4
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 24 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* Fix #3813: Handle exit code status messages with pod uploads

#### New Features
* Fix #3407:

#### _**Note**_: Breaking changes in the API
Please see the [migration guide](doc/MIGRATION-v6.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.kubernetes.client.dsl;

public interface Itemable<T, R> {

R withItem(T item);

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,19 @@
/**
* The entry point to client operations that are either "cross namespace resources", or are available in the invocation chain
* after a namespace has already been specified.
* @param <T> The Kubernetes resource type.
* @param <L> The list variant of the Kubernetes resource type.
* @param <R> The resource operations.
*
* @param <T> The Kubernetes resource type.
* @param <L> The list variant of the Kubernetes resource type.
* @param <R> The resource operations.
*/
public interface NonNamespaceOperation<T, L, R> extends
Nameable<R>,
FilterWatchListMultiDeletable<T, L>,
Createable<T>,
CreateOrReplaceable<T>,
DryRunable<WritableOperation<T>>,
Replaceable<T>,
StatusReplaceable<T>,
Loadable<R> {

R withItem(T item);
Nameable<R>,
FilterWatchListMultiDeletable<T, L>,
Createable<T>,
CreateOrReplaceable<T>,
DryRunable<WritableOperation<T>>,
Replaceable<T>,
StatusReplaceable<T>,
Loadable<R>,
Itemable<T, R> {
}

Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@

/**
* The entry point to client operations.
* @param <T> The Kubernetes resource type.
* @param <L> The list variant of the Kubernetes resource type.
* @param <R> The resource operations.
*
* @param <T> The Kubernetes resource type.
* @param <L> The list variant of the Kubernetes resource type.
* @param <R> The resource operations.
*/
public interface Operation<T, L, R>
extends
AnyNamespaceable<FilterWatchListMultiDeletable<T, L>>,
Namespaceable<NonNamespaceOperation<T, L, R>>,
FilterWatchListMultiDeletable<T, L>,
Loadable<R> {

R withItem(T item);
extends
AnyNamespaceable<FilterWatchListMultiDeletable<T, L>>,
Namespaceable<NonNamespaceOperation<T, L, R>>,
FilterWatchListMultiDeletable<T, L>,
Loadable<R>,
Itemable<T, R> {
}

0 comments on commit 84560e4

Please sign in to comment.