Comments (5)
I'm thinking we'd use the datamodel-code-generator, probably as part of the CI of the relation interfaces repo itself, and that users then would be able to download the pydantic model straight from github and use it in their projects.
from traefik-k8s-operator.
I don't disagree here, but we should be cautious merging, as it will essentially be a breaking change due to changing the external requirements of the lib :) I'm interested to see the diff in the code though.
from traefik-k8s-operator.
I don't disagree here, but we should be cautious merging, as it will essentially be a breaking change due to changing the external requirements of the lib :) I'm interested to see the diff in the code though.
Agreed. Given that @PietroPasotti is working on v1 of the libs (#63), which essentially will be incompatible regardless, it feels like it could be a good time to do both these changes at the same time to not have break the compatibility twice. :)
from traefik-k8s-operator.
I like the idea! I was thinking to combine this with #38
And also in reference to canonical/charm-relation-interfaces#7 I'm thinking this would definitely settle the yaml/json score (pydantic has builtin json converters I believe) So dumping data is as easy as model.json()
.
I'm thinking about the last line you added; what do you reckon would the user story look like?
- I want to implement an ingress Requirer.
- I go to charm-relation-interfaces, grab the jsonschema spec
- run the spec through our lib-provided tool
jsonschema_to_pydantic /path/to/jsonschema/file.json
, copy the result into the new requirer file. - Profit?
from traefik-k8s-operator.
from traefik-k8s-operator.
Related Issues (20)
- chore: update libraries to new major versions
- [traefik-route] middleware in router tls is removed HOT 9
- show-proxied-endpoints is bork on ingress v2
- Traefik unable to push certificate HOT 4
- Config option tls-ca is always required, even when tls-cert is signed by a trusted 3rd party CA
- [traefik-route] There's no "route departed/broken" for TraefikRouteRequirer HOT 1
- Traefik's server_cert_sans_dns has unexpected contents HOT 1
- Traefik generates TLS config only for the first defined HTTP router
- Unable to use Load Balancer's IP address for the ingress gateway HOT 7
- Traefik is stuck executing after the setup of some ingress relation failed HOT 1
- warn on `proxied_endpoints` in the separate ingress providers
- Allow traefik to use ACME http challenge for letsencrypt certificates
- changing ipaddress pool needs a good way to propagate into traefik service HOT 3
- Traefik blocks when get svc only returns hostname, not ip address HOT 2
- `traefik_route_k8s` lib should be owned by traefik-k8s-operator
- cert expiration monitoring HOT 3
- pydantic deprecation warnings HOT 3
- issue with TLS and tracing HOT 1
- add an action to export the server cert and ca cert HOT 2
- error on `start` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from traefik-k8s-operator.