Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
pass visibility into k8s commands (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrig01 authored and fejta committed Jul 18, 2018
1 parent 5b351a6 commit db7a491
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions k8s/object.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -408,23 +408,29 @@ def k8s_object(name, **kwargs):
kwargs["image_target_strings"] = _deduplicate(kwargs.get("images", {}).values())

_k8s_object(name=name, **kwargs)
_reversed(name=name + ".reversed", template=kwargs.get("template"))
_reversed(name=name + ".reversed", template=kwargs.get("template"),
visibility=kwargs.get("visibility"))

if "cluster" in kwargs:
_k8s_object_create(name=name + ".create", resolved=name,
kind=kwargs.get("kind"), cluster=kwargs.get("cluster"),
user=kwargs.get("user"), namespace=kwargs.get("namespace"))
user=kwargs.get("user"), namespace=kwargs.get("namespace"),
visibility=kwargs.get("visibility"))
_k8s_object_delete(name=name + ".delete", reversed=name + ".reversed",
kind=kwargs.get("kind"), cluster=kwargs.get("cluster"),
user=kwargs.get("user"), namespace=kwargs.get("namespace"))
user=kwargs.get("user"), namespace=kwargs.get("namespace"),
visibility=kwargs.get("visibility"))
_k8s_object_replace(name=name + ".replace", resolved=name,
kind=kwargs.get("kind"), cluster=kwargs.get("cluster"),
user=kwargs.get("user"), namespace=kwargs.get("namespace"))
user=kwargs.get("user"), namespace=kwargs.get("namespace"),
visibility=kwargs.get("visibility"))
_k8s_object_apply(name=name + ".apply", resolved=name,
kind=kwargs.get("kind"), cluster=kwargs.get("cluster"),
user=kwargs.get("user"), namespace=kwargs.get("namespace"))
user=kwargs.get("user"), namespace=kwargs.get("namespace"),
visibility=kwargs.get("visibility"))
if "kind" in kwargs:
_k8s_object_describe(name=name + ".describe", unresolved=kwargs.get("template"),
kind=kwargs.get("kind"),
cluster=kwargs.get("cluster"),
user=kwargs.get("user"), namespace=kwargs.get("namespace"))
user=kwargs.get("user"), namespace=kwargs.get("namespace"),
visibility=kwargs.get("visibility"))

0 comments on commit db7a491

Please sign in to comment.