Fix BROADCAST_WEBSOCKET_PORT for Kube dev

- `settings/minikube.py` gets imported conditionally, when the
  environment variable `AWX_KUBE_DEVEL` is set. In this imported file,
  we set `BROADCAST_WEBSOCKET_PORT = 8013`, but 8013 is only used in the
  docker-compose dev environment. In Kubernetes environments, 8052 is
  used for everything. This is hardcoded awx-operator's ConfigMap.

- Also rename `minikube.py` because it is used for every kind of
  development Kube environment, including Kind.

Signed-off-by: Rick Elrod <rick@elrod.me>
This commit is contained in:
Rick Elrod
2022-11-28 21:13:57 -06:00
parent 975582504d
commit 53fa791160
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ if 'sqlite3' not in DATABASES['default']['ENGINE']: # noqa
# this needs to stay at the bottom of this file # this needs to stay at the bottom of this file
try: try:
if os.getenv('AWX_KUBE_DEVEL', False): if os.getenv('AWX_KUBE_DEVEL', False):
include(optional('minikube.py'), scope=locals()) include(optional('development_kube.py'), scope=locals())
else: else:
include(optional('local_*.py'), scope=locals()) include(optional('local_*.py'), scope=locals())
except ImportError: except ImportError:

View File

@@ -1,4 +1,4 @@
BROADCAST_WEBSOCKET_SECRET = '🤖starscream🤖' BROADCAST_WEBSOCKET_SECRET = '🤖starscream🤖'
BROADCAST_WEBSOCKET_PORT = 8013 BROADCAST_WEBSOCKET_PORT = 8052
BROADCAST_WEBSOCKET_VERIFY_CERT = False BROADCAST_WEBSOCKET_VERIFY_CERT = False
BROADCAST_WEBSOCKET_PROTOCOL = 'http' BROADCAST_WEBSOCKET_PROTOCOL = 'http'