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

Move sed a few lines higher #532

Merged
merged 3 commits into from Sep 3, 2020
Merged

Conversation

brian-avery
Copy link
Contributor

@brian-avery brian-avery commented Sep 3, 2020

Closed the previous PR without addressing the request to move the sed. This PR accomplishes that.

# workaround for https://github.com/kubernetes-sigs/controller-tools/issues/457
#sed -i -e "s/\( *\)\(description\: The IP protocol for this port\)/\1default: TCP\n\1\2/" \
# deploy/crds/maistra.io_servicemeshcontrolplanes.yaml
sed -i -e '/x-kubernetes-list-map-keys:/,/x-kubernetes-list-type: map/ { /- protocol/d }' deploy/crds/*
Copy link
Contributor

Choose a reason for hiding this comment

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

I really think this should be constrained to just the SMCP crd.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. I can constrain this one to just the SMCP crd. Are you ok with the next one on all CRDs? All of them are currently broken.

#sed -i -e "s/\( *\)\(description\: The IP protocol for this port\)/\1default: TCP\n\1\2/" \
# deploy/crds/maistra.io_servicemeshcontrolplanes.yaml
sed -i -e '/x-kubernetes-list-map-keys:/,/x-kubernetes-list-type: map/ { /- protocol/d }' deploy/crds/*
sed -i -e '/---/d' deploy/crds/*
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a comment about why we're doing this. It's not obvious, because it shouldn't be a problem applying the resource and there's nothing to tie it back to problems with OLM metadata builds.

@brian-avery brian-avery changed the title CR comments Address previous CR comments by moving sed a few lines higher Sep 3, 2020
@brian-avery brian-avery changed the title Address previous CR comments by moving sed a few lines higher Move sed a few lines higher Sep 3, 2020
@@ -0,0 +1,148 @@

---
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rcernich what makes these?

Copy link
Contributor

Choose a reason for hiding this comment

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

run make generate-manifests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ran make generate-manifests. All of the new files are still there though. I'm assuming that's good.

@mergify mergify bot merged commit 17ed17c into maistra:maistra-2.0 Sep 3, 2020
@mergify mergify bot removed the ready to merge label Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants