Skip to content

Conversation

andreaskaris
Copy link
Contributor

@andreaskaris andreaskaris commented Oct 9, 2025

This PR is just to run CI and to keep API review changes and actual code in sync

API review is here: openshift/api#2521

Conventions: https://github.com/openshift/enhancements/blob/master/dev-guide/api-conventions.md

Implements status conditions and component status tracking for the
Config custom resource to provide visibility into the reconciliation
state of managed components (ConfigMap, DaemonSets, CSIDriver, SCC).

- Add ConfigComponentStatuses type with status for each component
- Implement Progressing and Available conditions following Kubernetes
  conventions
- Add event recording for status changes
- Update controller with status subresource RBAC permissions
- Add test coverage for all status states
- Integrate status checks into lifecycle tests

The status system tracks individual component readiness and sets
overall conditions to indicate when the Config is progressing or
fully available.

Signed-off-by: Andreas Karis <[email protected]>
Update ConfigSpec and AgentSpec field documentation to follow
OpenShift API conventions (lowercase first letter). Remove redundant
kubebuilder validation tags and make HealthProbePort optional with
a default value of 8175 applied via the controller instead of via the
API.

Signed-off-by: Andreas Karis <[email protected]>
Add checkResourcesInDesiredState function to verify that the default
health probe port (8175) is correctly applied to bpfman and metrics
proxy DaemonSets when not explicitly set in the Config spec.

This test ensures the default value handling introduced in the API
standards compliance changes works correctly at runtime.

Signed-off-by: Andreas Karis <[email protected]>
Signed-off-by: Andreas Karis <[email protected]>
Method GetClientObject is not used and removing it removes
the dependency on sigs.k8s.io/controller-runtime/pkg/client

Signed-off-by: Andreas Karis <[email protected]>
@andreaskaris andreaskaris changed the title WIP: Branch for testing s WIP: Branch for testing API review Oct 9, 2025
@andreaskaris andreaskaris marked this pull request as draft October 9, 2025 16:09
@andreaskaris andreaskaris force-pushed the conditions-api-changes branch 4 times, most recently from fe835c1 to d791fa3 Compare October 10, 2025 19:45
@andreaskaris andreaskaris force-pushed the conditions-api-changes branch from d791fa3 to 99eab34 Compare October 10, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant