Support specify openstack project by k8s annotation

Registered by yangjianfeng

Now, Kuryr-kubernetes just support DefaultxxxProjectDriver. The project_id of resource which was created by kuryr-kurbernetes was configured in config file, it's means that all of resources have same project_id, these will cause some troubles to the metering and billing rules in multiple tenant environment.

So, I propose that we implement a AnnotationxxxProjectDriver, the driver can get project_id from k8s resource's annotation. Moreover, if the k8s resouce has no project annotation, the project_id will inherit the resource's namespace; if the namespace has no project annotation yet, the driver get the project_id from the config file.

In this way, the user can assocate a k8s namespace to a openstack project.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
yangjianfeng
Direction:
Needs approval
Assignee:
yangjianfeng
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.