Skip to content

Commit

Permalink
add/update crossplane crds (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
barrydobson authored Feb 6, 2025
1 parent 34bad85 commit 8dcf114
Show file tree
Hide file tree
Showing 21 changed files with 4,774 additions and 2,547 deletions.
141 changes: 88 additions & 53 deletions apiextensions.crossplane.io/compositeresourcedefinition_v1.json

Large diffs are not rendered by default.

732 changes: 176 additions & 556 deletions apiextensions.crossplane.io/composition_v1.json

Large diffs are not rendered by default.

749 changes: 187 additions & 562 deletions apiextensions.crossplane.io/compositionrevision_v1.json

Large diffs are not rendered by default.

1,070 changes: 1,070 additions & 0 deletions apiextensions.crossplane.io/compositionrevision_v1beta1.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions apiextensions.crossplane.io/environmentconfig_v1alpha1.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"description": "A EnvironmentConfig contains a set of arbitrary, unstructured values.",
"description": "An EnvironmentConfig contains user-defined unstructured values for\nuse in a Composition.\n\nRead the Crossplane documentation for\n[more information about EnvironmentConfigs](https://docs.crossplane.io/latest/concepts/environment-configs).",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"data": {
"additionalProperties": {
"x-kubernetes-preserve-unknown-fields": true
},
"description": "The data of this EnvironmentConfig. This may contain any kind of structure that can be serialized into JSON.",
"description": "The data of this EnvironmentConfig.\nThis may contain any kind of structure that can be serialized into JSON.",
"type": "object"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
Expand Down
24 changes: 24 additions & 0 deletions apiextensions.crossplane.io/environmentconfig_v1beta1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"description": "An EnvironmentConfig contains user-defined unstructured values for\nuse in a Composition.\n\nRead the Crossplane documentation for\n[more information about EnvironmentConfigs](https://docs.crossplane.io/latest/concepts/environment-configs).",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"data": {
"additionalProperties": {
"x-kubernetes-preserve-unknown-fields": true
},
"description": "The data of this EnvironmentConfig.\nThis may contain any kind of structure that can be serialized into JSON.",
"type": "object"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object"
}
51 changes: 39 additions & 12 deletions apiextensions.crossplane.io/usage_v1alpha1.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"description": "A Usage defines a deletion blocking relationship between two resources.",
"description": "A Usage defines a deletion blocking relationship between two resources.\n\nUsages prevent accidental deletion of a single resource or deletion of\nresources with dependent resources.\n\nRead the Crossplane documentation for\n[more information about Compositions](https://docs.crossplane.io/latest/concepts/usages).",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
Expand All @@ -23,7 +23,7 @@
"type": "string"
},
"kind": {
"description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"description": "Kind of the referent.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"resourceRef": {
Expand All @@ -41,10 +41,10 @@
"additionalProperties": false
},
"resourceSelector": {
"description": "Selector to the resource. This field will be ignored if ResourceRef is set.",
"description": "Selector to the resource.\nThis field will be ignored if ResourceRef is set.",
"properties": {
"matchControllerRef": {
"description": "MatchControllerRef ensures an object with the same controller reference as the selecting object is selected.",
"description": "MatchControllerRef ensures an object with the same controller reference\nas the selecting object is selected.",
"type": "boolean"
},
"matchLabels": {
Expand All @@ -60,6 +60,12 @@
}
},
"type": "object",
"x-kubernetes-validations": [
{
"message": "either a resource reference or a resource selector should be set.",
"rule": "has(self.resourceRef) || has(self.resourceSelector)"
}
],
"additionalProperties": false
},
"of": {
Expand All @@ -70,7 +76,7 @@
"type": "string"
},
"kind": {
"description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"description": "Kind of the referent.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"resourceRef": {
Expand All @@ -88,10 +94,10 @@
"additionalProperties": false
},
"resourceSelector": {
"description": "Selector to the resource. This field will be ignored if ResourceRef is set.",
"description": "Selector to the resource.\nThis field will be ignored if ResourceRef is set.",
"properties": {
"matchControllerRef": {
"description": "MatchControllerRef ensures an object with the same controller reference as the selecting object is selected.",
"description": "MatchControllerRef ensures an object with the same controller reference\nas the selecting object is selected.",
"type": "boolean"
},
"matchLabels": {
Expand All @@ -107,17 +113,33 @@
}
},
"type": "object",
"x-kubernetes-validations": [
{
"message": "either a resource reference or a resource selector should be set.",
"rule": "has(self.resourceRef) || has(self.resourceSelector)"
}
],
"additionalProperties": false
},
"reason": {
"description": "Reason is the reason for blocking deletion of the resource.",
"type": "string"
},
"replayDeletion": {
"description": "ReplayDeletion will trigger a deletion on the used resource during the deletion of the usage itself, if it was attempted to be deleted at least once.",
"type": "boolean"
}
},
"required": [
"of"
],
"type": "object",
"x-kubernetes-validations": [
{
"message": "either \"spec.by\" or \"spec.reason\" must be specified.",
"rule": "has(self.by) || has(self.reason)"
}
],
"additionalProperties": false
},
"status": {
Expand All @@ -129,14 +151,19 @@
"description": "A Condition that may apply to a resource.",
"properties": {
"lastTransitionTime": {
"description": "LastTransitionTime is the last time this condition transitioned from one status to another.",
"description": "LastTransitionTime is the last time this condition transitioned from one\nstatus to another.",
"format": "date-time",
"type": "string"
},
"message": {
"description": "A Message containing details about this condition's last transition from one status to another, if any.",
"description": "A Message containing details about this condition's last transition from\none status to another, if any.",
"type": "string"
},
"observedGeneration": {
"description": "ObservedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
"format": "int64",
"type": "integer"
},
"reason": {
"description": "A Reason for this condition's last transition from one status to another.",
"type": "string"
Expand All @@ -146,7 +173,7 @@
"type": "string"
},
"type": {
"description": "Type of this condition. At most one of each condition type may apply to a resource at any point in time.",
"description": "Type of this condition. At most one of each condition type may apply to\na resource at any point in time.",
"type": "string"
}
},
Expand Down
204 changes: 204 additions & 0 deletions apiextensions.crossplane.io/usage_v1beta1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
{
"description": "A Usage defines a deletion blocking relationship between two resources.\n\nUsages prevent accidental deletion of a single resource or deletion of\nresources with dependent resources.\n\nRead the Crossplane documentation for\n[more information about Compositions](https://docs.crossplane.io/latest/concepts/usages).",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"description": "UsageSpec defines the desired state of Usage.",
"properties": {
"by": {
"description": "By is the resource that is \"using the other resource\".",
"properties": {
"apiVersion": {
"description": "API version of the referent.",
"type": "string"
},
"kind": {
"description": "Kind of the referent.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"resourceRef": {
"description": "Reference to the resource.",
"properties": {
"name": {
"description": "Name of the referent.",
"type": "string"
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
},
"resourceSelector": {
"description": "Selector to the resource.\nThis field will be ignored if ResourceRef is set.",
"properties": {
"matchControllerRef": {
"description": "MatchControllerRef ensures an object with the same controller reference\nas the selecting object is selected.",
"type": "boolean"
},
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"description": "MatchLabels ensures an object with matching labels is selected.",
"type": "object"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"x-kubernetes-validations": [
{
"message": "either a resource reference or a resource selector should be set.",
"rule": "has(self.resourceRef) || has(self.resourceSelector)"
}
],
"additionalProperties": false
},
"of": {
"description": "Of is the resource that is \"being used\".",
"properties": {
"apiVersion": {
"description": "API version of the referent.",
"type": "string"
},
"kind": {
"description": "Kind of the referent.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"resourceRef": {
"description": "Reference to the resource.",
"properties": {
"name": {
"description": "Name of the referent.",
"type": "string"
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
},
"resourceSelector": {
"description": "Selector to the resource.\nThis field will be ignored if ResourceRef is set.",
"properties": {
"matchControllerRef": {
"description": "MatchControllerRef ensures an object with the same controller reference\nas the selecting object is selected.",
"type": "boolean"
},
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"description": "MatchLabels ensures an object with matching labels is selected.",
"type": "object"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"x-kubernetes-validations": [
{
"message": "either a resource reference or a resource selector should be set.",
"rule": "has(self.resourceRef) || has(self.resourceSelector)"
}
],
"additionalProperties": false
},
"reason": {
"description": "Reason is the reason for blocking deletion of the resource.",
"type": "string"
},
"replayDeletion": {
"description": "ReplayDeletion will trigger a deletion on the used resource during the deletion of the usage itself, if it was attempted to be deleted at least once.",
"type": "boolean"
}
},
"required": [
"of"
],
"type": "object",
"x-kubernetes-validations": [
{
"message": "either \"spec.by\" or \"spec.reason\" must be specified.",
"rule": "has(self.by) || has(self.reason)"
}
],
"additionalProperties": false
},
"status": {
"description": "UsageStatus defines the observed state of Usage.",
"properties": {
"conditions": {
"description": "Conditions of the resource.",
"items": {
"description": "A Condition that may apply to a resource.",
"properties": {
"lastTransitionTime": {
"description": "LastTransitionTime is the last time this condition transitioned from one\nstatus to another.",
"format": "date-time",
"type": "string"
},
"message": {
"description": "A Message containing details about this condition's last transition from\none status to another, if any.",
"type": "string"
},
"observedGeneration": {
"description": "ObservedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
"format": "int64",
"type": "integer"
},
"reason": {
"description": "A Reason for this condition's last transition from one status to another.",
"type": "string"
},
"status": {
"description": "Status of this condition; is it currently True, False, or Unknown?",
"type": "string"
},
"type": {
"description": "Type of this condition. At most one of each condition type may apply to\na resource at any point in time.",
"type": "string"
}
},
"required": [
"lastTransitionTime",
"reason",
"status",
"type"
],
"type": "object",
"additionalProperties": false
},
"type": "array",
"x-kubernetes-list-map-keys": [
"type"
],
"x-kubernetes-list-type": "map"
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
"spec"
],
"type": "object"
}
Loading

0 comments on commit 8dcf114

Please sign in to comment.