Categorygithub.com/tamalsaha/resource-watcher-demo
repositorypackage
0.0.0-20220131033212-6dacf26d13e5
Repository: https://github.com/tamalsaha/resource-watcher-demo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# 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
      }
    }
  }
}