Skip to content

Commit 89f9aa9

Browse files
committed
review: fixes wording
1 parent e104272 commit 89f9aa9

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docs/kubectl-equivalence-in-java.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#Kubectl Equivalence in Java
22

3-
__TL;DR__: Get used to kubectl? Now our kubernetes Java client library has releases a set of
3+
__TL;DR__: Used to kubectl? Now our kubernetes Java client library has released a set of
44
helpful client utilities which has the similar input argument interface as the kubectl binary.
55
Especially the developers who're already familiar with kubectl commands, after reading this
6-
document, you will know how to program to operate kubernetes as neat as kubectl.
6+
document, you will know how to build programs that interact with Kubernetes as easily as kubectl.
77

88

99
### What is Java Kubectl
@@ -26,20 +26,22 @@ your project.
2626

2727
#### (Optional) Setting a Global Client-Config
2828

29-
Kubectl static helpers doesn't know its client-config (or kubeconfig if the name makes more sense to
29+
Kubectl static helpers don't know its client-config (or kubeconfig if the name makes more sense to
3030
you) unless you set it when your application starts. You can either specifies the client-config upon
3131
invoking kubectl helpers or simply set a global config at the start of your application:
3232

3333
```java
3434
Configuration.setDefaultApiClient(ClientBuilder.defaultClient());
3535
```
3636

37+
This will create a client on either a client, or a container in Kubernetes.
38+
3739
### Manifest of Supported Commands
3840

3941

4042
#### Kubectl get
4143

42-
You can either query single resource or list multiple resources using the `Kubectl#get` helper depending
44+
You can either query a single resource or list multiple resources using the `Kubectl#get` helper depending
4345
on whether you're passing `name()` in the flow. Here is a few illustrative examples for querying pod
4446
resources:
4547

@@ -61,7 +63,7 @@ List<V1Pod> pods = Kubectl.get(V1Pod.class)
6163
#### Kubectl create
6264

6365
Currently the `Kubectl#create` helper only accepts a desired instance of resource object, you need to do the
64-
deserialization from the source or manually craft an instance of the resource.
66+
deserialization of a resource object or manually craft an instance of the resource.
6567

6668
```java
6769
// kubectl create -f <file>
@@ -97,8 +99,8 @@ V1Pod patchedPod = Kubectl.patch(V1Pod.class)
9799

98100
#### Kubectl apply
99101

100-
Note that for now only server-side apply supported, so your apiserver version is required to
101-
be greater than 1.18.0. `Kubectl#apply` works the same as `kubectl apply --server-side=true`.
102+
Note that for now only server-side apply is supported, so your apiserver version is required to
103+
be greater than or equal to 1.18.0. `Kubectl#apply` works the same as `kubectl apply --server-side=true`.
102104

103105
```java
104106
// kubectl apply --server-side=true --field-manager=java-kubectl --force-conflict=true -f <file>

0 commit comments

Comments
 (0)