Commit Graph

92 Commits

Author SHA1 Message Date
David Simansky 58f686bf92
Fix release script version calculation (#1737) 2022-09-21 15:41:10 +00:00
David Simansky bcd18d39f4
Fix OCI image build (#1666)
* Fix OCI image build

* Reflect review feedback
2022-04-29 11:48:53 +00:00
David Simansky 76a0b1e6bc
Fix display version in OCI image (#1662)
* Fix display version in OCI image

* Refactor ko ldflags to be used from env vars
2022-04-28 09:08:00 +00:00
kobayashi 587a4a8cb7
change display versions (#1601) 2022-03-01 05:25:42 -08:00
Murugappan Chetty af052088ca
remove hardcoded kn for usage and error (#1603)
* remove hardcoded kn for usage and error

* remove hardcoded kn for usage and error

* remove hardcoded kn for usage and error

* remove hardcoded kn for usage and error

* docs change
2022-02-17 02:07:13 -08:00
Paul Schweigert 569e027d98
Remove deprecated Hugo frontmatter generation for docs (#1563)
* removes deprecated hugo frontmatter generation

* changelog

* PR number

* remove emptyString
2022-01-10 08:40:59 -08:00
Chris Suszynski e7d7cad429
Allow overriding of build.sh for downstream projects (#1544) 2021-12-10 04:50:29 -08:00
David Simansky a736af7129
Combine update deps actions format manually (#1484)
* upgrade to latest dependencies

bumping knative.dev/eventing ff4bc40...5f69768:
  > 5f69768 upgrade to latest dependencies (# 5817)
  > a6a819d upgrade to latest dependencies (# 5812)
bumping knative.dev/networking c2191da...91e7d04:
  > 91e7d04 upgrade to latest dependencies (# 531)
  > 16ef524 upgrade to latest dependencies (# 529)
  > cc26c45 Update actions (# 530)
  > 0c6b765 Deprecate httpProtocol: "Disabled" in config-network (# 528)
bumping knative.dev/pkg fa2f8f1...3463dd7:
  > 3463dd7 upgrade to latest dependencies (# 2315)
  > a5bb759 upgrade to latest dependencies (# 2314)
  > e61a20d Update actions (# 2313)
  > 0e24b49 Format go code (# 2312)
bumping knative.dev/hack 815cd31...47ac3b0:
  > 47ac3b0 Split build tags that are in a comma separated list (# 83)
  > 8687668 [# 50] Add error message when Bash < 4 (# 79)
  > 8d79600 Fixes # 81 (# 82)
  > 51582ce fix misspelling functionallity -> functionality (# 78)
  > 675e1fd Correctly specify the user when creating clusterrolebinding for kind (# 80)
bumping knative.dev/serving 7c6d4bc...30087cd:
  > 30087cd upgrade to latest dependencies (# 12145)
  > e5d8560 Format go code (# 12139)
  > c9b2e25 upgrade to latest dependencies (# 12141)
  > ebdd09e Update actions (# 12140)
  > caced61 Update net-certmanager nightly (# 12138)
  > c6f1707 Add logic to retry pause/resume for pod freezer (# 12049)
  > 0780c10 Trust k8s readiness signal (# 12086)
  > 0592224 Update net-kourier nightly (# 12135)
  > 1cac17a Fix HTTP Redirect test for Contour (# 12124)
  > 8ecc7f9 Update net-istio nightly (# 12134)
  > f37a630 Update net-certmanager nightly (# 12133)
  > 04efc1e Update net-kourier nightly (# 12128)
  > 8cc9b0d upgrade to latest dependencies (# 12132)

* Update actions
2021-10-18 08:56:36 -07:00
Roland Huß a7a0534f44
Automatically set the proper version for the serving and eventing dependencies (#1462)
for `kn version`. This is now directly extracted from go.mod and
saves one manual step when doing the release.
2021-09-23 03:30:13 -07:00
Gunjan Vyas 5d4b4f3759
Fix windows e2e plugin tests (#1457)
* Fix windows e2e plugin tests

* Suggested changes
2021-09-21 09:54:37 -07:00
David Simansky 2e714510c5
Fix release script to published darwin/arm64 bits (#1427) 2021-08-12 11:40:35 -07:00
David Simansky fc7e87667f
Add support for multi-containers (#1382)
* Add support for multi-containers

* Update examples

* Fix UpdateContainers to match by name

* Add experimental note & tests

* Rename flag to --extra-containers

* Fix formatting

* Fix flag renaming leftovers

* Update pkg/kn/flags/podspec_test.go

Co-authored-by: Roland Huß <rhuss@redhat.com>

Co-authored-by: Roland Huß <rhuss@redhat.com>
2021-08-09 12:25:12 -07:00
Roland Huß 707fe77b58
Fix include and be more flexible for the script interpreter. (#1420)
Since we include now a test-infra script, which is Bash 4 based,
macOs user need to install Bash >= 4 e.g. via brew now.
The bash version coming with macOs is not good enough (3)
2021-08-05 08:06:52 -07:00
David Simansky 4e1297ac8f
Add lint check to build.sh script (#1414)
* Add lint check to build.sh script

* Fix golangci-lint repo url
2021-08-05 02:39:52 -07:00
Gunjan Vyas 712e0e4af1
Adding support for darwin/arm64 (#1401)
* Adding support for darwin/amd64

* Updating go version to 1.16 in go.mod
2021-07-27 17:14:16 -07:00
David Simansky 88fd3102a6
Remove force update of go-licenses binary (#1348) 2021-06-25 05:04:21 -07:00
David Simansky e23b4d626e
Update k8s dependencies to v0.20.7 (#1344)
* Update k8s dependencies to v0.20.7

* Update vendor dir

* Fix license dir

* Remove commented code

* Update knative deps

* Use scheme to add known types for dynamic client

* Update go-licenses in build script
2021-06-17 07:42:22 -07:00
Markus Thömmes 73f821907c
Drop --strict flag on ko (#1295) 2021-04-26 17:46:39 -07:00
David Simansky d44f25d350
feat: Add knb plugin build tool (#1226)
* feat: Add knb plugin build tool

* fix: Fix lint errors

* fix: Fix trailing whitespaces in readme

* fix: Fix error msg

* fix: Fix all error msg

* fix: Move knb to sub-dir tools/knb

* fix: Add new dir to sources

* fix: Reflect review feedback

* fix: Reflect review feedback in readme

* fix: Code formatting

* fix: Fix gosec errors
2021-03-08 00:22:21 -08:00
Navid Shaikh 174e41b628
client release v0.20.0 prep (#1189)
* Update deps for release v0.20.0

* Update version command

* Update CHANGELOG

* Run tests against serving and eventing v0.20.0

* Run tests against serving and eventing v0.20.0
2021-01-14 01:19:32 -08:00
Scott Nichols 2d44ce89e8
Integrate the gopath hacks to allow for codegen anywhere. (#1161) 2020-12-03 02:45:08 -08:00
Navid Shaikh b6a4deee4c
Remove unwanted var in hack/build.sh (#1147) 2020-12-01 10:54:37 -08:00
David Simansky dfbd81e2f3
fix(release): Fix checksum quoting (#1156) 2020-11-30 22:33:37 -08:00
Yaakov Selkowitz cc6c7216d2
Build and release binaries for linux/ppc64le (#1153) 2020-11-30 01:03:36 -08:00
Hyounggyu Choi 724b0bddb4
Cross-compile the kn binary for linux/s390x (#1083)
Co-authored-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
2020-11-24 11:51:35 -08:00
Roland Huß d1a1fc94ce
feat: Add checksums.txt to release to have the sha256 checksums published, too. (#1108)
* feat: Add checksums.txt to release to have the sha256 checksums published, too.

* chore: Remove check for sha256sum as we are requiring it now for the release.
2020-11-10 12:11:58 -08:00
Roland Huß 1b7985eac5
feature: Add Linux arm64 builds to the release (#1106)
* feature: Add Linux arm64 builds to the release

Fixes https://github.com/knative/client/issues/1101

* update link to PR in changelog.adoc
2020-11-10 03:45:58 -08:00
Scott Nichols d1552ee0a3
updating to use the hack repo (#1084)
* updating to use the hack repo

* eof

* you need to run update deps after codegen to pick up any new deps.

* do not reinvent update-deps.

* must be winter
2020-10-30 11:41:35 -07:00
Navid Shaikh ad4a7b18a2
Pin deps back to master (#1082)
* Update autoscaling annotation validation

 see ref: https://github.com/knative/serving/pull/9496

* Replace DeprecatedInjectionAnnotation with InjectionAnnotation

* Vendor deps at master

* Use context.TODO instead of context.Background
2020-10-30 08:15:35 -07:00
Roland Huß 2c6a4c667e
Fix bogus warning in build.sh (#1064) 2020-10-15 14:27:05 -07:00
Zhimin Xiang 574327f7db
Ping serving and eventing to release-0.18 (#1033) 2020-09-29 22:41:28 -07:00
Matt Moore a39903ba78
Run github.com/client9/misspell (#1030)
Signed-off-by: Matt Moore (via Sockpuppet) <mattmoor@vmware.com>
2020-09-25 07:45:44 -07:00
Zhimin Xiang 9b210e3be1
[Release-0.18] Pin knative deps to release-0.18 (#1025)
* Pin pkg to release-0.18 version

* ./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh

* bump k8s version to 1.18.8

* Fix the brokerage of importing latest serving

* exclude script/test-infra md from md check
2020-09-23 11:58:41 -07:00
Murugappan Chetty 77564112df
add e2e for h2c (#1000)
* add e2e for h2c

* add e2e for h2c

* add e2e for h2c

* add symlink for grpc example

* add symlinks

* add symlink
2020-09-11 03:32:00 -07:00
Adam Harwayne eda276b8a3
Pin knative/pkg to release-0.17 (#976)
* Pin pkg to release-0.17 branch.

* hack/update-deps.sh --upgrade

* Update hack/update-deps.sh for the test-infra section.

* hack/update-deps.sh --upgrade
2020-08-11 12:23:05 -07:00
Navid Shaikh 217a813344
Track floating deps at master (#932)
* Track floating deps at master

* Update kn version command
2020-07-15 07:42:32 -07:00
Roland Huß 490fe574cc
feat: Add plugin listing to "kn --help" (#929)
* feat: Add plugin listing to "kn --help"

This works on all levels. Test needs to be expanded still.

Fixes #266

* chore: Fix test

* Add test and ported #910 over.

* changelog update

* fix test

* Fix test

* fix integration tests

* fix test

* chore: Add some explanatory comments

* fix test
2020-07-14 13:38:33 -07:00
Navid Shaikh f91fb57f9a
kn v0.16.0 release prep (#922)
* Update unit test for invalid concurrency target value

* Vendor v0.16.0 eventing and serving

* Commit the LICENSES generated by hack/update-deps.sh

* Spare third_party dir from license check in hack/build.sh

* Update eventing and serving version for 'kn version'

* Use DeprecatedInjectionAnnotation key for backward compatibility

  Fixes #918
  Use DeprecatedInjectionAnnotation, i.e. "knative-eventing-injection"
  for reconciling broker via namespace labeling and trigger annotations.

  From eventing v0.16.0 release, this key is changed to "eventing.knative.dev/injection"
  however, older eventing installation wont recognize it. So we continue
  using the deprecated key until the sugar-controller would support reconciling
  on either keys.

* Fix(kn version): Display eventing.knative.dev at v1beta1 version

 We've been showing 'v1alpha1' in kn version while we actually
 vendor and refer v1beta1 for eventing.knative.dev

* chore(e2e): Run tests against serving/eventing v0.16.0 release

* Update test for concurrency-target to expect new error message

 the new error message for incorrect concurrency-target value contains "should be at least 0.01"

* Setup sugar-controller for released eventing version setup

 - reuse knative_setup util from common lib for latest-release CI setup

* Fix typo in YAML URL and add subheader for sugar-controller install
2020-07-10 10:41:19 -07:00
Nghia Tran 1fd2844f31
Pin to knative.dev/{pkg,eventing,serving}@release-16 (#921) 2020-07-08 04:15:47 -07:00
Murugappan Chetty f869b44d66
add kn export type (#856)
* add kn export type

* add kn export type

* add kn export type

* Update pkg/apis/client/register.go

Co-authored-by: Matt Moore <mattmoor@vmware.com>

* e2e test for kn export type

* e2e test for kn export type

* add new type for kn export

* rebase

* rebase

Co-authored-by: Roland Huß <rhuss@redhat.com>
Co-authored-by: Matt Moore <mattmoor@vmware.com>
Co-authored-by: Roland Huß <roland@ro14nd.de>
2020-06-18 02:33:25 -07:00
Roland Huß c7426459be
Refactor main flow and introduce explicit plugin and config handling (#877)
* Refactor main flow, plugin and configuration handling

* The plugin handling has been moved out of the `KnDefaultCommand` constructor where it was executed as a side-effect. The original code from `kubectl` suffers from the same issue that plugin handling is not a top-level concern but was very likely introduced as an after-thought. Instead, the plugin handling is done now by a `PluginManager` which is explicitly called in `main()`.
* Configuration and bootstrap option handling is centralized in the package `option`. After the bootstrap happened, the content of the configuration file, as well as any other global configuration, can be obtained from methods on  `config.GlobalConfig`. Also, all flag handling is delegated to cobra so that no own parsing is needed.
* Many of the logic in `pkg/kn/commands/plugin` for plugin management has been moved up to `pkg/kn/plugin` as this code is not only relevant for `plugin list` but also for the bootstrap process.

* fix: invalid subcommands will lead to a proper error message

* Update pkg/kn/config/types.go

Co-authored-by: Navid Shaikh <nshaikh@redhat.com>

* Update pkg/kn/plugin/manager.go

Co-authored-by: Navid Shaikh <nshaikh@redhat.com>

* Update hack/generate-docs.go

Co-authored-by: Navid Shaikh <nshaikh@redhat.com>

* Update hack/generate-docs.go

Co-authored-by: Navid Shaikh <nshaikh@redhat.com>

* chore: Add missing links

* chore: recert to shas in links in developer guide for now.

Co-authored-by: Navid Shaikh <nshaikh@redhat.com>
2020-06-15 09:15:24 -07:00
Roland Huß ff350fb6a7
Fix build.sh for macOs users (#883)
* Fix build.sh for macOs users

Fixes #882

* cleanup tempdir after installing
2020-06-09 06:42:32 -07:00
Dave Protasowski dfd65db9ab
bump k8s packages to 1.17.6 (#881)
* add script to bump k8s deps

* bump k8s to v1.17.6
2020-06-08 15:30:32 -07:00
Dave Protasowski a7ea77d106
Update go.mod to specify the module is go1.14 (#866)
* Update go.mod to specify the module is go1.14

Thus the go commands will default to -mod=vendor

See: https://golang.org/doc/go1.14#go-command

* install goimports as a tool

* drop mod=vendor usage as that's the default with go1.14

* remove comment about using -mod=vendor

* Revert "drop mod=vendor usage as that's the default with go1.14"

This reverts commit 567004d404bb7ebd39ed527dc75759cfc7db672f.

* Revert "remove comment about using -mod=vendor"

This reverts commit 2a71393a2015c1539be1503e0c52cf64283e12d0.

* Revert "install goimports as a tool"

This reverts commit 9616d5e2d2ab0d61e8454b1ace057ec9712e182d.

* use go_run_tool to run goimports

* inline go_run_tool

* include required env var REPO_ROOT_DIR
2020-06-08 13:40:32 -07:00
Roland Huß 3a242c7604
chore: Unpin dependencies to follow master again (#870)
Reset version to "master" and update-deps.sh --upgrade after branching off for release-0.15
2020-06-02 08:02:17 -07:00
Roland Huß fc6f379d94
chore: Preps for release 0.15.0 (#869) 2020-06-02 03:35:17 -07:00
Roland Huß b7fc4c3906
chore: Remove OWNERS files in vendor/ when updating deps (#867)
* chore: Remove OWNERS files in vendor/ when updating deps

* chore: Remove OWNERS also in build.sh
2020-06-01 19:25:03 -07:00
coryrc 2df459577e
Use test-infra direct insertion method (#840)
Now available from knative/test-infra repo directly.
2020-05-25 06:57:47 -07:00
dr.max df78b8b40c
(refactor) address the e2e extract / refactor of issue #763 (#765)
* (refactor) address the e2e extract / refactor of issue #763

* various updates to address reviewers feedback

* renamed lib/test/integration to lib/test and package to test
2020-04-01 09:21:18 -07:00
Matt Moore c0e5cd1d8d
golang format tools (#711)
Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -type f -name '*.go' -print)`
  `goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party)`
/assign maximilien rhuss
/cc maximilien rhuss
2020-03-09 07:45:28 -07:00