Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when used with istio #2175

Open
travisghansen opened this issue Nov 7, 2024 · 0 comments
Open

error when used with istio #2175

travisghansen opened this issue Nov 7, 2024 · 0 comments

Comments

@travisghansen
Copy link

travisghansen commented Nov 7, 2024

Operator spews the following logs:

2024-11-07T18:43:37.114Z    ERROR    controllers.Infinispan    Unable to retrive logs for i pod keycloak-infinispan-dev-na01-workload-01-0    {"infinispan": "keycloak/keycloak-infinispan-dev-na01-workload-01", "error": "a container name must be specified for pod keycloak-infinispan-dev-na01-workload-01-0, choose one of: [istio-init infin
ispan istio-proxy]"}                                                                                                                                                                                                                                                                                                                               
github.com/infinispan/infinispan-operator/pkg/reconcile/pipeline/infinispan.HandlerFunc.Handle                                                                                                                                                                                                                                                     
    /workspace/pkg/reconcile/pipeline/infinispan/api.go:40                                                                                                                                                                                                                                                                                         
github.com/infinispan/infinispan-operator/pkg/reconcile/pipeline/infinispan/pipeline.invokeHandler                                                                                                                                                                                                                                                 
    /workspace/pkg/reconcile/pipeline/infinispan/pipeline/pipeline.go:60                                                                                                                                                                                                                                                                           
github.com/infinispan/infinispan-operator/pkg/reconcile/pipeline/infinispan/pipeline.(*impl).Process                                                                                                                                                                                                                                               
    /workspace/pkg/reconcile/pipeline/infinispan/pipeline/pipeline.go:42                                                                                                                                                                                                                                                                           
github.com/infinispan/infinispan-operator/controllers.(*InfinispanReconciler).Reconcile                                                                                                                                                                                                                                                            
    /workspace/controllers/infinispan.go:238                                                                                                                                                                                                                                                                                                       
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile                                                                                                                                                                                                                                                                     
    /opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:121                                                                                                                                                                                                                                  
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler                                                                                                                                                                                                                                                              
    /opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:320                                                                                                                                                                                                                                  
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem                                                                                                                                                                                                                                                           
    /opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:273                                                                                                                                                                                                                                  
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2                                                                                                                                                                                                                                                                 
    /opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:234       

Istio automatically injects extra containers into the spec so I presume the code needs to be updated to explicitly call out for which container the logs are desired.

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

No branches or pull requests

1 participant