Skip to content

Instantly share code, notes, and snippets.

@deads2k
Created April 24, 2024 21:07
Show Gist options
  • Save deads2k/ae1622198609fa1c60a52f563ffd6aec to your computer and use it in GitHub Desktop.
Save deads2k/ae1622198609fa1c60a52f563ffd6aec to your computer and use it in GitHub Desktop.
{
"apiVersion": "testing.openshift.io/v1",
"kind": "SSAWithSet",
"metadata": {
"creationTimestamp": "2024-04-24T20:58:42Z",
"generation": 1,
"managedFields": [
{
"apiVersion": "testing.openshift.io/v1",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:spec": {
"f:setList": {
"v:\"first\"": {},
"v:\"second\"": {}
}
}
},
"manager": "new-owner",
"operation": "Apply"
},
{
"apiVersion": "testing.openshift.io/v1",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:spec": {
"f:setList": {
"v:\"first\"": {},
"v:\"second\"": {}
},
"f:unrelatedField": {}
}
},
"manager": "creator",
"operation": "Apply",
"time": "2024-04-24T20:58:42Z"
}
],
"name": "foo",
"resourceVersion": "60607",
"uid": "6e29c81c-9711-4481-ad01-4d07a864c19f"
},
"spec": {
"setList": [
"first",
"second"
],
"unrelatedField": "keep-original-owner"
}
}
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: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment