Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-github committed Jun 4, 2020
1 parent f453253 commit 52d8c87
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions README.md
Expand Up @@ -50,3 +50,61 @@ metadata:
spec:
podName: REPLACEME_PODNAME
```

## TODO

- [x] rename "diagnosticreport" to "report", octetcloud to appsody.dev
- feature: report
- [x] send signal
- [x] check label for support (label searchable)
- [x] appsody stack with report integration
- [ ] check annotation for signal name?
- [ ] when report is deleted, there is a log msg about being reconciled, but
nothing saying why nothing is happening
- [ ] conditions history?
- try? https://github.com/redhat-cop/operator-utils
- [ ] kAppNav integration
- [ ] appsody stack: PR?
XXX does it report on handled promises? when exit code is not 0?
- [ ] tests?
- https://github.com/operator-framework/operator-sdk/blob/master/doc/test-framework/writing-e2e-tests.md

- [ ] https://github.ibm.com/runtimes/squad-node/wiki/Playbacks

- [ ] add lint, etc, to operator from shorty

- recreate with kubebuilder?
- https://github.com/kubernetes-sigs/kubebuilder
- better than op-sdk? should try, looks promising
- http://banjiewen.net/operator-sdk.html: use kubebuilder...
> etcd-operator and prometheus-operator are implemented with basic client-go
> based controllers. No Operator SDK, no Kubebuilder, etc.
- feature: suport label of `*`
- [ ] ...
- build a queue of work, and a goroutine to do the work, fetch crd at
beginning of each work to make sure its still current, somehow mark status
per target. deside how parallel to make the signalling... or don't care?
- https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#-strong-read-operations-pod-v1-core-strong-
- Query:
// Find all reportable pods
list := &corev1.PodList{}
// opts := client.MatchingLabels{"nodejs.appsody.dev/reportable": "true"}
opts := client.MatchingLabels{"run": "ex"}
err = mgr.GetAPIReader().List(context.TODO(), list, opts)
if err != nil {
log.Error(err, "get reportable")
return nil
}
for _, pod := range list.Items {
log.Info("reportable", "pod", pod)
}
panic("x")

- feature: debug port (has a state, so fits into kube better)

- feature: dump heap profile/cpu profile?

- feature: `kubectl nodejs-report` should be possible with an AA
- Aggregated API Servers (AA)
- https://medium.com/@cloudark/kubernetes-operators-when-how-and-the-gotchas-to-keep-in-mind-b13be9830346

0 comments on commit 52d8c87

Please sign in to comment.