Skip to content

Commit 37d9bf3

Browse files
author
Lily He
committed
change CallBuilder
1 parent b34cd49 commit 37d9bf3

File tree

2 files changed

+1
-228
lines changed

2 files changed

+1
-228
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# -----------------------
66
# Run:
77
# $ docker build -t weblogic-kubernetes-operator:latest .
8-
#
8+
#
99
# Pull base image
1010
# From the Docker store
1111
# -------------------------

operator/src/main/java/oracle/kubernetes/operator/helpers/CallBuilder.java

Lines changed: 0 additions & 227 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import io.kubernetes.client.apis.AuthorizationV1Api;
1414
import io.kubernetes.client.apis.BatchV1Api;
1515
import io.kubernetes.client.apis.CoreV1Api;
16-
import io.kubernetes.client.apis.ExtensionsV1beta1Api;
1716
import io.kubernetes.client.apis.VersionApi;
1817
import io.kubernetes.client.models.V1ConfigMap;
1918
import io.kubernetes.client.models.V1DeleteOptions;
@@ -35,8 +34,6 @@
3534
import io.kubernetes.client.models.V1SubjectAccessReview;
3635
import io.kubernetes.client.models.V1TokenReview;
3736
import io.kubernetes.client.models.V1beta1CustomResourceDefinition;
38-
import io.kubernetes.client.models.V1beta1Ingress;
39-
import io.kubernetes.client.models.V1beta1IngressList;
4037
import io.kubernetes.client.models.VersionInfo;
4138
import java.util.Optional;
4239
import java.util.function.Consumer;
@@ -1493,230 +1490,6 @@ public V1TokenReview createTokenReview(V1TokenReview body) throws ApiException {
14931490
return executeSynchronousCall(requestParams, CREATE_TOKEN_REVIEW_CALL);
14941491
}
14951492

1496-
/* Ingress */
1497-
1498-
private com.squareup.okhttp.Call listIngressAsync(
1499-
ApiClient client,
1500-
String namespace,
1501-
String _continue,
1502-
ApiCallback<V1beta1IngressList> callback)
1503-
throws ApiException {
1504-
return new ExtensionsV1beta1Api(client)
1505-
.listNamespacedIngressAsync(
1506-
namespace,
1507-
pretty,
1508-
_continue,
1509-
fieldSelector,
1510-
includeUninitialized,
1511-
labelSelector,
1512-
limit,
1513-
resourceVersion,
1514-
timeoutSeconds,
1515-
watch,
1516-
callback);
1517-
}
1518-
1519-
private final CallFactory<V1beta1IngressList> LIST_INGRESS =
1520-
(requestParams, usage, cont, callback) ->
1521-
wrap(listIngressAsync(usage, requestParams.namespace, cont, callback));
1522-
1523-
/**
1524-
* Asynchronous step for listing ingress
1525-
*
1526-
* @param namespace Namespace
1527-
* @param responseStep Response step for when call completes
1528-
* @return Asynchronous step
1529-
*/
1530-
public Step listIngressAsync(String namespace, ResponseStep<V1beta1IngressList> responseStep) {
1531-
return createRequestAsync(
1532-
responseStep, new RequestParams("listIngress", namespace, null, null), LIST_INGRESS);
1533-
}
1534-
1535-
/**
1536-
* Read ingress
1537-
*
1538-
* @param name Name
1539-
* @param namespace Namespace
1540-
* @return Read ingress
1541-
* @throws ApiException API Exception
1542-
*/
1543-
public V1beta1Ingress readIngress(String name, String namespace) throws ApiException {
1544-
ApiClient client = helper.take();
1545-
try {
1546-
return new ExtensionsV1beta1Api(client)
1547-
.readNamespacedIngress(name, namespace, pretty, exact, export);
1548-
} finally {
1549-
helper.recycle(client);
1550-
}
1551-
}
1552-
1553-
private com.squareup.okhttp.Call readIngressAsync(
1554-
ApiClient client, String name, String namespace, ApiCallback<V1beta1Ingress> callback)
1555-
throws ApiException {
1556-
return new ExtensionsV1beta1Api(client)
1557-
.readNamespacedIngressAsync(name, namespace, pretty, exact, export, callback);
1558-
}
1559-
1560-
private final CallFactory<V1beta1Ingress> READ_INGRESS =
1561-
(requestParams, usage, cont, callback) ->
1562-
wrap(readIngressAsync(usage, requestParams.name, requestParams.namespace, callback));
1563-
1564-
/**
1565-
* Asynchronous step for reading ingress
1566-
*
1567-
* @param name Name
1568-
* @param namespace Namespace
1569-
* @param responseStep Response step for when call completes
1570-
* @return Asynchronous step
1571-
*/
1572-
public Step readIngressAsync(
1573-
String name, String namespace, ResponseStep<V1beta1Ingress> responseStep) {
1574-
return createRequestAsync(
1575-
responseStep, new RequestParams("readIngress", namespace, name, null), READ_INGRESS);
1576-
}
1577-
1578-
private com.squareup.okhttp.Call createIngressAsync(
1579-
ApiClient client, String namespace, V1beta1Ingress body, ApiCallback<V1beta1Ingress> callback)
1580-
throws ApiException {
1581-
return new ExtensionsV1beta1Api(client)
1582-
.createNamespacedIngressAsync(namespace, body, pretty, callback);
1583-
}
1584-
1585-
private final CallFactory<V1beta1Ingress> CREATE_INGRESS =
1586-
(requestParams, usage, cont, callback) ->
1587-
wrap(
1588-
createIngressAsync(
1589-
usage, requestParams.namespace, (V1beta1Ingress) requestParams.body, callback));
1590-
1591-
/**
1592-
* Asynchronous step for creating ingress
1593-
*
1594-
* @param namespace Namespace
1595-
* @param body Body
1596-
* @param responseStep Response step for when call completes
1597-
* @return Asynchronous step
1598-
*/
1599-
public Step createIngressAsync(
1600-
String namespace, V1beta1Ingress body, ResponseStep<V1beta1Ingress> responseStep) {
1601-
return createRequestAsync(
1602-
responseStep, new RequestParams("createIngress", namespace, null, body), CREATE_INGRESS);
1603-
}
1604-
1605-
private com.squareup.okhttp.Call replaceIngressAsync(
1606-
ApiClient client,
1607-
String name,
1608-
String namespace,
1609-
V1beta1Ingress body,
1610-
ApiCallback<V1beta1Ingress> callback)
1611-
throws ApiException {
1612-
return new ExtensionsV1beta1Api(client)
1613-
.replaceNamespacedIngressAsync(name, namespace, body, pretty, callback);
1614-
}
1615-
1616-
private final CallFactory<V1beta1Ingress> REPLACE_INGRESS =
1617-
(requestParams, usage, cont, callback) ->
1618-
wrap(
1619-
replaceIngressAsync(
1620-
usage,
1621-
requestParams.name,
1622-
requestParams.namespace,
1623-
(V1beta1Ingress) requestParams.body,
1624-
callback));
1625-
1626-
/**
1627-
* Asynchronous step for replacing ingress
1628-
*
1629-
* @param name Name
1630-
* @param namespace Namespace
1631-
* @param body Body
1632-
* @param responseStep Response step for when call completes
1633-
* @return Asynchronous step
1634-
*/
1635-
public Step replaceIngressAsync(
1636-
String name,
1637-
String namespace,
1638-
V1beta1Ingress body,
1639-
ResponseStep<V1beta1Ingress> responseStep) {
1640-
return createRequestAsync(
1641-
responseStep, new RequestParams("replaceIngress", namespace, name, body), REPLACE_INGRESS);
1642-
}
1643-
1644-
/**
1645-
* Delete ingress
1646-
*
1647-
* @param name Name
1648-
* @param namespace Namespace
1649-
* @param deleteOptions Delete options
1650-
* @return Status of deletion
1651-
* @throws ApiException API Exception
1652-
*/
1653-
public V1Status deleteIngress(String name, String namespace, V1DeleteOptions deleteOptions)
1654-
throws ApiException {
1655-
ApiClient client = helper.take();
1656-
try {
1657-
return new ExtensionsV1beta1Api(client)
1658-
.deleteNamespacedIngress(
1659-
name,
1660-
namespace,
1661-
deleteOptions,
1662-
pretty,
1663-
gracePeriodSeconds,
1664-
orphanDependents,
1665-
propagationPolicy);
1666-
} finally {
1667-
helper.recycle(client);
1668-
}
1669-
}
1670-
1671-
private com.squareup.okhttp.Call deleteIngressAsync(
1672-
ApiClient client,
1673-
String name,
1674-
String namespace,
1675-
V1DeleteOptions deleteOptions,
1676-
ApiCallback<V1Status> callback)
1677-
throws ApiException {
1678-
return new ExtensionsV1beta1Api(client)
1679-
.deleteNamespacedIngressAsync(
1680-
name,
1681-
namespace,
1682-
deleteOptions,
1683-
pretty,
1684-
gracePeriodSeconds,
1685-
orphanDependents,
1686-
propagationPolicy,
1687-
callback);
1688-
}
1689-
1690-
private final CallFactory<V1Status> DELETE_INGRESS =
1691-
(requestParams, usage, cont, callback) ->
1692-
wrap(
1693-
deleteIngressAsync(
1694-
usage,
1695-
requestParams.name,
1696-
requestParams.namespace,
1697-
(V1DeleteOptions) requestParams.body,
1698-
callback));
1699-
1700-
/**
1701-
* Asynchronous step for deleting ingress
1702-
*
1703-
* @param name Name
1704-
* @param namespace Namespace
1705-
* @param deleteOptions Delete options
1706-
* @param responseStep Response step for when call completes
1707-
* @return Asynchronous step
1708-
*/
1709-
public Step deleteIngressAsync(
1710-
String name,
1711-
String namespace,
1712-
V1DeleteOptions deleteOptions,
1713-
ResponseStep<V1Status> responseStep) {
1714-
return createRequestAsync(
1715-
responseStep,
1716-
new RequestParams("deleteIngress", namespace, name, deleteOptions),
1717-
DELETE_INGRESS);
1718-
}
1719-
17201493
static AsyncRequestStepFactory setStepFactory(AsyncRequestStepFactory newFactory) {
17211494
AsyncRequestStepFactory oldFactory = STEP_FACTORY;
17221495
STEP_FACTORY = newFactory;

0 commit comments

Comments
 (0)