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

Transformer mode #77

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

JustinKuli
Copy link
Member

The first few commits refactor how manifests are read in, especially the new-ish kustomization.yaml handling logic. I think the result is a little more readable, but obviously that's just an opinion, and I could back out those changes. I would squash those changes before merging here - they're individual steps to try and make the changes more clear during review.

@openshift-ci
Copy link

openshift-ci bot commented Oct 7, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JustinKuli

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Oct 7, 2022
internal/utils.go Fixed Show fixed Hide fixed
Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
This will help enable usage of this plugin as a transformer.

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
When run as a container by kustomize (by setting an annotation in the
generator yaml), kustomize will send the configuration and other inputs
to the process via stdin. New code converts that input into the format
that the generator currently expects.

The examples here should make it more clear.

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
@sonarcloud
Copy link

sonarcloud bot commented Oct 21, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

49.4% 49.4% Coverage
0.0% 0.0% Duplication

@openshift-merge-robot
Copy link
Contributor

@JustinKuli: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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.

2 participants