Skip to content

Commit 668898f

Browse files
kylapebsquizz
andauthored
Update ClowdEnv with new features (#55)
* Update ClowdEnv with new features - Deploy prometheus - Deploy unleash - Use strimzi - Delete db image (I believe this is deprecated) * Fix 'namespace prepare' for debugging, increase reconcile timeout * Disable tls on strimzi until apps are ready Co-authored-by: Brandon Squizzato <bsquizza@redhat.com>
1 parent 93453b9 commit 668898f

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

bonfire/bonfire.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from wait_for import TimedOutError
1111

1212
import bonfire.config as conf
13-
from bonfire.qontract import get_apps_for_env, sub_refs
13+
from bonfire.qontract import get_apps_for_env, sub_refs, get_secret_names_in_namespace
1414
from bonfire.openshift import (
1515
apply_config,
1616
get_all_namespaces,
@@ -142,7 +142,8 @@ def _wait_on_namespace_resources(namespace, timeout, db_only=False):
142142

143143

144144
def _prepare_namespace(namespace):
145-
add_base_resources(namespace)
145+
base_secret_names = get_secret_names_in_namespace(conf.BASE_NAMESPACE_NAME)
146+
add_base_resources(namespace, base_secret_names)
146147

147148

148149
_ns_reserve_options = [

bonfire/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def _get_config_path():
5050
BASE_NAMESPACE_NAME = os.getenv("BASE_NAMESPACE_NAME", "ephemeral-base")
5151
RESERVABLE_NAMESPACE_REGEX = re.compile(os.getenv("RESERVABLE_NAMESPACE_REGEX", r"ephemeral-\d+"))
5252
EPHEMERAL_ENV_NAME = os.getenv("EPHEMERAL_ENV_NAME", "insights-ephemeral")
53-
RECONCILE_TIMEOUT = os.getenv("RECONCILE_TIMEOUT", 180)
53+
RECONCILE_TIMEOUT = os.getenv("RECONCILE_TIMEOUT", 300)
5454
ENV_NAME_FORMAT = os.getenv("ENV_NAME_FORMAT", "env-{namespace}")
5555

5656

bonfire/resources/ephemeral-clowdenvironment.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,18 @@ objects:
2222
port: 8000
2323
mode: operator
2424
featureFlags:
25-
mode: none
25+
mode: local
2626
metrics:
2727
port: 9000
28-
mode: operator
2928
path: "/metrics"
29+
prometheus:
30+
deploy: true
31+
mode: operator
3032
kafka:
31-
namespace: default
32-
clusterName: my-cluster
33-
mode: local
33+
mode: operator
34+
# disable tls/auth for now until core apps are ready
35+
enableLegacyStrimzi: true
3436
db:
35-
image: "registry.redhat.io/rhel8/postgresql-12:1-36"
3637
mode: local
3738
logging:
3839
mode: none

0 commit comments

Comments
 (0)