dragonflydb / dragonflydb/dragonfly-operator
IPv6 is not supported
- Dominant language
- Go
- Stars
- 357
- Forks
- 111
- PR merge metrics
- No merged PRs in 30d
Description
1. The real reason for the error is not returned, only return fmt.Errorf("could not update replica label") https://github.com/dragonflydb/dragonfly-operator/blob/main/internal/controller/dragonfly_instance.go#L330
2. After we changed the code, we found the cause of the error, the metadata.labels field does not allow writing the IPv6 address: `"could not update replica label: Pod \"dragonfly-sample-2\" is invalid: metadata.labels: Invalid value: \"2a02:5501:28:440b::d32e\": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')"`
Contributor guide
Research direction
Start in internal/controller/dragonfly_instance.go around line 330 and trace the replica-label update for an IPv6 address. Reproduce the reported Kubernetes validation failure, then confirm the project’s intended behavior for IPv6 and verify that the reported path handles it correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100