Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for urls in deploy.kubectl.manifests #1408

Merged
merged 1 commit into from
Dec 21, 2018

Conversation

r2d4
Copy link
Contributor

@r2d4 r2d4 commented Dec 20, 2018

apiVersion: skaffold/v1alpha5
kind: Config
build:
  artifacts:
  - image: gcr.io/k8s-skaffold/skaffold-example
deploy:
  kubectl:
    manifests:
      - https://raw.githubusercontent.com/GoogleContainerTools/skaffold/master/examples/getting-started/k8s-pod.yaml

@r2d4
Copy link
Contributor Author

r2d4 commented Dec 20, 2018

fixes #1408

@codecov-io
Copy link

Codecov Report

Merging #1408 into master will decrease coverage by 0.03%.
The diff coverage is 27.27%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1408      +/-   ##
==========================================
- Coverage   44.65%   44.61%   -0.04%     
==========================================
  Files         111      111              
  Lines        4546     4552       +6     
==========================================
+ Hits         2030     2031       +1     
- Misses       2311     2315       +4     
- Partials      205      206       +1
Impacted Files Coverage Δ
pkg/skaffold/deploy/kubectl.go 50.54% <16.66%> (-2.4%) ⬇️
pkg/skaffold/util/util.go 52.13% <40%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4da3012...37a9e5a. Read the comment docs.

1 similar comment
@codecov-io
Copy link

Codecov Report

Merging #1408 into master will decrease coverage by 0.03%.
The diff coverage is 27.27%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1408      +/-   ##
==========================================
- Coverage   44.65%   44.61%   -0.04%     
==========================================
  Files         111      111              
  Lines        4546     4552       +6     
==========================================
+ Hits         2030     2031       +1     
- Misses       2311     2315       +4     
- Partials      205      206       +1
Impacted Files Coverage Δ
pkg/skaffold/deploy/kubectl.go 50.54% <16.66%> (-2.4%) ⬇️
pkg/skaffold/util/util.go 52.13% <40%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4da3012...37a9e5a. Read the comment docs.

@r2d4
Copy link
Contributor Author

r2d4 commented Dec 20, 2018

--- FAIL: TestRun/bazel_example (5.85s)
    	run_test.go:183: skaffold: Starting build...
    		Building [gcr.io/k8s-skaffold/skaffold-bazel]...
    		Extracting Bazel installation...
    		Starting local Bazel server and connecting to it...
    		INFO: Invocation ID: 34c478e4-4ab3-444d-8651-f0d140f2f027
    		Loading:
    		Loading: 0 packages loaded
    		ERROR: error loading package '': Encountered error while reading extension file 'go/def.bzl': no such package '@io_bazel_rules_go//go': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
    		Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
    		ERROR: error loading package '': Encountered error while reading extension file 'go/def.bzl': no such package '@io_bazel_rules_go//go': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
    		Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
    		INFO: Elapsed time: 5.746s
    		INFO: 0 processes.
    		FAILED: Build did NOT complete successfully (0 packages loaded)
    		FAILED: Build did NOT complete successfully (0 packages loaded)
    		 Running [skaffold run --namespace skaffoldcntht]: stdout Starting build...
    		Building [gcr.io/k8s-skaffold/skaffold-bazel]...
    		Extracting Bazel installation...
    		Starting local Bazel server and connecting to it...
    		INFO: Invocation ID: 34c478e4-4ab3-444d-8651-f0d140f2f027
    		Loading:
    		Loading: 0 packages loaded
    		ERROR: error loading package '': Encountered error while reading extension file 'go/def.bzl': no such package '@io_bazel_rules_go//go': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
    		Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
    		ERROR: error loading package '': Encountered error while reading extension file 'go/def.bzl': no such package '@io_bazel_rules_go//go': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
    		Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
    		INFO: Elapsed time: 5.746s
    		INFO: 0 processes.
    		FAILED: Build did NOT complete successfully (0 packages loaded)
    		FAILED: Build did NOT complete successfully (0 packages loaded)
    		, stderr: time="2018-12-20T19:37:37Z" level=fatal msg="build step: building [gcr.io/k8s-skaffold/skaffold-bazel]: build artifact: running command: exit status 1"
    		, err: exit status 1: exit status 1

@r2d4 r2d4 added the kokoro:run runs the kokoro jobs on a PR label Dec 20, 2018
@balopat
Copy link
Contributor

balopat commented Dec 20, 2018

fixes #1408

fixes #1353

@kokoro-team kokoro-team removed the kokoro:run runs the kokoro jobs on a PR label Dec 20, 2018
@balopat
Copy link
Contributor

balopat commented Dec 20, 2018

Thank you for this @r2d4 :)

@ahmadnurus this overlaps with your implementation - but one thing I prefer about this approach is
that it keeps the config change minimal. Do you mind closing #1354?

@balopat
Copy link
Contributor

balopat commented Dec 21, 2018

I'm not sure I understand why the bazel example fails in kokoro only on this PR, but I'm looking.

@ghost
Copy link

ghost commented Dec 21, 2018

@balopat I don't know if you prefer with mininal config change. I can change my PR if you review my PR earlier. but it's ok to close my PR for this.

@balopat
Copy link
Contributor

balopat commented Dec 21, 2018

Thanks @ahmadnurus, sorry for the inconvenience!

@balopat
Copy link
Contributor

balopat commented Dec 21, 2018

It's super odd but I cannot reproduce this bazel failure on any other PRs - including a complete clone of this PR, locally on docker (cleaned from bazel cache, docker images, etc.). It must be a peculiar kokoro thing.

Copy link
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

Ignoring the bazel error as it seems to be a kokoro related flake.

@balopat balopat merged commit 328583e into GoogleContainerTools:master Dec 21, 2018
@ghost
Copy link

ghost commented Dec 22, 2018

np @balopat , tell me if any issue that i can take!

@ghost ghost mentioned this pull request Jun 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants