resource-watcher-demo

command module
v0.0.0-...-6dacf26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2022 License: AGPL-3.0 Imports: 28 Imported by: 0

README

resource-watcher-demo

query Find($srcKey: String!, $dstGroup: String, $dstKind: String){
  find(key: $srcKey) {
    offshoot(group:$dstGroup, kind:$dstKind) {
      namespace
      name
    }
  }
}

{
  "srcKey":  "G=apps,K=Deployment,NS=kube-system,N=coredns",
  "dstGroup": "",
  "dstKind": "Pod"
}
query Find($src: String!){
  find(oid: $src) {
    refs: offshoot(group:"", kind:"Pod") {
      namespace
      name
    }
  }
}

# variables
{
  "src":  "G=apps,K=Deployment,NS=kube-system,N=coredns",
  "dstGroup": "",
  "dstKind": "Pod"
}


# result
{
  "data": {
    "find": {
      "refs": [
        {
          "name": "coredns-64897985d-4s8fh",
          "namespace": "kube-system"
        },
        {
          "name": "coredns-64897985d-rpjmr",
          "namespace": "kube-system"
        }
      ]
    }
  }
}
query Find($src: String!) {
  find(oid: $src) {
    backup_via(group: "stash.appscode.com", kind: "BackupConfiguration") {
      refs: offshoot(group: "", kind: "Pod") {
        namespace
        name
      }
    }
  }
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL