Skip to content

Commit

Permalink
start & kube: add RGW_FRONTEND_PORT variable
Browse files Browse the repository at this point in the history
This commit
- adds RGW_FRONTEND_PORT to the list of environment variables in start.go and kube.go.

Since the PR ceph/ceph-container#1356, the RGW_CIVETWEB_PORT option has been dropped; we retain it for compatibility with the older versions.

Signed-off-by: Deepika Joshi <[email protected]>
  • Loading branch information
Deepika Joshi authored and leseb committed Jun 3, 2019
1 parent e677d52 commit 0c8ccf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cmd/kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ metadata:
env:
- name: NETWORK_AUTO_DETECT
value: "4"
- name: RGW_FRONTEND_PORT
value: "8000"
# Keep this for backward compatiblity, the option is gone since https://github.com/ceph/ceph-container/pull/1356
- name: RGW_CIVETWEB_PORT
value: "8000"
- name: SREE_PORT
Expand Down
3 changes: 2 additions & 1 deletion cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ func runContainer(cmd *cobra.Command, args []string) {
ips, _ := getInterfaceIPv4s()

envs := []string{
"RGW_CIVETWEB_PORT=" + rgwPort, // DON'T TOUCH MY POSITION IN THE SLICE OR YOU WILL BREAK dockerInspect()
"RGW_FRONTEND_PORT=" + rgwPort, // DON'T TOUCH MY POSITION IN THE SLICE OR YOU WILL BREAK dockerInspect()
"SREE_PORT=" + cnBrowserPort, // DON'T TOUCH MY POSITION IN THE SLICE OR YOU WILL BREAK dockerInspect()
"RGW_CIVETWEB_PORT=" + rgwPort, // Keep this for backward compatiblity, the option is gone since https://github.com/ceph/ceph-container/pull/1356
"EXPOSED_IP=" + ips[0].String(),
"DEBUG=verbose",
"CEPH_DEMO_UID=" + cephNanoUID,
Expand Down

0 comments on commit 0c8ccf0

Please sign in to comment.