It depends on your use case what the best option would be. You can put variables into kustomize templates and replace them via envsubst. For helm charts you can just supply the values for the variables during the install / upgrade.
Another possibility would be to create a ConfigMap with the values you read from the state file.