You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Collect ArgoCD entities for applications, cluster and repos (DataDog#23917)
* test argocd submission
* add unique identifier
* better unique identifier
* allow list approach
* validations
* argocd to submit entity metadata
* Update 23917.added
* remove public plication
* Update metadata.csv
* use a different separator
* pin dcb
* remove review files
* fix naming
* clean up
* more knobs
* nits
* Read genresources config from pydantic and clean up reviewer findings
- Defer ArgocdResourceCollector construction to the first check() call so
it observes the populated pydantic config (self.config) instead of the
raw instance dict; drops the hardcoded TTL / interval / cap literals
that were duplicating the spec defaults.
- Read collect_genresources from self.config.
- Swap the volume-cap log args to read type/fetched/cap in order and use
log.exception for the fetch-failure path so tracebacks survive.
- Spec wording: ArgoCD (one word) and allowlist / allowlisted per the
style guide.
- Tests: add a _check() helper that loads the config models and attaches
the collector, add coverage for the missing-endpoint path and for
credential scrubbing on cluster.connectionState.message, tighten the
volume-cap assertion against the new message format, and mark the file
as pytest.mark.unit.
* Update argocd/datadog_checks/argocd/resources.py
Co-authored-by: Kyle Neale <kyle.neale@datadoghq.com>
* Update argocd/datadog_checks/argocd/resources.py
Co-authored-by: Kyle Neale <kyle.neale@datadoghq.com>
* Update argocd/datadog_checks/argocd/resources.py
Co-authored-by: Kyle Neale <kyle.neale@datadoghq.com>
* Update argocd/datadog_checks/argocd/resources.py
Co-authored-by: Kyle Neale <kyle.neale@datadoghq.com>
---------
Co-authored-by: Kyle-Neale <kyle.neale@datadoghq.com>
0 commit comments