Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Correctly generate patch for nested object #8

Closed
tamalsaha opened this issue Sep 11, 2018 · 1 comment
Closed

Correctly generate patch for nested object #8

tamalsaha opened this issue Sep 11, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tamalsaha
Copy link

tamalsaha commented Sep 11, 2018

https://tools.ietf.org/html/rfc6902#page-15

{
  "apiVersion": "kubedb.com/v1alpha1",
  "kind": "Elasticsearch",
  "metadata": {
    "name": "quick-elasticsearch",
    "namespace": "demo"
  },
  "spec": {
    "doNotPause": true,
    "version": "5.6"
  }
}

{
  "apiVersion": "kubedb.com/v1alpha1",
  "kind": "Elasticsearch",
  "metadata": {
    "name": "quick-elasticsearch",
    "namespace": "demo"
  },
  "spec": {
    "doNotPause": true,
    "version": "5.6",
    "updateStrategy": {
      "type": "RollingUpdate"
    }
  }
}

[
   {
      "op": "add",
      "path": "/spec/storageType",
      "value": "Durable"
   },
   {
      "op": "add",
      "path": "/spec/updateStrategy",
      "value": { "type": "RollingUpdate" }
   },
   {
      "op": "add",
      "path": "/spec/terminationPolicy",
      "value": "Pause"
   }
]
@tamalsaha tamalsaha self-assigned this Sep 11, 2018
@tamalsaha tamalsaha added the bug Something isn't working label Sep 11, 2018
@tamalsaha
Copy link
Author

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant