Skip to content

Commit

Permalink
fix(cnrm): split CRDs into folders (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberHippo authored May 7, 2024
1 parent a268b45 commit 9a022ed
Show file tree
Hide file tree
Showing 358 changed files with 1,029 additions and 0 deletions.
145 changes: 145 additions & 0 deletions customize.core.cnrm.cloud.google.com/controllerresource_v1alpha1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"description": "ControllerResource is the Schema for resource customization API for config connector controllers.",
"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",
"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",
"type": "string"
},
"metadata": {
"properties": {
"name": {
"enum": [
"cnrm-controller-manager",
"cnrm-deletiondefender",
"cnrm-unmanaged-detector",
"cnrm-webhook-manager",
"cnrm-resource-stats-recorder"
],
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"spec": {
"anyOf": [
{
"required": [
"containers"
]
},
{
"required": [
"replicas"
]
}
],
"description": "ControllerResourceSpec is the specification of the resource customization for containers of a config connector controller.",
"properties": {
"containers": {
"description": "The list of containers whose resource requirements to be customized.",
"items": {
"description": "ContainerResourceSpec is the specification of the resource customization for a container of a config connector controller.",
"properties": {
"name": {
"description": "The name of the container whose resource requirements will be customized. Required",
"enum": [
"manager",
"webhook",
"deletiondefender",
"prom-to-sd",
"recorder",
"unmanageddetector"
],
"type": "string"
},
"resources": {
"description": "Resources specifies the resource customization of this container. Required",
"properties": {
"limits": {
"additionalProperties": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
"x-kubernetes-int-or-string": true
},
"description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
"type": "object"
},
"requests": {
"additionalProperties": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
"x-kubernetes-int-or-string": true
},
"description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
"type": "object"
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
"name",
"resources"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"replicas": {
"description": "The number of desired replicas of the config connector controller. This field takes effect only if the controller name is \"cnrm-webhook-manager\".",
"format": "int64",
"type": "integer"
}
},
"type": "object",
"additionalProperties": false
},
"status": {
"description": "ControllerResourceStatus defines the observed state of ControllerResource.",
"properties": {
"errors": {
"items": {
"type": "string"
},
"type": "array"
},
"healthy": {
"type": "boolean"
},
"phase": {
"type": "string"
}
},
"required": [
"healthy"
],
"type": "object",
"additionalProperties": false
}
},
"required": [
"spec"
],
"type": "object"
}
145 changes: 145 additions & 0 deletions customize.core.cnrm.cloud.google.com/controllerresource_v1beta1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"description": "ControllerResource is the Schema for resource customization API for config connector controllers.",
"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",
"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",
"type": "string"
},
"metadata": {
"properties": {
"name": {
"enum": [
"cnrm-controller-manager",
"cnrm-deletiondefender",
"cnrm-unmanaged-detector",
"cnrm-webhook-manager",
"cnrm-resource-stats-recorder"
],
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"spec": {
"anyOf": [
{
"required": [
"containers"
]
},
{
"required": [
"replicas"
]
}
],
"description": "ControllerResourceSpec is the specification of the resource customization for containers of a config connector controller.",
"properties": {
"containers": {
"description": "The list of containers whose resource requirements to be customized.",
"items": {
"description": "ContainerResourceSpec is the specification of the resource customization for a container of a config connector controller.",
"properties": {
"name": {
"description": "The name of the container whose resource requirements will be customized. Required",
"enum": [
"manager",
"webhook",
"deletiondefender",
"prom-to-sd",
"recorder",
"unmanageddetector"
],
"type": "string"
},
"resources": {
"description": "Resources specifies the resource customization of this container. Required",
"properties": {
"limits": {
"additionalProperties": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
"x-kubernetes-int-or-string": true
},
"description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
"type": "object"
},
"requests": {
"additionalProperties": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
"x-kubernetes-int-or-string": true
},
"description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
"type": "object"
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
"name",
"resources"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"replicas": {
"description": "The number of desired replicas of the config connector controller. This field takes effect only if the controller name is \"cnrm-webhook-manager\".",
"format": "int64",
"type": "integer"
}
},
"type": "object",
"additionalProperties": false
},
"status": {
"description": "ControllerResourceStatus defines the observed state of ControllerResource.",
"properties": {
"errors": {
"items": {
"type": "string"
},
"type": "array"
},
"healthy": {
"type": "boolean"
},
"phase": {
"type": "string"
}
},
"required": [
"healthy"
],
"type": "object",
"additionalProperties": false
}
},
"required": [
"spec"
],
"type": "object"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"description": "MutatingWebhookConfigurationCustomization is the Schema for customizing the mutating webhook configurations in config connector.",
"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",
"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",
"type": "string"
},
"metadata": {
"properties": {
"name": {
"enum": [
"mutating-webhook"
],
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"spec": {
"description": "WebhookConfigurationCustomizationSpec is the specification for customizing the webhooks of a config connector webhook configuration.",
"properties": {
"webhooks": {
"description": "The list of webhooks whose configuration to be customized. Required",
"items": {
"description": "WebhookCustomizationSpec is the specification for customizing for a specific webhook in config connector.",
"properties": {
"name": {
"description": "The name of the webhook. Do not include the `.cnrm.cloud.google.com` suffix. Required",
"enum": [
"abandon-on-uninstall",
"deny-immutable-field-updates",
"deny-unknown-fields",
"iam-validation",
"resource-validation",
"container-annotation-handler",
"generic-defaulter",
"iam-defaulter",
"management-conflict-annotation-defaulter"
],
"type": "string"
},
"timeoutSeconds": {
"description": "TimeoutSeconds customizes the timeout of the webhook. The timeout value must be between 1 and 30 seconds. The default timeout in Kubernetes is 10 seconds. Required",
"format": "int32",
"maximum": 30,
"minimum": 1,
"type": "integer"
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
}
},
"required": [
"webhooks"
],
"type": "object",
"additionalProperties": false
},
"status": {
"description": "WebhookConfigurationCustomizationStatus defines the observed state of ValidatingWebhookConfigurationCustomization and MutatingWebhookConfigurationCustomization.",
"properties": {
"errors": {
"items": {
"type": "string"
},
"type": "array"
},
"healthy": {
"type": "boolean"
},
"phase": {
"type": "string"
}
},
"required": [
"healthy"
],
"type": "object",
"additionalProperties": false
}
},
"required": [
"spec"
],
"type": "object"
}
Loading

0 comments on commit 9a022ed

Please sign in to comment.