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: could not find any knative type in namespace default, last error was: the server could not find the requested resource #3430

Closed
bjethwan opened this issue Jul 10, 2022 · 2 comments
Labels
status/duplicate This issue or pull request already exists

Comments

@bjethwan
Copy link

bjethwan commented Jul 10, 2022

Why is timer to aws-s3 kamelet based routing looking for knative?

I installed camel-k operator, and I see that "aws-s3-streaming-upload-sink" is ready.

% k get kamelet | grep s3
aws-s3-sink                            Ready
aws-s3-source                          Ready
aws-s3-streaming-upload-sink           Ready

When I created a kamelet binding, although the route/integration works fine and files are written in my S3 bucket but I get errors in camel-k operator

apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
  name: aws-s3-streaming-upload-sink-binding
spec:
  source:
    ref:
      kind: Kamelet
      apiVersion: camel.apache.org/v1alpha1
      name: timer-source
    properties:
      message: hello world
  sink:
    ref:
      kind: Kamelet
      apiVersion: camel.apache.org/v1alpha1
      name: aws-s3-streaming-upload-sink
    properties:
      bucketNameOrArn: arn:aws:s3:::kameletdemo
      keyName: timer-source
      region: ap-south-1
      accessKey: <<>>
      secretKey: <<>>
      batchMessageNumber: 5

I got error in camel-k operator logs

{"level":"info","ts":1657477260.4902384,"logger":"camel-k","msg":"could not find any knative type in namespace default, last error was: the server could not find the requested resource"}
{"level":"info","ts":1657477265.491685,"logger":"camel-k.controller.kameletbinding","msg":"Reconciling KameletBinding","request-namespace":"default","request-name":"aws-s3-streaming-upload-sink-binding"}
{"level":"info","ts":1657477265.4919102,"logger":"camel-k.controller.kameletbinding","msg":"Invoking action monitor","request-namespace":"default","request-name":"aws-s3-streaming-upload-sink-binding","api-version":"camel.apache.org/v1alpha1","kind":"KameletBinding","ns":"default","name":"aws-s3-streaming-upload-sink-binding"}

I am not using knative as source or target in above kamelet binding. Then why it doesn't work?

@squakez
Copy link
Contributor

squakez commented Jul 11, 2022

Same as #2397

@squakez squakez added the status/duplicate This issue or pull request already exists label Jul 13, 2022
@squakez
Copy link
Contributor

squakez commented Sep 6, 2022

Removing as duplicated.

@squakez squakez closed this as completed Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants