Clusters : port 8006 par défaut, liste des cibles jamais null
This commit is contained in:
1 parent
8dd2f187ee
commit
ee8343c69f
5 files changed
+50
-3
No files matched your search
@@ -97,7 +97,7 @@ type State struct {
|
||||
// clients (empty: all). A cluster that cannot be read is reported in its
|
||||
// Error field, it does not stop the others.
|
||||
func Analyze(ctx context.Context, cfg *config.Config, only []string) *State {
|
||||
st := &State{At: time.Now().UTC(), Kinds: cfg.Kinds, Prune: cfg.Prune, cfg: cfg, actuals: map[string][]model.Object{}}
|
||||
st := &State{At: time.Now().UTC(), Kinds: cfg.Kinds, Prune: cfg.Prune, Clients: []Client{}, cfg: cfg, actuals: map[string][]model.Object{}}
|
||||
var refSnap model.Snapshot
|
||||
st.Reference, refSnap = read(ctx, cfg.Reference, cfg.Kinds, adapter.ReadRunning)
|
||||
st.ref = refSnap.Objects
|
||||
|
||||
Reference in new issue
Block a user