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

WIP: kustomize: adding CRDs support #58

Closed
wants to merge 1 commit into from
Closed

WIP: kustomize: adding CRDs support #58

wants to merge 1 commit into from

Conversation

danmx
Copy link
Contributor

@danmx danmx commented Feb 16, 2021

Signed-off-by: danmx [email protected]

Description

Support Kustomize's CRDs configuration.

Related Issue

Motivation and Context

How Has This Been Tested?

Tested in a private repository.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@danmx danmx requested a review from a team as a code owner February 16, 2021 00:14
@@ -89,6 +89,7 @@ When you run `bazel run ///helloworld:mynamespace.apply`, it applies this file i
| ***name_prefix*** | `None` | Adds prefix to the names of all resources defined in manifests.
| ***name_suffix*** | `None` | Adds suffix to the names of all resources defined in manifests.
| ***patches*** | `None` | A list of patch files to overlay the base manifests. See [Base Manifests and Overlays](#base-manifests-and-overlays).
| ***crds*** | `None` | A list of custom resource definitions (CRDs) files. The presence of this field is to allow kustomize be aware of CRDs and apply proper transformation for any objects in those types.
Copy link
Member

Choose a reason for hiding this comment

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

@michaelschiff
Copy link
Collaborator

@danmx Thanks for the contribution! Please add a test for this new functionality in skylib/kustomize/tests

@danmx danmx changed the title kustomize: adding CRDs support WIP: kustomize: adding CRDs support Feb 16, 2021
@danmx
Copy link
Contributor Author

danmx commented Feb 16, 2021

it seems in the end it doesn't work the way I was initially thinking. I'll have to work a little bit more on it.

@danmx
Copy link
Contributor Author

danmx commented Feb 16, 2021

recommended way is to use configs: kubernetes-sigs/kustomize#480 (comment)
Custom schemas are still in KEP: kubernetes/enhancements#2206

@danmx danmx closed this Feb 16, 2021
@danmx danmx deleted the crds branch February 16, 2021 17:52
@danmx danmx restored the crds branch February 16, 2021 17:52
@danmx danmx deleted the crds branch February 16, 2021 23:09
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.

None yet

3 participants