-
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.
adding a manifestival transformer and unit tests for the same for CRD…
… field truncation. It truncates description fields in CRDs to apply a nightly build in the operator and potentially paving way for syncing nightly release of shipwright/builds with shipwright/operator
- Loading branch information
1 parent
1000268
commit 8f57b3b
Showing
4 changed files
with
138 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