Skip to content

Commit 5a01d4a

Browse files
authored
Allow dashes in port names (again) (#517)
* Fix #514 * Changelog
1 parent 0e44bd0 commit 5a01d4a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ All notable changes to this project will be documented in this file.
77
### Fixed
88

99
- Revert changing the getting started script to use the listener class `cluster-internal` ([#492]) ([#493]).
10+
- Fix HDFS pods crashing on launch when any port names contain dashes ([#517]).
11+
12+
[#493]: https://github.com/stackabletech/hdfs-operator/pull/493
13+
[#517]: https://github.com/stackabletech/hdfs-operator/pull/517
1014

1115
## [24.3.0] - 2024-03-20
1216

@@ -49,7 +53,6 @@ All notable changes to this project will be documented in this file.
4953
[#475]: https://github.com/stackabletech/hdfs-operator/pull/475
5054
[#491]: https://github.com/stackabletech/hdfs-operator/pull/491
5155
[#492]: https://github.com/stackabletech/hdfs-operator/pull/492
52-
[#493]: https://github.com/stackabletech/hdfs-operator/pull/493
5356
[#495]: https://github.com/stackabletech/hdfs-operator/pull/495
5457
[#499]: https://github.com/stackabletech/hdfs-operator/pull/499
5558

rust/operator-binary/src/container.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ prepare_signal_handlers
525525
if [[ -d {LISTENER_VOLUME_DIR} ]]; then
526526
export POD_ADDRESS=$(cat {LISTENER_VOLUME_DIR}/default-address/address)
527527
for i in {LISTENER_VOLUME_DIR}/default-address/ports/*; do
528-
export $(basename $i | tr a-z A-Z)_PORT="$(cat $i)"
528+
export $(basename $i | tr a-z- A-Z_)_PORT="$(cat $i)"
529529
done
530530
fi
531531
{hadoop_home}/bin/hdfs {role} &

tests/templates/kuttl/smoke/30-install-hdfs.yaml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,7 @@ spec:
6666
cpu: 110m
6767
limits:
6868
cpu: 410m
69+
ports:
70+
# https://github.com/stackabletech/hdfs-operator/issues/514
71+
- name: dashed-port
72+
containerPort: 1234

0 commit comments

Comments
 (0)