-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e test taking ownership of a field
- Loading branch information
Showing
7 changed files
with
173 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
test/extended/operators/manifests/ssa-with-set/crd-with-ssa-set.yaml
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,43 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: ssawithsets.testing.openshift.io | ||
spec: | ||
group: testing.openshift.io | ||
names: | ||
kind: SSAWithSet | ||
listKind: ISSAWithSetList | ||
plural: ssawithsets | ||
singular: ssawithset | ||
scope: Cluster | ||
versions: | ||
- name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
apiVersion: | ||
type: string | ||
kind: | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
properties: | ||
unrelatedField: | ||
type: string | ||
setList: | ||
items: | ||
maxLength: 43 | ||
minLength: 1 | ||
type: string | ||
maxItems: 32 | ||
type: array | ||
x-kubernetes-list-type: set | ||
type: object | ||
required: | ||
- spec | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
9 changes: 9 additions & 0 deletions
9
test/extended/operators/manifests/ssa-with-set/expected-final.yaml
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,9 @@ | ||
apiVersion: testing.openshift.io/v1 | ||
kind: SSAWithSet | ||
metadata: | ||
name: foo | ||
spec: | ||
unrelatedField: keep-original-owner | ||
setList: | ||
- apple | ||
- banana |
9 changes: 9 additions & 0 deletions
9
test/extended/operators/manifests/ssa-with-set/new-instance.yaml
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,9 @@ | ||
apiVersion: testing.openshift.io/v1 | ||
kind: SSAWithSet | ||
metadata: | ||
name: foo | ||
spec: | ||
unrelatedField: keep-original-owner | ||
setList: | ||
- first | ||
- second |
8 changes: 8 additions & 0 deletions
8
test/extended/operators/manifests/ssa-with-set/take-ownership-instance.yaml
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,8 @@ | ||
apiVersion: testing.openshift.io/v1 | ||
kind: SSAWithSet | ||
metadata: | ||
name: foo | ||
spec: | ||
setList: | ||
- first | ||
- second |
8 changes: 8 additions & 0 deletions
8
test/extended/operators/manifests/ssa-with-set/updated-list.yaml
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,8 @@ | ||
apiVersion: testing.openshift.io/v1 | ||
kind: SSAWithSet | ||
metadata: | ||
name: foo | ||
spec: | ||
setList: | ||
- apple | ||
- banana |
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
2 changes: 2 additions & 0 deletions
2
test/extended/util/annotate/generated/zz_generated.annotations.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.