Skip to content

Conversation

@jaehyeon-kim
Copy link
Member

@jaehyeon-kim jaehyeon-kim commented Jul 30, 2025

Zendesk ticket - https://factorhouse.zendesk.com/agent/tickets/710

Client error

helm upgrade -f kpow-values.yaml  kpow factorhouse/kpow --namespace kpow  --set envFromSecret=kpow-secrets --set envFromConfigMap=kpow-config
Error: UPGRADE FAILED: values don't meet the specifications of the schema(s) in the following chart(s):
kpow:
- envFromSecret: Invalid type. Expected: null, given: string
- envFromConfigMap: Invalid type. Expected: null, given: string
- resources.requests.cpu: Invalid type. Expected: integer, given: string

Update data types in values.schema.json

{
    "$schema": "http://json-schema.org/schema#",
    "type": "object",
    "properties": {
        "affinity": {
            "type": "object"
        },
        ...
        "envFromConfigMap": {
            "type": "null" <-- to ["string", "null"]
        },
        "envFromSecret": {
            "type": "null"  <-- to ["string", "null"]
        },
		...
        "resources": {
            "type": "object",
            "properties": {
                "limits": {
                    "type": "object",
                    "properties": {
                        "cpu": {
                            "type": "integer" <-- ["integer", "string"]
                        },
                        "memory": {
                            "type": "string" <-- ["integer", "string"]
                        }
                    }
                },
                "requests": {
                    "type": "object",
                    "properties": {
                        "cpu": {
                            "type": "integer" <-- ["integer", "string"]
                        },
                        "memory": {
                            "type": "string" <-- ["integer", "string"]
                        }
                    }
                }
            }
        },
        ...
    }
}

Copy link
Contributor

@nvenegas nvenegas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaehyeon-kim jaehyeon-kim merged commit d3e4ddf into main Jul 30, 2025
1 check passed
@jaehyeon-kim jaehyeon-kim deleted the hotfix/update-values-schema-json-data-types branch September 30, 2025 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants