Skip to content

feat(identifier): identify s2i built application and eap operator-managed pods#2

Merged
aptmac merged 1 commit into
mainfrom
detect-s2i
May 6, 2026
Merged

feat(identifier): identify s2i built application and eap operator-managed pods#2
aptmac merged 1 commit into
mainfrom
detect-s2i

Conversation

@aptmac
Copy link
Copy Markdown
Owner

@aptmac aptmac commented May 6, 2026

Made using Bob 1.0.2

This PR adds new functionality to the identifier, to find:

  • s2i built pods:
    The problem here is that if you use the EAP builder image to deploy your application, then the resulting pod won't always have the proper labels required to monitor. As a POC, we can read the image metadata to find mentions of EAP environment variables, and if present, label our pods. This requires a new rbac permission on images resource. This seems to be working well in the simple case; I've used EAP 8 to deploy a hello-world EAP application and the resulting pod gets labelled with rht.comp=EAP each time.

  • EAP Operator-managed pods:
    If applications are deployed using the EAP operator, then the resulting pod seems to have the labels we need. To be extra safe though, we've added a check on the managed-by: eap-operator label to sniff out pods that are managed by EAP. This way we can track them in-case their rht.comp label gets removed somehow, and lets us add our timestamp label and image & image version labels.

…aged pods

- Use image metadata to identify s2i built applications
- Use 'managed-by: eap-operator' to identify EAP operator managed pods
@aptmac aptmac merged commit 6f938dd into main May 6, 2026
4 checks passed
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