Skip to content

Commit

Permalink
Update and add cluster api azure CRD (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
afarbos authored Aug 4, 2024
1 parent bd0ce09 commit d861ae8
Show file tree
Hide file tree
Showing 19 changed files with 3,175 additions and 416 deletions.
105 changes: 105 additions & 0 deletions infrastructure.cluster.x-k8s.io/azureasomanagedcluster_v1alpha1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"description": "AzureASOManagedCluster is the Schema for the azureasomanagedclusters API.",
"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": "AzureASOManagedClusterSpec defines the desired state of AzureASOManagedCluster.",
"properties": {
"controlPlaneEndpoint": {
"description": "ControlPlaneEndpoint is the location of the API server within the control plane. CAPZ manages this field\nand it should not be set by the user. It fulfills Cluster API's cluster infrastructure provider contract.\nBecause this field is programmatically set by CAPZ after resource creation, we define it as +optional\nin the API schema to permit resource admission.",
"properties": {
"host": {
"description": "The hostname on which the API server is serving.",
"type": "string"
},
"port": {
"description": "The port on which the API server is serving.",
"format": "int32",
"type": "integer"
}
},
"required": [
"host",
"port"
],
"type": "object",
"additionalProperties": false
},
"resources": {
"description": "Resources are embedded ASO resources to be managed by this resource.",
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
}
},
"type": "object",
"additionalProperties": false
},
"status": {
"description": "AzureASOManagedClusterStatus defines the observed state of AzureASOManagedCluster.",
"properties": {
"ready": {
"description": "Ready represents whether or not the cluster has been provisioned and is ready. It fulfills Cluster\nAPI's cluster infrastructure provider contract.",
"type": "boolean"
},
"resources": {
"items": {
"description": "ResourceStatus represents the status of a resource.",
"properties": {
"ready": {
"type": "boolean"
},
"resource": {
"description": "StatusResource is a handle to a resource.",
"properties": {
"group": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"group",
"kind",
"name",
"version"
],
"type": "object",
"additionalProperties": false
}
},
"required": [
"ready",
"resource"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"description": "AzureASOManagedClusterTemplate is the Schema for the azureasomanagedclustertemplates API.",
"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": "AzureASOManagedClusterTemplateSpec defines the desired state of AzureASOManagedClusterTemplate.",
"properties": {
"template": {
"description": "AzureASOManagedClusterTemplateResource defines the templated resource.",
"properties": {
"spec": {
"description": "AzureASOManagedClusterTemplateResourceSpec defines the desired state of the templated resource.",
"properties": {
"resources": {
"description": "Resources are embedded ASO resources to be managed by this resource.",
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
"template"
],
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"description": "AzureASOManagedControlPlane is the Schema for the azureasomanagedcontrolplanes API.",
"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": "AzureASOManagedControlPlaneSpec defines the desired state of AzureASOManagedControlPlane.",
"properties": {
"resources": {
"description": "Resources are embedded ASO resources to be managed by this resource.",
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"version": {
"description": "Version is the Kubernetes version of the control plane. It fulfills Cluster API's control plane\nprovider contract.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"status": {
"description": "AzureASOManagedControlPlaneStatus defines the observed state of AzureASOManagedControlPlane.",
"properties": {
"controlPlaneEndpoint": {
"description": "ControlPlaneEndpoint represents the endpoint for the cluster's API server.",
"properties": {
"host": {
"description": "The hostname on which the API server is serving.",
"type": "string"
},
"port": {
"description": "The port on which the API server is serving.",
"format": "int32",
"type": "integer"
}
},
"required": [
"host",
"port"
],
"type": "object",
"additionalProperties": false
},
"initialized": {
"description": "Initialized represents whether or not the API server has been provisioned. It fulfills Cluster API's\ncontrol plane provider contract. For AKS, this is equivalent to `ready`.",
"type": "boolean"
},
"ready": {
"description": "Ready represents whether or not the API server is ready to receive requests. It fulfills Cluster API's\ncontrol plane provider contract. For AKS, this is equivalent to `initialized`.",
"type": "boolean"
},
"resources": {
"items": {
"description": "ResourceStatus represents the status of a resource.",
"properties": {
"ready": {
"type": "boolean"
},
"resource": {
"description": "StatusResource is a handle to a resource.",
"properties": {
"group": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"group",
"kind",
"name",
"version"
],
"type": "object",
"additionalProperties": false
}
},
"required": [
"ready",
"resource"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"version": {
"description": "Version is the observed Kubernetes version of the control plane. It fulfills Cluster API's control\nplane provider contract.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"description": "AzureASOManagedControlPlaneTemplate is the Schema for the azureasomanagedcontrolplanetemplates API.",
"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": "AzureASOManagedControlPlaneTemplateSpec defines the desired state of AzureASOManagedControlPlane.",
"properties": {
"template": {
"description": "AzureASOManagedControlPlaneResource defines the templated resource.",
"properties": {
"spec": {
"description": "AzureASOManagedControlPlaneTemplateResourceSpec defines the desired state of the templated resource.",
"properties": {
"resources": {
"description": "Resources are embedded ASO resources to be managed by this resource.",
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"version": {
"description": "Version is the Kubernetes version of the control plane. It fulfills Cluster API's control plane\nprovider contract.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
"template"
],
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}
Loading

0 comments on commit d861ae8

Please sign in to comment.