Entrypoint namespaces support
Adopted from https:/
Proposal for introducing the namespace specification when using k8s-entrypoint for dependency checking.
General information:
k8s-entrypoint GitHub repo:
https:/
OpenStack Helm uses built image:
docker.
https:/
kubernetes-
https:/
New kubernetes-
openstack:
It is backwards compatible with the previously used string without namespaces, which is the current behavior that means checking the pod in current namespace.
OpenStack Helm considerations:
The string is passed from resource definitions, i.e.:
https:/
{{- $dependencies := .Values.
initContainers:
{{ tuple $envAll $dependencies $mounts_
The values.yaml is currently looking like this:
https:/
dependencies:
server:
jobs:
- neutron-db-sync
- neutron-ks-user
- neutron-
services: --
- service: oslo_db
endpoint: internal
- service: oslo_messaging
endpoint: internal
- service: oslo_cache
endpoint: internal
- service: identity
endpoint: internal
The above YAML file need to be designed to include the namespace where the jobs/daemonset runs.
dependencies:
server:
jobs:
- job: neutron-db-sync
namespace: openstack
- job: neutron-ks-user
namespace: openstack
- job: neutron-
namespace: openstack
services:
- service: oslo_db
endpoint: internal
namespace: openstack
- service: oslo_messaging
endpoint: internal
namespace: openstack
daemonsets:
- daemonset: ovs-agent
namespace: openstack
For the services, this information is already available in the `endpoints` section in the values.yaml. Because this will also be required to get the fqdn - we can then make a simple extension in the helm toolkit to get this and pass it on.
The `namespace` key in `dependencies` structure can also be empty (just like in the `endpoints` section), which will default to the current namespace.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Grzegorz Grasza
- Direction:
- Needs approval
- Assignee:
- Grzegorz Grasza
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Change entrypoint version
Addressed by: https:/
WIP: Support services in different namespaces
Addressed by: https:/
WIP: Add jobs and daemonsets namespace support
Addressed by: https:/
Add documentation about endpoint/service namespaces