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

kustomize: use FS from fluxcd/pkg #2651

Merged
merged 1 commit into from
May 3, 2022
Merged

kustomize: use FS from fluxcd/pkg #2651

merged 1 commit into from
May 3, 2022

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Apr 19, 2022

This switches to a secure FS implementation in most places, except for
where we can not make changes at this moment because it would break
behavior.

Not handled in this commit:

  • Allowing the root for manifestgen packages to be configured.
  • Allowing the user to define a working root while building locally.
  • Defaulting to the secure FS implementation in
    kustomization.MakeDefaultOptions. Problem here is that constructing
    the secure FS could result in an error, which we can not surface
    without signature changes to the constructor func.

@hiddeco hiddeco added the area/kustomization Kustomization related issues and pull requests label Apr 19, 2022
@hiddeco
Copy link
Member Author

hiddeco commented Apr 20, 2022

We need to postpone this until @stefanprodan is back next week, as I currently can't steer around some of the assumptions (and lack of a root argument) in some of the generating parts of the API.

@hiddeco hiddeco added the hold Issues and pull requests put on hold label Apr 20, 2022
@hiddeco hiddeco force-pushed the customize-kustomize-fs branch 3 times, most recently from 6f9850f to 2e6f576 Compare May 3, 2022 10:31
@hiddeco hiddeco added area/bootstrap Bootstrap related issues and pull requests area/install Install and uninstall related issues and pull requests and removed hold Issues and pull requests put on hold labels May 3, 2022
@hiddeco hiddeco marked this pull request as ready for review May 3, 2022 11:36
@hiddeco hiddeco force-pushed the customize-kustomize-fs branch 2 times, most recently from c24ae3b to 0259bc0 Compare May 3, 2022 11:52
This switches to a secure FS implementation in most places, except for
where we can not make changes at this moment because it would break
behavior.

Not handled in this commit:

- Allowing the root for `manifestgen` packages to be configured.
- Allowing the user to define a working root while building locally.
- Defaulting to the secure FS implementation in
  `kustomization.MakeDefaultOptions`. Problem here is that constructing
  the secure FS could result in an error, which we can not surface
  without signature changes to the constructor func.

Signed-off-by: Hidde Beydals <hello@hidde.co>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

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

Great work on this @hiddeco! 👏 👏

LGTM

@hiddeco hiddeco merged commit f924c5f into main May 3, 2022
@hiddeco hiddeco deleted the customize-kustomize-fs branch May 3, 2022 12:25
@pjbgf pjbgf added this to the GA milestone May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bootstrap Bootstrap related issues and pull requests area/install Install and uninstall related issues and pull requests area/kustomization Kustomization related issues and pull requests
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants