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

Two small improvements #84

Merged
merged 2 commits into from
Dec 13, 2017
Merged

Two small improvements #84

merged 2 commits into from
Dec 13, 2017

Conversation

ensonic
Copy link
Contributor

@ensonic ensonic commented Dec 1, 2017

  • mentions dependencies in the docs
  • make the namespace attribute on k8s_object optional

@bazel-io
Copy link
Member

bazel-io commented Dec 1, 2017

Can one of the admins verify this patch?

README.md Outdated
## Dependencies

The rules will require the `kubectl` and `gcloud` tools when executing the `run`
action from bazel.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically gcloud isn't required unless you are using GCP.

@mattmoor
Copy link
Contributor

mattmoor commented Dec 1, 2017

Test this please

@mattmoor
Copy link
Contributor

mattmoor commented Dec 1, 2017

Thanks for the PR @ensonic

One small nit, but otherwise looks good. I'll merge it into a branch and then open a PR to merge things from there so our integration testing will run since Travis doesn't provide secrets unless the PR is from a branch on the main repo.

@ensonic
Copy link
Contributor Author

ensonic commented Dec 1, 2017

I'll update the doc patch. I run the tests, but this is probably not covered. I'll take another look and see if I can add a test for it.

@mattmoor
Copy link
Contributor

mattmoor commented Dec 1, 2017

Sorry, that comment was for Bazel CI (this is covered by Travis already) :)

@ensonic
Copy link
Contributor Author

ensonic commented Dec 13, 2017

Ping?

@mattmoor
Copy link
Contributor

Sorry I didn't realize you'd pushed more commits. If you can rebase I'll merge this into a branch so we can run CI, and then into master.

This is useful to know for setting up a hermetic build environment.
See bazelbuild#80
Only pass the --namespace parameter to kubectl if the namespace attribute
is specified. This will let people specify this in the deployment template
instead.

See bazelbuild#81
@ensonic
Copy link
Contributor Author

ensonic commented Dec 13, 2017

Rebased. I just addressed you comment for the README.

@mattmoor
Copy link
Contributor

Test this please

(for Bazel CI)

@mattmoor mattmoor changed the base branch from master to pr-84 December 13, 2017 17:34
@mattmoor mattmoor merged commit ed6e5bd into bazelbuild:pr-84 Dec 13, 2017
@mattmoor
Copy link
Contributor

Hmm, something is broken. I'm seeing:

error: arguments in resource/name form may not have more than one slash

@@ -23,5 +23,4 @@ function guess_runfiles() {

RUNFILES="${PYTHON_RUNFILES:-$(guess_runfiles)}"

kubectl --cluster="%{cluster}" --namespace="%{namespace}" delete \
-f %{unresolved}
kubectl --cluster="%{cluster}" %{namespace_arg} delete k8s/...-f %{unresolved}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k8s/... looks like the problem

mattmoor added a commit that referenced this pull request Dec 13, 2017
mattmoor added a commit that referenced this pull request Dec 14, 2017
@ensonic
Copy link
Contributor Author

ensonic commented Dec 14, 2017

Sorry about it. No idea how this ended up there. Thanks for testing all ops too. Fixed and rebased.

@ensonic
Copy link
Contributor Author

ensonic commented Dec 14, 2017

Oh, you merged already. Thanks for cleaning it up.

@mattmoor
Copy link
Contributor

Thanks for the PR :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants