Kong / Kong/deck

Deck convert from 3.4 to 3.10 doesnt change `redis.sentinel` to object of `host` and `port`

Open
#1,851 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
503
Forks
137
Avg merge
3d 5h
Merged PRs (30d)
20

Description

In Deck v 1.55.1, when running `deck file convert --input-file 3.4redis.yaml --from 3.4 --to 3.10` against 3.4 Kong Enterprise config
that has below section for redis configuration
```
sentinel_addresses:
- 10.0.0.1:3636
- 10.0.0.1:3636
- 10.0.0.1:3636
```
It literally converts the `sentinel_addresses` without changing the value to object of `host` and `port` which required format to be accepted by Kong 3.10.x
exp:
```
sentinel_nodes:
- host: 10.0.0.1
port: 3636
- host: 10.0.0.1
port: 3636
- host: 10.0.0.1
port: 3636
```
Requesting to add capabilities to convert the `sentinel_nodes` value when converting the file.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the `deck file convert --from 3.4 --to 3.10` command and trace the conversion handling for Redis sentinel configuration. Add a regression test using the shown `sentinel_addresses` input; done means conversion produces `sentinel_nodes` entries with separate `host` and `port` values accepted by Kong 3.10.x.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.