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

refact(gateway-operator): Fix inconsistent image settings #36

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

davidkornel
Copy link
Member

@davidkornel davidkornel commented Oct 1, 2024

This PR aims to fix and improve the proposed issues in PR #31. The publish workflows had to be changed accordingly. The sed commands are now more precise to prevent accidental overwrites in case there are keys with the same indentation depth.

I was worried this might be a breaking change; however, I don't see anything that would cause trouble with these changes.

Please check @levaitamas @rg0now

…lows

Changes reflect the changes in values.yaml file's structure. `sed` commands are now more precise.
@davidkornel davidkornel self-assigned this Oct 1, 2024
@davidkornel davidkornel changed the title refact(gateway-operator): Refactor and fix inconsistent image settings fix(gateway-operator): Fix inconsistent image settings Oct 1, 2024
Copy link
Member

@levaitamas levaitamas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks a lot! The CI/CD pipeline looks so much better without the whitespaces.

One minor comment: this might be not a fix, rather a feat or a refactor (src). Anyway, thanks again for doing this PR!

sed -ri 's|^(\s*)( image: docker.io/l7mp/stunnerd:\s*.*\s*$)| image: docker.io/l7mp/stunnerd:dev|' stunner-gateway-operator/values.yaml
sed -ri 's|^(\s*)( tag\s*:\s*.*\s*$)| tag: dev|' stunner-gateway-operator/values.yaml
sed -i '/stunnerGatewayOperator:/,/pullPolicy:/ s/\(pullPolicy:\s*\).*/\1Always/' stunner-gateway-operator/values.yaml
sed -i '/dataplane:/,/pullPolicy:/ s/\(pullPolicy:\s*\).*/\1Always/' stunner-gateway-operator/values.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This was missing from bdaf732

@davidkornel davidkornel changed the title fix(gateway-operator): Fix inconsistent image settings refact(gateway-operator): Fix inconsistent image settings Oct 2, 2024
@davidkornel davidkornel merged commit 6a531cc into main Oct 2, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants