Skip to content

Remove kolla initialization and reduce SCC from anyuid to nonroot-v2 - #530

Open
dciabrin wants to merge 1 commit into
openstack-k8s-operators:mainfrom
dciabrin:no-kolla
Open

Remove kolla initialization and reduce SCC from anyuid to nonroot-v2#530
dciabrin wants to merge 1 commit into
openstack-k8s-operators:mainfrom
dciabrin:no-kolla

Conversation

@dciabrin

Copy link
Copy Markdown
Contributor

Galera pods rely on kolla to initialize: an init container copies config files and generates configs via kolla_set_configs, and a main container uses kolla_start to copy generated configs, set directory permissions, and launch the entrypoint. This requires root privileges and the anyuid SCC.

In order to stop requiring special permissions, we no longer rely on Kolla and initialize pods as follows:

  • The generated config is now an EmptyDir populated by the init container and access by the main container.

  • Use FSGroup and RunAsUser/RunAsGroup SecurityContext for volume ownership so we no longer need sudo/chown to set up permissions.

  • Reference TLS certs and operator scripts at their direct mount paths

  • Add a var-local EmptyDir for password caching previously handled by kolla permission-setting.

  • Remove remaining references to Kolla, which are no longer needed.

Galera pods rely on kolla to initialize: an init container
copies config files and generates configs via kolla_set_configs,
and a main container uses kolla_start to copy generated configs,
set directory permissions, and launch the entrypoint. This requires
root privileges and the anyuid SCC.

In order to stop requiring special permissions, we no longer rely on
Kolla and initialize pods as follows:

- The generated config is now an EmptyDir populated by the init
  container and access by the main container.

- Use FSGroup and RunAsUser/RunAsGroup SecurityContext for volume ownership
so we no longer need sudo/chown to set up permissions.

- Reference TLS certs and operator scripts at their direct mount paths

- Add a var-local EmptyDir for password caching previously handled by kolla
permission-setting.

- Remove remaining references to Kolla, which are no longer needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@openshift-ci
openshift-ci Bot requested review from abays and stuggi July 31, 2026 15:03
@openshift-ci

openshift-ci Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dciabrin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant