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 using a kubeconfig file that references external program #74

Closed
Emilio-Pega opened this issue Sep 21, 2020 · 0 comments
Closed

Comments

@Emilio-Pega
Copy link
Contributor

Gradle 6

If the plugin is configured to use a kubeconfig file that references an external program (like one used for AWS authentication), it fails, because the PATH environmental variable is not forwarded to the Worker API

Example kubeconfig using the external aws-iam-authenticator program to validate for AWS

apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: <some aws authority>
    server: <some aws server>
  name: <some aws name>
contexts:
- context:
    cluster: <some aws cluster>
    user: <some aws user>
  name: <some aws name>
current-context: <some aws context>
kind: Config
preferences: {}
users:
- name: <some aws user>
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      args:
      - token
      - -i
      - platform-validation-pipeline-cluster-eks
      command: aws-iam-authenticator
      env: null

Error

Error: Kubernetes cluster unreachable: Get <aws cluser>: getting credentials: exec: exec: "aws-iam-authenticator": executable file not found in $PATH
@Emilio-Pega Emilio-Pega changed the title When using a kubeconfig file that references external program Error when using a kubeconfig file that references external program Sep 24, 2020
tkrullmann added a commit that referenced this issue Sep 24, 2020
fixes #74 by passing PATH env var in the worker action
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