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

feat: add schemas for palletproject #14

Merged
merged 1 commit into from
Nov 6, 2024
Merged
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
389 changes: 389 additions & 0 deletions pallets/xpalletproject-gcp-v1alpha1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,389 @@
{
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"properties": {
"name": {
"maxLength": 63,
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"spec": {
"description": "Parameters used to customise the underlying the pallet project.",
"properties": {
"artifactRepository": {
"default": {},
"description": "Settings related to artifact repository",
"properties": {
"docker": {
"default": {},
"description": "Settings related to docker repositories",
"properties": {
"default": {
"default": {},
"description": "Settings related to the default docker repository",
"properties": {
"enabled": {
"default": true,
"description": "Enable this repository. Defaults to true",
"type": "boolean"
},
"immutableTags": {
"default": true,
"description": "Enable immutable tags. This will disallow overriding docker image tags. Defaults to true.\n",
"type": "boolean"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
},
"claimRef": {
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
}
},
"required": [
"apiVersion",
"kind",
"namespace",
"name"
],
"type": "object",
"additionalProperties": false
},
"compositionRef": {
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
},
"compositionRevisionRef": {
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
},
"compositionRevisionSelector": {
"properties": {
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"required": [
"matchLabels"
],
"type": "object",
"additionalProperties": false
},
"compositionSelector": {
"properties": {
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"required": [
"matchLabels"
],
"type": "object",
"additionalProperties": false
},
"compositionUpdatePolicy": {
"default": "Automatic",
"enum": [
"Automatic",
"Manual"
],
"type": "string"
},
"environmentConfigRefs": {
"items": {
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"apiVersion",
"kind"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"project": {
"default": {},
"description": "Settings related to the project.",
"properties": {
"budget": {
"default": {},
"properties": {
"monthlyBudgetInDollars": {
"default": 100,
"description": "Monthly budget in dollars for this project",
"type": "number"
},
"notificationEmailAddresses": {
"default": [],
"description": "A list of email addresses where to sent budget notification\nto. The owner group is always added as notification receiver.\n",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
"additionalProperties": false
},
"readers": {
"default": [],
"description": "List of groups, users or service accounts that have reader\naccess to project. Use member format, for\nexample serviceAcount:myteam@project-id.iam.gserviceaccount.com\nor group:my-team@o365.coop.no\n",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
"additionalProperties": false
},
"publishConnectionDetailsTo": {
"properties": {
"configRef": {
"default": {
"name": "default"
},
"properties": {
"name": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"metadata": {
"properties": {
"annotations": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"type": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"name": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
},
"resourceRefs": {
"items": {
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"apiVersion",
"kind"
],
"type": "object",
"additionalProperties": false
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"secretManager": {
"default": {},
"description": "Settings related to secret manager",
"properties": {
"github": {
"description": "A list of secrets which can be consumed by GitHub Action workflows.\n",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
"additionalProperties": false
},
"workloadIdentity": {
"default": {},
"description": "Settings related to workload identity",
"properties": {
"github": {
"default": {},
"description": "Settings related to Github to GCP workload identity",
"properties": {
"default": {
"default": {},
"description": "Settings related to the default GCP workload identity",
"properties": {
"enabled": {
"default": true,
"description": "Enable the default workloadIdentity for GitHub. Defaults to true",
"type": "boolean"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
},
"writeConnectionSecretToRef": {
"properties": {
"name": {
"type": "string"
},
"namespace": {
"type": "string"
}
},
"required": [
"name",
"namespace"
],
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
},
"status": {
"properties": {
"conditions": {
"description": "Conditions of the resource.",
"items": {
"properties": {
"lastTransitionTime": {
"format": "date-time",
"type": "string"
},
"message": {
"type": "string"
},
"reason": {
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"lastTransitionTime",
"reason",
"status",
"type"
],
"type": "object",
"additionalProperties": false
},
"type": "array",
"x-kubernetes-list-map-keys": [
"type"
],
"x-kubernetes-list-type": "map"
},
"connectionDetails": {
"properties": {
"lastPublishedTime": {
"format": "date-time",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
"spec"
],
"type": "object"
}
Loading