Skip to content
Merged
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
4 changes: 1 addition & 3 deletions charts/library/common/schemas/configmap.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
"description": "Create Configmap objects"
},
"enabled": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Enables or Disables the Configmap"
},
"namespace": {
Expand Down
6 changes: 2 additions & 4 deletions charts/library/common/schemas/hostNetwork.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"description": "See [Host Network](/truecharts-common/workload#hostnetwork)",
"properties": {},
"additionalProperties": true
"type": "boolean",
"description": "See [Host Network](/truecharts-common/workload#hostnetwork)"
}
8 changes: 2 additions & 6 deletions charts/library/common/schemas/operator.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@
"description": "Contains specific settings for helm charts containing or using system"
},
"enabled": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Enables or disables the verification of system"
}
},
"additionalProperties": true,
"description": "Contains specific settings for verifying system"
},
"register": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Adds a configmap in the operator's namespace to register the chart as an operator"
}
},
Expand Down
92 changes: 24 additions & 68 deletions charts/library/common/schemas/persistence.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,62 +165,44 @@
"type": "object",
"properties": {
"size": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the sizeLimit of the emptyDir"
},
"medium": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the medium of emptyDir (Memory, \"\")"
},
"objectName": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the secret name."
},
"expandObjectName": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Whether to expand (adding the fullname as prefix) the secret name."
},
"optional": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Whether the secret should be required or not."
},
"defaultMode": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the defaultMode (must be a string in format of \"0777\")."
},
"items": {
"type": "object",
"properties": {},
"additionalProperties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define a list of items for secret."
},
"key": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the key of the secret."
}
},
"additionalProperties": true,
"description": "Configuration for `$name.items.$name`."
"additionalProperties": true
},
"description": "Define a list of items for secret."
},
Expand Down Expand Up @@ -303,27 +285,19 @@
"type": "object",
"properties": {
"readOnly": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Define persistence objects"
},
"mountPath": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the mountPath for the container"
},
"mountPropagation": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the mountPropagation for the container"
},
"subPath": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the subPath for the container"
}
},
Expand All @@ -335,15 +309,11 @@
"description": "Define a map with pod and containers to mount"
},
"hostPath": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the hostPath"
},
"hostPathType": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the hostPathType"
},
"labels": {
Expand Down Expand Up @@ -577,45 +547,31 @@
"description": "Define the portals"
},
"enabled": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Enables or Disables the persistence"
},
"type": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the persistence type"
},
"mountPath": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the mountPath for the persistence, applies to all containers that are selected"
},
"mountPropagation": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the mountPropagation for the persistence, applies to all containers that are selected"
},
"subPath": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the subPath for the persistence, applies to all containers that are selected"
},
"readOnly": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Define the readOnly for the persistence, applies to all containers that are selected"
},
"targetSelectAll": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Define wether to define this volume to all workloads and mount it on all containers"
}
},
Expand Down
40 changes: 11 additions & 29 deletions charts/library/common/schemas/rbac.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,11 @@
"description": "Define `subjects` for (Cluster)RoleBinding"
},
"enabled": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Enables or Disables the rbac"
},
"primary": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Sets the rbac as primary"
},
"namespace": {
Expand All @@ -54,9 +50,7 @@
"description": "Define the namespace for this object (Only when clusterWide is false)"
},
"clusterWide": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Sets the rbac as cluster wide (ClusterRole, ClusterRoleBinding)"
},
"labels": {
Expand All @@ -72,9 +66,7 @@
"description": "Additional annotations for rbac"
},
"allServiceAccounts": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Whether to assign all service accounts or not to the (Cluster)RoleBinding"
},
"serviceAccounts": {
Expand All @@ -84,38 +76,28 @@
"description": "Define the service account(s) to assign the (Cluster)RoleBinding"
},
"rules": {
"type": "object",
"properties": {},
"additionalProperties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"apiGroups": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "array",
"description": "Define the `apiGroups` list for the `rules` for the (Cluster)Role"
},
"resources": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "array",
"description": "Define the `resources` list for the `rules` for the (Cluster)Role"
},
"resourceNames": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "array",
"description": "Define the `resourceNames` list for the `rules` for the (Cluster)Role"
},
"verbs": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "array",
"description": "Define the `verbs` list for the `rules` for the (Cluster)Role"
}
},
"additionalProperties": true,
"description": "Configuration for `$name.rules.$name`."
"additionalProperties": true
},
"description": "Define the `rules` for the (Cluster)Role"
}
Expand Down
8 changes: 2 additions & 6 deletions charts/library/common/schemas/secret.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
"description": "Create Secret objects"
},
"enabled": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "boolean",
"description": "Enables or Disables the Secret"
},
"namespace": {
Expand All @@ -36,9 +34,7 @@
"description": "Additional annotations for secret"
},
"type": {
"type": "object",
"properties": {},
"additionalProperties": true,
"type": "string",
"description": "Define the type of the secret"
}
},
Expand Down
Loading