Open PavelNen opened 2 months ago
Hi @PavelNen , Thanks for raising this, will check this out. Meanwhile please join our community here: https://join.slack.com/t/typesensekube-uma7122/shared_invite/zt-2psm6rw7l-2kzi2oR3~GLAUhaHw381mA
Hi @PavelNen , the support for supplying env
is part of the new release, otherwise, the fields mentioned should get applied when you execute kubectl apply -f <>
. `
could you confirm?
@sai3010 I spent some time with the new configuration, the configuration is updated correctly. /health returns OK
but it seems that the apikey key is now used incorrectly when creating an instance, the key did not change.
"Forbidden - a valid x-typesense-api-key
header must be sent."
@sai3010 you forgot to update the version of the operator image in operator.yaml
Describe the bug Attempting to apply a new configuration via
config-operator.yaml
for the Typesense StatefulSet results in an error. The Kubernetes API returns a422 Unprocessable Entity
status with the message that updates to fields other than 'replicas', 'ordinals', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy', and 'minReadySeconds' in the StatefulSet spec are forbidden.To Reproduce Steps to reproduce the behavior:
config-operator.yaml
with the following StatefulSet configuration:apiVersion: v1 kind: Service metadata: name: typesense-external-service namespace: typesense spec: type: LoadBalancer selector: app: typesense ports:
port: 8108 targetPort: 8108 protocol: TCP
Expected behavior The StatefulSet configuration should be updated successfully without any errors, allowing changes to the specified fields.
Please complete the following information:
Additional context The error appears to be related to restrictions on updating specific fields in the StatefulSet spec. Full error message from the logs:
If I want to update the settings, I just do
kubectl delete-f operator-config.yaml
andkubectl delete -f deploy/operator. yaml
and apply them again with new properties. In addition it is easier to manually configure StatefulSet and build your own container for installation