Skip to content

Commit

Permalink
Added about how to change ApiVersion while creating resource in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
piyush-garg committed Jan 11, 2018
1 parent 2536d4f commit c225fbd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,19 @@ Service myservice = client.services().inNamespace("default").createNew()
.done();
```

You can also set the apiVersion of the resource like in the case of SecurityContextConstraints :

```java
SecuirtyContextConstraints scc = new SecurityContextConstraintsBuilder()
.withApiVersion("v1")
.withNewMetadata().withName("scc").endMetadata()
.withAllowPrivilegedContainer(true)
.withNewRunAsUser()
.withType("RunAsAny")
.endRunAsUser()
.build();
```

### Following events

Use `io.fabric8.kubernetes.api.model.Event` as T for Watcher:
Expand Down

0 comments on commit c225fbd

Please sign in to comment.