diff --git a/k8s/object.bzl b/k8s/object.bzl index 62eafabc..9a554305 100644 --- a/k8s/object.bzl +++ b/k8s/object.bzl @@ -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"))