Skip to content

Commit

Permalink
Update ClowdEnv with new features (#55)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
kylape and bsquizz authored Jun 3, 2021
1 parent 93453b9 commit 668898f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions bonfire/bonfire.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from wait_for import TimedOutError

import bonfire.config as conf
from bonfire.qontract import get_apps_for_env, sub_refs
from bonfire.qontract import get_apps_for_env, sub_refs, get_secret_names_in_namespace
from bonfire.openshift import (
apply_config,
get_all_namespaces,
Expand Down Expand Up @@ -142,7 +142,8 @@ def _wait_on_namespace_resources(namespace, timeout, db_only=False):


def _prepare_namespace(namespace):
add_base_resources(namespace)
base_secret_names = get_secret_names_in_namespace(conf.BASE_NAMESPACE_NAME)
add_base_resources(namespace, base_secret_names)


_ns_reserve_options = [
Expand Down
2 changes: 1 addition & 1 deletion bonfire/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _get_config_path():
BASE_NAMESPACE_NAME = os.getenv("BASE_NAMESPACE_NAME", "ephemeral-base")
RESERVABLE_NAMESPACE_REGEX = re.compile(os.getenv("RESERVABLE_NAMESPACE_REGEX", r"ephemeral-\d+"))
EPHEMERAL_ENV_NAME = os.getenv("EPHEMERAL_ENV_NAME", "insights-ephemeral")
RECONCILE_TIMEOUT = os.getenv("RECONCILE_TIMEOUT", 180)
RECONCILE_TIMEOUT = os.getenv("RECONCILE_TIMEOUT", 300)
ENV_NAME_FORMAT = os.getenv("ENV_NAME_FORMAT", "env-{namespace}")


Expand Down
13 changes: 7 additions & 6 deletions bonfire/resources/ephemeral-clowdenvironment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,18 @@ objects:
port: 8000
mode: operator
featureFlags:
mode: none
mode: local
metrics:
port: 9000
mode: operator
path: "/metrics"
prometheus:
deploy: true
mode: operator
kafka:
namespace: default
clusterName: my-cluster
mode: local
mode: operator
# disable tls/auth for now until core apps are ready
enableLegacyStrimzi: true
db:
image: "registry.redhat.io/rhel8/postgresql-12:1-36"
mode: local
logging:
mode: none
Expand Down

0 comments on commit 668898f

Please sign in to comment.