0

I get the following error:

"Failed to authorize with API resource references: Failed to authorize with API resource references: PermissionDenied: User 'myServiceAccount@appspot.gserviceaccount.com' is not authorized with reason: (request: ResourceAttributes{Namespace:namespace1,Verb:list,Group:pipelines.kubeflow.org,Version:v1beta1,Resource:experiments,Subresource:,Name:,

Code

def main(data, context):
  client = kfp.Client(host=HOST, client_id=CLIENT_ID,namespace=NAMESPACE)
  logging.info(client.list_experiments(namespace=NAMESPACE))
Jofre
  • 3,718
  • 1
  • 23
  • 31
pablofiumara
  • 1,747
  • 1
  • 16
  • 24
  • Have you gone through the [pipeline authentication](https://www.kubeflow.org/docs/distributions/gke/pipelines/authentication-pipelines/) process? – JMA Sep 30 '21 at 10:00
  • @JMA Thanks for answering. Yes, I have. The problem was that when I set the correct service account, a warning message appeared (see my answer below). That was confusing – pablofiumara Sep 30 '21 at 15:54

1 Answers1

1

Now my GCP function is able to list pipelines.

I had to use the following service account: KF-NAME-user@KF-PROJECT.iam.gserviceaccount.com .

This message appears in the logs but it's just a warning message No such file or directory: '/var/run/secrets/kubernetes.io/serviceaccount/namespace'

pablofiumara
  • 1,747
  • 1
  • 16
  • 24