Skip to content

Commit

Permalink
Merge pull request #4 from yue9944882/fix-doc-example
Browse files Browse the repository at this point in the history
fix(doc): enchance doc example
  • Loading branch information
yue9944882 authored Jan 8, 2018
2 parents e5b3df3 + 7429da5 commit dd6c602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ With KCL, you can operate kubernetes resources like this example:
import kubernetes "github.com/yue9944882/kubernetes-client-lambda"

// In-Cluster example
kubernetes.ReplicaSet.InCluster().InNamespace("test").NameEqual("foo-").Map(func(rs *api_ext_v1.ReplicaSet) rs*api_ext_v1.ReplicaSet {
kubernetes.ReplicaSet.InCluster().InNamespace("test").NamePrefix("foo-").Map(func(rs *api_ext_v1.ReplicaSet) rs*api_ext_v1.ReplicaSet {
// Edit in-place or clone a new one
rs.Meta.Labels["foo-label1"] = "test"
return rs
Expand Down

0 comments on commit dd6c602

Please sign in to comment.