After #156, changes in cos_agent done to support both pydantic versions fail with
File "/home/ubuntu/grafana-agent-operator/lib/charms/grafana_agent/v0/cos_agent.py", line 333, in <module>
if int(pydantic.version.VERSION.split(".")[0]) < 2: # type: ignore
AttributeError: module 'pydantic.v1' has no attribute 'version'
Solution
Remove objects catering for both pydantic versions and keep just the models for pydantic v1.
Issue
After #156, changes in cos_agent done to support both pydantic versions fail with
Solution
Remove objects catering for both pydantic versions and keep just the models for pydantic v1.
Context
Testing Instructions
Upgrade Notes