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

hack/generate-deploy-scripts.sh fails due to pathing issues #8828

Closed
Volatus opened this issue Jul 17, 2022 · 6 comments · Fixed by #8859
Closed

hack/generate-deploy-scripts.sh fails due to pathing issues #8828

Volatus opened this issue Jul 17, 2022 · 6 comments · Fixed by #8859
Assignees
Labels
area/stabilization Work for increasing stabilization of the ingress-nginx codebase kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@Volatus
Copy link
Contributor

Volatus commented Jul 17, 2022

This issue concerns development.

What happened:
Running hack/generate-deploy-scripts.sh fails with the following error.

❄️  ./hack/generate-deploy-scripts.sh
Running 1.20 for target provider/exoscale
/Users/xs/Developer/ingress-nginx/deploy/static/provider/exoscale/1.20
sed: can't read /app.kubernetes.io\/managed-by: Helm/d: No such file or directory
sed: can't read /helm.sh/d: No such file or directory
Running 1.20 for target provider/do
/Users/xs/Developer/ingress-nginx/deploy/static/provider/do/1.20
sed: can't read /app.kubernetes.io\/managed-by: Helm/d: No such file or directory
sed: can't read /helm.sh/d: No such file or directory
Running 1.20 for target provider/baremetal
/Users/xs/Developer/ingress-nginx/deploy/static/provider/baremetal/1.20
sed: can't read /app.kubernetes.io\/managed-by: Helm/d: No such file or directory
sed: can't read /helm.sh/d: No such file or directory
Running 1.20 for target provider/kind
/Users/xs/Developer/ingress-nginx/deploy/static/provider/kind/1.20
sed: can't read /app.kubernetes.io\/managed-by: Helm/d: No such file or directory
sed: can't read /helm.sh/d: No such file or directory
Running 1.20 for target provider/cloud
/Users/xs/Developer/ingress-nginx/deploy/static/provider/cloud/1.20
sed: can't read /app.kubernetes.io\/managed-by: Helm/d: No such file or directory
sed: can't read /helm.sh/d: No such file or directory
Running 1.20 for target provider/aws/nlb-with-tls-termination
/Users/xs/Developer/ingress-nginx/deploy/static/provider/aws/nlb-with-tls-termination/1.20
sed: can't read /app.kubernetes.io\/managed-by: Helm/d: No such file or directory
sed: can't read /helm.sh/d: No such file or directory
Running 1.20 for target provider/aws
/Users/xs/Developer/ingress-nginx/deploy/static/provider/aws/1.20
sed: can't read /app.kubernetes.io\/managed-by: Helm/d: No such file or directory
sed: can't read /helm.sh/d: No such file or directory
Running 1.20 for target provider/scw
/Users/xs/Developer/ingress-nginx/deploy/static/provider/scw/1.20
sed: can't read /app.kubernetes.io\/managed-by: Helm/d: No such file or directory
sed: can't read /helm.sh/d: No such file or directory

--- REDACTED

What you expected to happen:
To not error out?

The scripts seem to be reading some wrong paths?

How to reproduce this issue:
Run the script?

@Volatus Volatus added the kind/bug Categorizes issue or PR as related to a bug. label Jul 17, 2022
@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority labels Jul 17, 2022
@Volatus
Copy link
Contributor Author

Volatus commented Jul 17, 2022

@longwuyuan related to #8824?

@longwuyuan
Copy link
Contributor

longwuyuan commented Jul 18, 2022 via email

@tao12345666333
Copy link
Member

Hi @Volatus I would like to know what is your OS?

The problem is essentially due to the fact that the sed used under Linux is GNU sed
And sed used under macOS is BSD sed.

The parameters and behavior of the two are not exactly the same.

sed -i '' '/app.kubernetes.io\/managed-by: Helm/d' $MANIFEST
sed -i '' '/helm.sh/d' $MANIFEST

when we using GUN sed, we don't need -i '' , you can just delete this parameter to check if it works.

Also, if you are interested, please submit a PR to fix it

@Volatus
Copy link
Contributor Author

Volatus commented Jul 18, 2022

@tao12345666333 Well I have GNU sed earlier in my $PATH. which sed also points to my installation of GNU sed among the Brew packages. I'll triple check though.

@strongjz
Copy link
Member

this may be something we have to check for with the MACOS test or just move the python script to run in a docker container as well.

@strongjz
Copy link
Member

/triage accepted
/priority backlog
/area stabilization
/assign @strongjz

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. priority/backlog Higher priority than priority/awaiting-more-evidence. area/stabilization Work for increasing stabilization of the ingress-nginx codebase and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority labels Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/stabilization Work for increasing stabilization of the ingress-nginx codebase kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants