Skip to content

Commit

Permalink
fix(helm): fix relax required parameters for postgres & redis passwor…
Browse files Browse the repository at this point in the history
…d, apply review comments
  • Loading branch information
ad-m committed Jan 25, 2022
1 parent dec2c03 commit 27414b7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 58 deletions.
85 changes: 29 additions & 56 deletions helm/superset/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
},
"configOverrides": {
"type": "object",
"additionalProperties": false,
"additionalProperties": {
"type": "string"
},
"properties": {
"extend_timeout": {
"type": "string"
Expand All @@ -68,7 +70,9 @@
},
"configOverridesFiles": {
"type": "object",
"additionalProperties": false,
"additionalProperties": {
"type": "string"
},
"properties": {
"extend_timeout": {
"type": "string"
Expand Down Expand Up @@ -180,40 +184,10 @@
]
},
"resources": {
"type": "object",
"additionalProperties": false,
"properties": {
"limits": {
"type": "object",
"additionalProperties": false,
"properties": {
"cpu": {
"type": "string"
},
"memory": {
"type": "string"
}
}
}
}
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.23.0/_definitions.json##/definitions/io.k8s.api.core.v1.Container/properties/resources"
},
"hostAliases": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"ip": {
"type": "string"
},
"hostnames": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.23.0/_definitions.json##/definitions/io.k8s.api.core.v1.PodSpec/properties/hostAliases"
},
"supersetNode": {
"type": "object",
Expand Down Expand Up @@ -278,9 +252,7 @@
"command",
"connections",
"env",
"forceReload",
"deploymentAnnotations",
"podAnnotations"
"forceReload"
]
},
"supersetWorker": {
Expand All @@ -305,9 +277,7 @@
},
"required": [
"command",
"forceReload",
"deploymentAnnotations",
"podAnnotations"
"forceReload"
]
},
"supersetCeleryBeat": {
Expand Down Expand Up @@ -336,9 +306,7 @@
"required": [
"enabled",
"command",
"forceReload",
"deploymentAnnotations",
"podAnnotations"
"forceReload"
]
},
"init": {
Expand Down Expand Up @@ -395,7 +363,7 @@
"type": "string"
},
"podAnnotations": {
"type": "object"
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.23.0/_definitions.json##/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta/properties/annotations"
}
},
"required": [
Expand All @@ -405,8 +373,7 @@
"loadExamples",
"createAdmin",
"adminUser",
"initscript",
"podAnnotations"
"initscript"
]
},
"postgresql": {
Expand All @@ -417,10 +384,16 @@
"type": "boolean"
},
"existingSecret": {
"type": "string"
"type": [
"string",
"null"
]
},
"existingSecretKey": {
"type": "string"
"type": [
"string",
"null"
]
},
"service": {
"type": "object",
Expand Down Expand Up @@ -467,11 +440,8 @@
},
"required": [
"enabled",
"existingSecret",
"existingSecretKey",
"service",
"postgresqlUsername",
"postgresqlPassword",
"postgresqlDatabase",
"persistence"
]
Expand All @@ -487,10 +457,16 @@
"type": "boolean"
},
"existingSecret": {
"type": "string"
"type": [
"string",
"null"
]
},
"existingSecretKey": {
"type": "string"
"type": [
"string",
"null"
]
},
"password": {
"type": "string"
Expand Down Expand Up @@ -541,9 +517,6 @@
"required": [
"enabled",
"usePassword",
"existingSecret",
"existingSecretKey",
"password",
"master",
"cluster"
]
Expand Down
4 changes: 2 additions & 2 deletions helm/superset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ postgresql:
enabled: true
##
## The name of an existing secret that contains the postgres password.
existingSecret: secret-name
existingSecret:
## Name of the key containing the secret.
existingSecretKey: postgresql-password
##
Expand Down Expand Up @@ -402,7 +402,7 @@ redis:
usePassword: false
##
## The name of an existing secret that contains the redis password.
existingSecret: secret-name
existingSecret:
## Name of the key containing the secret.
existingSecretKey: redis-password
##
Expand Down

0 comments on commit 27414b7

Please sign in to comment.