AppManager: Implement ingress monitoring
Change-Id: I156236c3f062a616cfd5de9821aeccbf686e0c22
diff --git a/core/installer/status/helm.go b/core/installer/status/helm.go
index 8b4162c..dc5b3ba 100644
--- a/core/installer/status/helm.go
+++ b/core/installer/status/helm.go
@@ -14,12 +14,8 @@
)
type HelmRelease struct {
- Metadata struct {
- Name string `json:"name"`
- Namespace string `json:"namespace"`
- Annotations map[string]string `json:"annotations"`
- } `json:"metadata"`
- Status struct {
+ Metadata Metadata `json:"metadata"`
+ Status struct {
Conditions []struct {
Type string `json:"type"`
Status string `json:"status"`
@@ -32,7 +28,6 @@
}
func (m *helmReleaseMonitor) Get(ref ResourceRef) (Status, error) {
- fmt.Printf("--- %+v\n", ref)
ctx := context.Background()
res, err := m.d.Resource(
schema.GroupVersionResource{
@@ -57,7 +52,8 @@
}
id, ok := hr.Metadata.Annotations["dodo.cloud/id"]
if !ok {
- return StatusNoStatus, fmt.Errorf("missing annotation: dodo.cloud/id")
+ fmt.Printf("## missing dodo.cloud/id: %+v\n", ref)
+ return StatusNoStatus, nil
}
if id != ref.Id {
return StatusNotFound, nil