Skip to content

Commit

Permalink
Fix namespace labels in tilt (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankshah1607 authored Jul 2, 2024
1 parent cd94a9b commit 1d53678
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dev/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,19 @@ k8s_resource(
namespaces = sorted([namespace['name'] for namespace in config_yaml['namespaces']])
for namespace in namespaces:
namespace_create(namespace)
local('kubectl label namespace %s app.kubernetes.io/managed-by=everest --overwrite' % namespace)
k8s_resource(
objects=[
'%s:namespace' % namespace for namespace in namespaces
],
new_name='namespaces',
)

for namespace in namespaces:
local_resource('update-label-%s' % namespace,
cmd='kubectl label namespace %s --overwrite app.kubernetes.io/managed-by=everest' % namespace,
resource_deps = [
'namespaces',
])

#################################
## Install DB engine operators ##
Expand Down

0 comments on commit 1d53678

Please sign in to comment.