Skip to content

Commit d64da1f

Browse files
authored
Merge pull request #445 from stewart-yu/patch-1
Update ProtoClient.java
2 parents 21302ba + e84d089 commit d64da1f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

util/src/main/java/io/kubernetes/client/ProtoClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public String toString() {
5656

5757
private ApiClient apiClient;
5858
// Magic number for the beginning of proto encoded.
59-
// https://github.com/kubernetes/apimachinery/blob/master/pkg/runtime/serializer/protobuf/protobuf.go#L42
59+
// https://github.com/kubernetes/apimachinery/blob/release-1.13/pkg/runtime/serializer/protobuf/protobuf.go#L44
6060
private static final byte[] MAGIC = new byte[] {0x6b, 0x38, 0x73, 0x00};
6161
private static final String MEDIA_TYPE = "application/vnd.kubernetes.protobuf";
6262

@@ -95,7 +95,7 @@ public void setApiClient(ApiClient apiClient) {
9595
/**
9696
* Get a Kubernetes API object using protocol buffer encoding.
9797
*
98-
* @param builder The appropriate Builder for the object receveived from the request.
98+
* @param builder The appropriate Builder for the object received from the request.
9999
* @param path The URL path to call (e.g. /api/v1/namespaces/default/pods/pod-name)
100100
* @return An ObjectOrStatus which contains the Object requested, or a Status about the request.
101101
*/
@@ -108,7 +108,7 @@ public <T extends Message> ObjectOrStatus<T> get(T.Builder builder, String path)
108108
* List is fluent, semantic sugar method on top of get, which is intended to convey that the
109109
* object is a List of objects rather than a single object
110110
*
111-
* @param builder The appropriate Builder for the object receveived from the request.
111+
* @param builder The appropriate Builder for the object received from the request.
112112
* @param path The URL path to call (e.g. /api/v1/namespaces/default/pods/pod-name)
113113
* @return An ObjectOrStatus which contains the Object requested, or a Status about the request.
114114
*/
@@ -221,7 +221,7 @@ public <T extends Message> ObjectOrStatus<T> delete(
221221
* Generic protocol buffer based HTTP request. Not intended for general consumption, but public
222222
* for advance use cases.
223223
*
224-
* @param builder The appropriate Builder for the object receveived from the request.
224+
* @param builder The appropriate Builder for the object received from the request.
225225
* @param method The HTTP method (e.g. GET) for this request.
226226
* @param path The URL path to call (e.g. /api/v1/namespaces/default/pods/pod-name)
227227
* @param body The body to send with the request (optional)

0 commit comments

Comments
 (0)