Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding schemas for Crossplane Grafana provider #315

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,924 changes: 3,924 additions & 0 deletions alerting.grafana.crossplane.io/contactpoint_v1alpha1.json

Large diffs are not rendered by default.

498 changes: 498 additions & 0 deletions alerting.grafana.crossplane.io/messagetemplate_v1alpha1.json

Large diffs are not rendered by default.

662 changes: 662 additions & 0 deletions alerting.grafana.crossplane.io/mutetiming_v1alpha1.json

Large diffs are not rendered by default.

2,803 changes: 2,803 additions & 0 deletions alerting.grafana.crossplane.io/notificationpolicy_v1alpha1.json

Large diffs are not rendered by default.

1,080 changes: 1,080 additions & 0 deletions alerting.grafana.crossplane.io/rulegroup_v1alpha1.json

Large diffs are not rendered by default.

626 changes: 626 additions & 0 deletions cloud.grafana.crossplane.io/accesspolicy_v1alpha1.json

Large diffs are not rendered by default.

518 changes: 518 additions & 0 deletions cloud.grafana.crossplane.io/accesspolicytoken_v1alpha1.json

Large diffs are not rendered by default.

330 changes: 330 additions & 0 deletions cloud.grafana.crossplane.io/apikey_v1alpha1.json

Large diffs are not rendered by default.

486 changes: 486 additions & 0 deletions cloud.grafana.crossplane.io/plugininstallation_v1alpha1.json

Large diffs are not rendered by default.

522 changes: 522 additions & 0 deletions cloud.grafana.crossplane.io/stack_v1alpha1.json

Large diffs are not rendered by default.

498 changes: 498 additions & 0 deletions cloud.grafana.crossplane.io/stackserviceaccount_v1alpha1.json

Large diffs are not rendered by default.

662 changes: 662 additions & 0 deletions cloud.grafana.crossplane.io/stackserviceaccounttoken_v1alpha1.json

Large diffs are not rendered by default.

1,034 changes: 1,034 additions & 0 deletions enterprise.grafana.crossplane.io/datasourcepermission_v1alpha1.json

Large diffs are not rendered by default.

1,055 changes: 1,055 additions & 0 deletions enterprise.grafana.crossplane.io/report_v1alpha1.json

Large diffs are not rendered by default.

620 changes: 620 additions & 0 deletions enterprise.grafana.crossplane.io/role_v1alpha1.json

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions enterprise.grafana.crossplane.io/roleassignment_v1alpha1.json

Large diffs are not rendered by default.

482 changes: 482 additions & 0 deletions enterprise.grafana.crossplane.io/teamexternalgroup_v1alpha1.json

Large diffs are not rendered by default.

162 changes: 162 additions & 0 deletions grafana.crossplane.io/providerconfig_v1beta1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
{
"description": "A ProviderConfig configures a Grafana provider.",
"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": "A ProviderConfigSpec defines the desired state of a ProviderConfig.",
"properties": {
"credentials": {
"description": "Credentials required to authenticate to this provider.",
"properties": {
"env": {
"description": "Env is a reference to an environment variable that contains credentials\nthat must be used to connect to the provider.",
"properties": {
"name": {
"description": "Name is the name of an environment variable.",
"type": "string"
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
},
"fs": {
"description": "Fs is a reference to a filesystem location that contains credentials that\nmust be used to connect to the provider.",
"properties": {
"path": {
"description": "Path is a filesystem path.",
"type": "string"
}
},
"required": [
"path"
],
"type": "object",
"additionalProperties": false
},
"secretRef": {
"description": "A SecretRef is a reference to a secret key that contains the credentials\nthat must be used to connect to the provider.",
"properties": {
"key": {
"description": "The key to select.",
"type": "string"
},
"name": {
"description": "Name of the secret.",
"type": "string"
},
"namespace": {
"description": "Namespace of the secret.",
"type": "string"
}
},
"required": [
"key",
"name",
"namespace"
],
"type": "object",
"additionalProperties": false
},
"source": {
"description": "Source of the provider credentials.",
"enum": [
"None",
"Secret",
"InjectedIdentity",
"Environment",
"Filesystem"
],
"type": "string"
}
},
"required": [
"source"
],
"type": "object",
"additionalProperties": false
}
},
"required": [
"credentials"
],
"type": "object",
"additionalProperties": false
},
"status": {
"description": "A ProviderConfigStatus reflects the observed state of a ProviderConfig.",
"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"
},
"users": {
"description": "Users of this provider configuration.",
"format": "int64",
"type": "integer"
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
"spec"
],
"type": "object"
}
87 changes: 87 additions & 0 deletions grafana.crossplane.io/providerconfigusage_v1beta1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"description": "A ProviderConfigUsage indicates that a resource is using a ProviderConfig.",
"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"
},
"providerConfigRef": {
"description": "ProviderConfigReference to the provider config being used.",
"properties": {
"name": {
"description": "Name of the referenced object.",
"type": "string"
},
"policy": {
"description": "Policies for referencing.",
"properties": {
"resolution": {
"default": "Required",
"description": "Resolution specifies whether resolution of this reference is required.\nThe default is 'Required', which means the reconcile will fail if the\nreference cannot be resolved. 'Optional' means this reference will be\na no-op if it cannot be resolved.",
"enum": [
"Required",
"Optional"
],
"type": "string"
},
"resolve": {
"description": "Resolve specifies when this reference should be resolved. The default\nis 'IfNotPresent', which will attempt to resolve the reference only when\nthe corresponding field is not present. Use 'Always' to resolve the\nreference on every reconcile.",
"enum": [
"Always",
"IfNotPresent"
],
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
},
"resourceRef": {
"description": "ResourceReference to the managed resource using the provider config.",
"properties": {
"apiVersion": {
"description": "APIVersion of the referenced object.",
"type": "string"
},
"kind": {
"description": "Kind of the referenced object.",
"type": "string"
},
"name": {
"description": "Name of the referenced object.",
"type": "string"
},
"uid": {
"description": "UID of the referenced object.",
"type": "string"
}
},
"required": [
"apiVersion",
"kind",
"name"
],
"type": "object",
"additionalProperties": false
}
},
"required": [
"providerConfigRef",
"resourceRef"
],
"type": "object"
}
Loading