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 while installing aws-load-balancer-controller CRDs from github url #964

Open
cxreboll opened this issue Jun 21, 2023 · 2 comments · May be fixed by #1172
Open

Error while installing aws-load-balancer-controller CRDs from github url #964

cxreboll opened this issue Jun 21, 2023 · 2 comments · May be fixed by #1172
Labels
bug Something isn't working

Comments

@cxreboll
Copy link

Describe the bug

There is a typo on aws-load-balancer-controller readme instructions. There is an extra slash '/' in the CDR URL which throws an error when executing it with kubectl apply

Instead of this:

kubectl apply -k "github.com/aws/eks-charts/tree/master/stable/aws-load-balancer-controller//crds?ref=master"

Should be this:

kubectl apply -k "github.com/aws/eks-charts/tree/master/stable/aws-load-balancer-controller/crds?ref=master"

Steps to reproduce

kubectl apply -k "github.com/aws/eks-charts/tree/master/stable/aws-load-balancer-controller//crds?ref=master"

Expected outcome
We should see something like the following:

kubectl apply -k "github.com/aws/eks-charts/stable/aws-load-balancer-controller/crds?ref=master"
customresourcedefinition.apiextensions.k8s.io/ingressclassparams.elbv2.k8s.aws created
customresourcedefinition.apiextensions.k8s.io/targetgroupbindings.elbv2.k8s.aws created

Environment

Additional Context:

bash --version
GNU bash, version 5.1.4(1)-release (x86_64-apple-darwin20.2.0)
@cxreboll cxreboll added the bug Something isn't working label Jun 21, 2023
@cxreboll cxreboll changed the title Error while installing CRDs from github url Error while installing aws-load-balancer-controller CRDs from github url Jun 21, 2023
@rabbagliettiandrea
Copy link

Same here, working helmfile.yaml:

repositories:
 - name: eks
   url: https://aws.github.io/eks-charts

releases:
- name: aws-load-balancer-controller
  namespace: kube-system
  chart: eks/aws-load-balancer-controller
  version: 1.5.4
  values:
  - values.yaml
  hooks:
  - events: ["prepare"]
    showlogs: true
    command: "kubectl"
    args:
    - "apply"
    - "-k"
    - "github.com/aws/eks-charts/stable/aws-load-balancer-controller/crds?ref=master"
  - events: ["postuninstall"]
    showlogs: true
    command: "kubectl"
    args:
    - "delete"
    - "-k"
    - "github.com/aws/eks-charts/stable/aws-load-balancer-controller/crds?ref=master"

@ishworgurung
Copy link

replaced:

kubectl apply -k "github.com/aws/eks-charts/stable/aws-load-balancer-controller//crds?ref=master"

with:

kubectl apply -k "github.com/aws/eks-charts/stable/aws-load-balancer-controller/crds?ref=master"

recommend updating the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants