-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Manifestival Transformer for CRDs
Adding a TruncateField transformer and using it to truncate CRD description fields from the kodata/release.yaml manifest. The CRDs for Shipwright Build objects are very large, resulting in a validation error from Kubernetes when we try to create the CRDs with Manifestival.
- Loading branch information
1 parent
1000268
commit 2e8cffc
Showing
4 changed files
with
140 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: test.crd.com | ||
spec: | ||
group: crd.com | ||
versions: | ||
- name: v1 | ||
served: true | ||
description: This is a long string that should be truncated | ||
storage: true | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
description: This is a long string that should be truncated | ||
spec: | ||
properties: | ||
field1: | ||
type: string | ||
description: This is a long string that should be truncated | ||
scope: Namespaced | ||
names: | ||
plural: tests | ||
singular: test | ||
kind: Test | ||
shortNames: | ||
- tst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters