-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource usage from workloads #115
Comments
This could also help with #149. We could automatically modify security groups, authorized networks, and such when we know that a workload is "using"/"consuming" a given resource. |
I don't think we will be able to address this in v0.1, but I think this is an important part of the experience nonetheless, moving to v0.2 |
We already have support for declaring weakly typed usage of resources from workloads. This issue still captures whether we want to add strongly typed support, e.g.
|
Strongly typed resources looks like an interesting approach. However, it could be limiting when comes to trying to consume 3rd part (out of tree) resources inside the Workload. I suspect we will need to support both. |
I don't believe this is relevant (at least in this specific context) with the direction we're going. We don't intend for Crossplane to manage workloads. |
We need to capture the concept of "using" a given resource like
MySqlInstance
orBucket
from aWorkload
or other kinds. We've discussed two approach for this usage, one that is weakly typed for example:where the the
Workload
has a list of references to resources that it "uses". This would help with the generation of secrets and other connection information, and also with future topology/region aware placement of the workload and its resources.Another approach is to make the usage strongly typed, and similar to how
volumes:
in a PodSpec works. For example,The former approach enables extensibility by 3rd parties without needing to modify the workload spec. The latter providers a better user experience and enables us to set properties for "usage". One approach is to go with the strongly typed approach and work with APIMachinery SIG to enable strongly typed extensibility model.
This is related to #90.
The text was updated successfully, but these errors were encountered: