Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
260 commits
Select commit Hold shift + click to select a range
7522011
Refactor Readme
foot Aug 29, 2019
fa9bde0
Examples link should be relative to README
foot Aug 30, 2019
8ef21cf
Merge pull request #11 from weaveworks/revise-readme
foot Aug 30, 2019
6a7d7de
ci: Add release on tag with goreleaser
dlespiau Aug 29, 2019
ec04ca7
ci: Pass IMAGE_TAG to goreleaser
dlespiau Aug 29, 2019
048b540
release: Remove the brew tap uploader
dlespiau Aug 30, 2019
4b5abd8
Merge pull request #14 from weaveworks/2019-08-29-goreleaser
dlespiau Aug 30, 2019
019c670
Check to see if this is the latest version of wksctl (#16)
Aug 30, 2019
a0e7455
Return git tag instead of branch+hash if commit is tagged.
Sep 6, 2019
8299ada
Merge pull request #21 from weaveworks/use-git-tag-for-image
Sep 6, 2019
26a310c
wksctl init and changes to wksctl apply to use stored manifests (#18)
jrryjcksn Sep 6, 2019
b86702c
Update installation instuctions to use release binary (#20)
foot Sep 6, 2019
31bece8
add command documentation and fix two bugs (#23)
jrryjcksn Sep 6, 2019
81cdeb2
remove reference to personal github account (#26)
jrryjcksn Sep 9, 2019
67a4300
add some basic community information, link to resources
Sep 10, 2019
2ddf166
fix link to fluxctl docs
Sep 10, 2019
e0dd771
Merge pull request #29 from weaveworks/community-bits
Sep 11, 2019
3d7ab18
Merge branch 'master' into fix-links
Sep 11, 2019
6bc6a86
Merge pull request #31 from weaveworks/fix-links
Sep 11, 2019
7c04ed6
specs: extract to a new package, export symbols, improve constructor …
mflendrich Sep 10, 2019
58c2f60
addons: remove GetAddon() that brings no value now and makes refactor…
mflendrich Sep 11, 2019
cbba6e2
specs: split out GetClusterNamespace()
mflendrich Sep 11, 2019
e439fc3
utilities: extract PrintErrors()
mflendrich Sep 11, 2019
16477e0
apply, kubeconfig: refactor - simplify and untangle namespace choice.
mflendrich Sep 11, 2019
8ae8da7
style: use default imports ordering, remove commented out imports
mflendrich Sep 11, 2019
9cbb669
Merge pull request #34 from weaveworks/michal/2019-09-10-refactor-specs
mflendrich Sep 12, 2019
a98ab84
apply, plan: fix cross-command flag reading, simplify qualifyPath()
mflendrich Sep 11, 2019
7a82688
manifests: refactor: extract shared code to a new package `pkg/manife…
mflendrich Sep 12, 2019
ffa116c
manifests: refactor: PlainCloneContext() -> PlainClone()
mflendrich Sep 12, 2019
c21ba0f
apply: move verbatim to cmd/wksctl/apply
mflendrich Sep 12, 2019
8456406
wksctl: run globalPreRun globally, rename to configureLogger
mflendrich Sep 12, 2019
5b0328f
version: extract from main to pkg/version
mflendrich Sep 12, 2019
220622f
apply: add to rootCmd; refactor to struct
mflendrich Sep 12, 2019
a33b1c2
apply: change PersistentFlags() to Flags().
mflendrich Sep 12, 2019
7fe7159
apply: style: reorder flag definitions
mflendrich Sep 12, 2019
c35a722
plan: move to cmd/wksctl/plan; export; import from the main package
mflendrich Sep 12, 2019
11003e1
plan: extract `plan view` to cmd/wksctl/plan/view`
mflendrich Sep 12, 2019
f51c492
manifests: move cloneOptions tests following code move
mflendrich Sep 12, 2019
2524165
Merge pull request #39 from weaveworks/michal/2019-09-11-split-command
mflendrich Sep 12, 2019
3df9e3b
addon: delete ListAddons() that was a no-op abstraction
mflendrich Sep 12, 2019
e2e82f8
addon: move addon subcommands to subpackages - verbatim
mflendrich Sep 13, 2019
3e1ba52
addon/*: move tabWidth definition to local scope.
mflendrich Sep 13, 2019
19ee4c4
addon/*: wire commands together
mflendrich Sep 13, 2019
bfa3f2e
registry: move to subpackage - verbatim
mflendrich Sep 13, 2019
85ace7c
registry: wire commands
mflendrich Sep 13, 2019
f5e0049
Merge pull request #40 from weaveworks/michal/2019-09-12-split-addon-…
mflendrich Sep 13, 2019
9e36d76
make markdownlint happy
Sep 11, 2019
b6450e4
LICENSE is a more common file name than LICENSE.md
Sep 11, 2019
21500f2
unpack .tar.gz
Sep 11, 2019
058206e
standarizes usage of tar commands
dimitropoulos Sep 12, 2019
64bdc55
Merge pull request #35 from weaveworks/style-fixes
dimitropoulos Sep 13, 2019
401ca92
build: Make sure that the install targets depends on building wksctl
dlespiau Sep 12, 2019
822a147
seed: Don't apply a flux Secret if no SSH key is specified
dlespiau Sep 12, 2019
b4a6dfe
Merge pull request #42 from weaveworks/0.8.0-fix-install-target
dlespiau Sep 13, 2019
06a59dc
init: Don't add quotes to arguments
dlespiau Sep 13, 2019
f379ed1
apply: Provide more context when failing to clone the repository
dlespiau Sep 12, 2019
02737bc
init: Use strings so the test framework doesn't show us an hexdump
dlespiau Sep 13, 2019
4269a26
init: Fix the tests now that we don't add the quotes
dlespiau Sep 13, 2019
9f066dd
wksctl: Propage more errors instead of usng log.Fatal
dlespiau Sep 13, 2019
06f389c
Merge pull request #45 from weaveworks/2019-09-13-clone-error-more-co…
dlespiau Sep 13, 2019
7e6e204
Merge pull request #43 from weaveworks/0.8.0-no-secret
dlespiau Sep 13, 2019
ee62741
Merge pull request #44 from weaveworks/0.8.0-fix-init-arg-replacement
dlespiau Sep 13, 2019
fefe7bf
build: Update go.mod/sum
dlespiau Sep 13, 2019
f5350fc
build: Restaure go.mod as seen by go 1.12.1
dlespiau Sep 13, 2019
8d57dfe
version: move to new package: cmd/wksctl/version
mflendrich Sep 16, 2019
b896eb2
bashcompletions, zshcompletions: move to subpackages
mflendrich Sep 16, 2019
6550fea
apply-addons: bugfix: namespace was copied from an uninitialized flag…
mflendrich Sep 16, 2019
959dafe
kubeconfig: extract path.Kubeconfig() from pkg main
mflendrich Sep 16, 2019
c96fb46
kubeconfig: move to new package: cmd/wksctl/kubeconfig
mflendrich Sep 16, 2019
eee8999
apply-addons: move to new package: cmd/wksctl/applyaddons
mflendrich Sep 16, 2019
65127cb
init: move to new package: cmd/wksctl/init
mflendrich Sep 16, 2019
5d3efe2
wksctl: replace PersistentFlags() with Flags() where there's no inher…
mflendrich Sep 16, 2019
10f0b74
Merge pull request #48 from weaveworks/michal/2019-09-16-move-remaini…
mflendrich Sep 16, 2019
375de63
assets generator: Fix Go package layout, prevent Go module flicker
mflendrich Sep 16, 2019
1264fb1
Merge pull request #50 from weaveworks/michal/2019-09-16-assets-fix-m…
mflendrich Sep 16, 2019
9fc8c3a
kubeconfig: refactor: export generateConfig -> config.GetRemoteKubeco…
mflendrich Sep 16, 2019
7b22a73
kubeconfig: import the right package (`log` -> `logrus`)
mflendrich Sep 16, 2019
fbfa65d
Merge pull request #49 from weaveworks/michal/2019-09-16-refa-generat…
mflendrich Sep 16, 2019
230fd94
move checkpoint information to FAQ doc
Sep 13, 2019
b12fa1d
CONTRIBUTING: make markdownlint happy
Sep 13, 2019
66ea1cd
fix typo
Sep 13, 2019
7e91a23
move development bits to separate doc
Sep 13, 2019
3fc4c45
move examples/ guides to docs/
Sep 13, 2019
93ee9af
break out get-started doc
Sep 13, 2019
63c211a
document wksctl idea/features
Sep 16, 2019
4e3bfe7
gitignore: unignore *_vfsdata.go.
mflendrich Sep 16, 2019
6bea418
vfsgen: add all the files `go generate`d during the build process
mflendrich Sep 16, 2019
8023cc6
ci: add a check that fails if building modifies/creates files
mflendrich Sep 16, 2019
adaca9b
Merge pull request #51 from weaveworks/michal/2019-09-16-commit-gener…
mflendrich Sep 16, 2019
d38d63a
Update docs/get-started.md
Sep 16, 2019
d6fb59a
Merge branch 'master' into fix-38
Sep 16, 2019
5f56d8f
Merge pull request #46 from weaveworks/fix-38
Sep 16, 2019
009b7f3
config: fix GetRemoteKubeconfig return value
mflendrich Sep 16, 2019
d3d1fe0
GetRemoteKubeconfig: remove unused argument
mflendrich Sep 16, 2019
db3ffe9
specs: port external development into OSS wksctl
mflendrich Sep 16, 2019
3af59be
Merge pull request #53 from weaveworks/michal/2019-09-16-small-fixes
mflendrich Sep 17, 2019
4177a0b
apply: refactor: simplify the defer call
mflendrich Sep 17, 2019
b794cc2
apply: refactor: no longer rewrite a flag value in runtime
mflendrich Sep 17, 2019
39fa772
manifests: fix path bug; refactor cluster-api repo cloning.
mflendrich Sep 17, 2019
368f7d2
kubeconfig: unify cluster-api manifest retrieval with `apply`
mflendrich Sep 17, 2019
6400f69
apply: error message: fix function name
mflendrich Sep 17, 2019
c6767c1
plan view: delete the unused (and buggy) `--sealed-secret-key` flag
mflendrich Sep 17, 2019
be65304
plan view: unify cluster-api manifest retrieval with `apply`; simplif…
mflendrich Sep 17, 2019
9e62230
typo
mflendrich Sep 17, 2019
9e38bc6
rename: cpath -> clusterPath, mpath -> machinesPath
mflendrich Sep 17, 2019
d2bae27
code duplication: update TODOs with a link to a GH issue #58
mflendrich Sep 17, 2019
a9089fa
Merge pull request #55 from weaveworks/michal/2019-09-17-fix-git-paths
mflendrich Sep 17, 2019
11e0529
Merge branch 'release/0.8.0'
mflendrich Sep 18, 2019
1b313bd
version: set default ImageTag to 0.8.0-beta.1, improve the comment
mflendrich Sep 17, 2019
728b638
Merge pull request #60 from weaveworks/michal/2019-09-17-default-imag…
mflendrich Sep 18, 2019
5d121ab
add initial rtd support
Sep 16, 2019
b12ba0f
test links in docs in CircleCI
Sep 16, 2019
1564c74
add missing docs/_static directory
Sep 16, 2019
a9dfa96
typo fix
Sep 16, 2019
8fb17f2
fix link by referring to firekube demo instead
Sep 16, 2019
1056a7c
add .readthedocs.yml
Sep 18, 2019
da7e50e
change links to wksctl.rtfd.io
Sep 18, 2019
86cdb09
readd parts of wks-and-footloose doc after feedback from Damien
Sep 18, 2019
a08fb57
rename .yml to .yaml - that's supported too
Sep 18, 2019
9e14d27
document how to document
Sep 18, 2019
5f32d89
unwrap lines
Sep 18, 2019
246de31
fix firekube link
Sep 18, 2019
5db5702
Merge pull request #52 from weaveworks/rtd-support
Sep 18, 2019
40d16e1
friendlier headings
Sep 18, 2019
fe3f6cb
Merge pull request #62 from weaveworks/improve-toc
Sep 19, 2019
cab2ce2
Remove the default override value (#67)
Sep 20, 2019
73c9aec
release: Update the location of the Version and ImageTag variables
dlespiau Sep 20, 2019
bf35424
Merge pull request #69 from weaveworks/2019-09-20-release-version-pac…
dlespiau Sep 20, 2019
cc11066
adds shorthand -v flag for view command
dimitropoulos Sep 19, 2019
38b2c60
adds shorthand -v flag for kubeconfig command
dimitropoulos Sep 19, 2019
362bfdb
adds shorthand -v flag for apply command
dimitropoulos Sep 19, 2019
b054b59
reflects reality that the `verbose` flag is not global
dimitropoulos Sep 19, 2019
50427f9
Revert "reflects reality that the `verbose` flag is not global"
dimitropoulos Sep 19, 2019
b3a1183
Merge pull request #65 from weaveworks/dimitri/verbose-shorthand-flag
dimitropoulos Sep 20, 2019
d24a8cb
Add MAINTAINERS file
fbarl Sep 20, 2019
3f9ad41
Merge pull request #70 from weaveworks/30-add-maintainers-file
Sep 23, 2019
f769d61
updates name of product as reported in CLI binary
dimitropoulos Sep 23, 2019
49ff9e5
updates name of product as written in the root README.md
dimitropoulos Sep 23, 2019
7685e01
Merge pull request #75 from weaveworks/dimitri/product-name
dimitropoulos Sep 24, 2019
7d31bff
os: Remove a redundant if
dlespiau Sep 20, 2019
2ba043e
os: Fallback to the image tag for the controller version
dlespiau Sep 20, 2019
73f8031
build: Do not publish the docs Docker image
dlespiau Sep 20, 2019
697d977
os: Use ControllerParams in wksControllerManifest
dlespiau Sep 24, 2019
c03bc8d
Merge pull request #73 from weaveworks/2019-09-20-controller-version-…
dlespiau Sep 24, 2019
77d20dd
Uncomment all the integration tests
fbarl Sep 25, 2019
e18f63b
Corrected the tar syntax
fbarl Sep 25, 2019
6e671bb
Fixes integration tests
foot Sep 26, 2019
fee2c2b
Corrects path when cleaning up integration tests
foot Sep 26, 2019
b0d166e
Disabled gcp tests again for now
foot Sep 26, 2019
228aa95
Remove redundant instructions/comments for local-docker-registry
fbarl Sep 26, 2019
6a860c0
Merge pull request #81 from weaveworks/56-enable-integration-tests
Sep 26, 2019
b2e39bb
Don't reveal env in CI
foot Sep 26, 2019
336552c
Cycle the ssh keys for wksctl
foot Sep 26, 2019
cca7259
Enable gcp tests
foot Sep 26, 2019
c3e7cc4
Adds link to tests dashboard!
foot Sep 27, 2019
4cac3f2
Merge pull request #84 from weaveworks/enable-gcp-tests
foot Sep 27, 2019
795467e
change to #wksctl slack (#86)
Sep 30, 2019
0e7068a
manifests: bugfix: return the fq path from MachinesManifestPath() + t…
mflendrich Oct 1, 2019
9d38d9e
Merge pull request #87 from weaveworks/michal/2019-10-01-bugfix-machi…
mflendrich Oct 1, 2019
b37ab15
ssh client: refactor: rename Verbose -> PrintOutputs to better reflec…
mflendrich Oct 2, 2019
12bcdb0
ssh client: refactor: move from SpecsGetSSHClient() to ssh.NewClientF…
mflendrich Oct 3, 2019
1f46fbc
specs: delete GetSSHKeyPath
mflendrich Oct 3, 2019
432f82d
specs: sshKeyPath validation: switch from requiring non-empty to requ…
mflendrich Oct 3, 2019
3c6e010
cluster-api: rename SSHKeyPath -> DeprecatedSSHKeyPath
mflendrich Oct 3, 2019
f79fddc
apply, kubeconfig, plan view: add flag --ssh-key
mflendrich Oct 3, 2019
2b90112
examples: remove sshKeyPath + docs
mflendrich Oct 3, 2019
965c32a
container-test, integration-test: retire sshKeyPath as a clusterapi f…
mflendrich Oct 3, 2019
75f89d5
Merge pull request #90 from weaveworks/michal/2019-10-03-clusterapi-d…
mflendrich Oct 7, 2019
1e2a000
implement profile enabile and disable
chanwit Oct 1, 2019
1e3e9c1
Merge pull request #88 from weaveworks/feature-profile
chanwit Oct 9, 2019
c20443b
Fix errors being thrown
bobhenkel Oct 9, 2019
2a80da7
Footloose scaling (#94)
jrryjcksn Oct 9, 2019
0aa1c31
Update examples/gce/generate-machines-manifest.js
bobhenkel Oct 10, 2019
7f87ce4
Update examples/gce/generate-machines-manifest.js
bobhenkel Oct 10, 2019
b1bf852
Merge branch 'master' into master
bobhenkel Oct 10, 2019
744553f
Merge pull request #96 from bobhenkel/master
Oct 10, 2019
03f5226
doc: add how to ssh into a machine
chanwit Oct 14, 2019
53e4e88
Merge pull request #101 from weaveworks/doc_ssh
chanwit Oct 14, 2019
2848db0
fix display error messages twice
chanwit Oct 12, 2019
757a15f
go lint
chanwit Oct 13, 2019
32f6701
Merge pull request #99 from weaveworks/fix_profile_display_err
chanwit Oct 15, 2019
374a367
addon: implement flux helm operator add-on
chanwit Oct 15, 2019
07f3d20
Merge pull request #103 from weaveworks/flux_helm_op_addon
chanwit Oct 25, 2019
6d0d192
implement file ignore in the profile enable process
chanwit Oct 25, 2019
dbf21d2
Merge pull request #104 from weaveworks/support_ignore_file
chanwit Oct 29, 2019
5554841
add --with-helm option for profile enable
chanwit Oct 31, 2019
22dd0e9
Merge pull request #105 from weaveworks/enable_with_helm
chanwit Nov 25, 2019
7e2f6eb
update sphinx bits
Jan 2, 2020
69d98f1
Merge pull request #114 from weaveworks/doc-updates
Jan 2, 2020
352a07d
ensure initial master has associated plan so it will not be re-provis…
jrryjcksn Jan 15, 2020
aae487e
fix .goreleaser to match new project format containing a list of arch…
jrryjcksn Jan 15, 2020
3af6ff3
allow specification of initial kubelet version in machines file (#122)
jrryjcksn Jan 23, 2020
54bdbca
Upgrade other nodes in place (#123)
jrryjcksn Jan 25, 2020
1f74c8b
fixup "git-deploy-key" path in docs
yebyen Jan 26, 2020
f7220fb
Allow explicit specification of controller version for use by "wk" (#…
jrryjcksn Jan 29, 2020
684a8fb
allow specifying version with --controller-version or --dependency-fi…
jrryjcksn Feb 5, 2020
c83a60d
Merge branch 'master' into git-deloy-key
Feb 12, 2020
596609c
Merge pull request #125 from kingdonb/git-deloy-key
Feb 12, 2020
2cd086a
Fix footloose reference to meet stricter checks in Go 1.13
bboreham Feb 11, 2020
2ea3f81
Merge pull request #133 from weaveworks/fix-footloose-ref
bboreham Feb 12, 2020
3f7e0a1
wrong directory (#134)
johnnyrun Feb 28, 2020
1affe23
Remove Damien and Michal add Bryan and Chanwit (#139)
Feb 28, 2020
585ce2c
Wkp 134 update docs (#143)
Mar 2, 2020
493881b
fix external load balancer for HA and upgrading process (#128)
chanwit Mar 3, 2020
7912852
Remove shadow verbose flag. (#147)
Mar 9, 2020
3c73f94
Adds eksctl functions to write and merge kubeconfig files
dinosk Mar 10, 2020
3620b63
Merge pull request #150 from weaveworks/WKP-46/handling-kubeconfig-files
dinosk Mar 13, 2020
9091bea
move to mkdocs
Mar 24, 2020
4d263a4
Merge pull request #153 from weaveworks/move-to-mkdocs
Mar 25, 2020
4fadd4a
Added a complete description of the apply command (#151)
staceypotter Mar 25, 2020
c50a55d
Updates sealed secret controller manifest to v0.11.0
dinosk Mar 26, 2020
fbefdd4
Merge pull request #155 from weaveworks/WKP-348/upgrade-sealed-secret…
dinosk Mar 30, 2020
6490948
Install Sealed Secrets CRD before controller
dinosk Mar 30, 2020
7fec655
Merge pull request #161 from weaveworks/fix-sealed-secrets-installati…
dinosk Mar 30, 2020
f04984f
fix centos test incorrectly running ubuntu
Mar 30, 2020
27ba211
set USE_IMAGE=1 for centos integration test
Mar 30, 2020
e3efbf5
set CREATE_IMAGE=1 for centos integration test
Mar 30, 2020
0921ca7
deprecate use_or_create_image and replace with use_image
Mar 30, 2020
d681703
add comments
Mar 30, 2020
dd22188
update vfsdata
Mar 30, 2020
8c7a98e
Merge pull request #158 from weaveworks/fix-centos-integration-test
Mar 31, 2020
5ac6b0c
add rhel support
Jan 24, 2020
dea5eab
temp disable container-selinux install
Mar 31, 2020
05f2666
remove install of container-selinux
Mar 31, 2020
635dc25
integration tests - preemptible, no restarts, self-destruct in 48h
Mar 31, 2020
3a6f2ed
Merge pull request #162 from weaveworks/preemptible-vms-for-integrati…
Mar 31, 2020
82a62c8
Merge branch 'master' into add-rhel-support
Mar 31, 2020
de79207
Merge pull request #156 from weaveworks/add-rhel-support
Mar 31, 2020
b3826ce
fix selinux permissive check to avoid node re-provision
chanwit Feb 19, 2020
845e643
improve test cases to support selinux permissive detection
chanwit Feb 22, 2020
e2f5ec7
separate semantics of detecting selinux installation from selinux mode
chanwit Mar 26, 2020
fcf5e1f
make comment more clear on set selinux permissive after installing do…
chanwit Mar 26, 2020
76e6a30
use selinux permissive flag check in the build cri plan
chanwit Mar 26, 2020
e52f89b
remove a left over comment
chanwit Mar 27, 2020
70dc9a8
improve comment for the IsSELinuxMode method
chanwit Mar 31, 2020
064057d
Merge pull request #137 from weaveworks/fix_selinux_permissive
chanwit Mar 31, 2020
ce42fc2
update doc packages, as we're using pre-release versions
Mar 30, 2020
077bc81
check top-level markdown docs too
Mar 30, 2020
01bbce0
fix liche usage
Mar 30, 2020
8071ecb
fix link
Mar 30, 2020
1a1d5f2
Attempt to fix build failure in forked PRs (#154)
jrryjcksn Apr 6, 2020
88072ae
Merge branch 'master' into update-docs-bits
Apr 7, 2020
74271bd
Merge pull request #157 from dholbach/update-docs-bits
Apr 7, 2020
739e94e
only report broken links, too much scolling on https://github.com/wea…
Apr 7, 2020
8e6dafb
exclude rtfd links - we're controlling them using THIS repository
Apr 7, 2020
05b156d
Merge pull request #164 from dholbach/change-liche-args
Apr 7, 2020
c4137b8
Update vagrant example (#142)
srstsavage Apr 7, 2020
df8335e
Fix wks home to reenable dot wks dir (#165)
jrryjcksn Apr 7, 2020
585d64c
Move path lib to github.com/mitchellh/go-homedir
stealthybox Apr 8, 2020
2f1c741
Add path.Prettify() to output tilde prefixed paths
stealthybox Apr 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
284 changes: 166 additions & 118 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ workflows:
- integration-tests-gcp-ubuntu:
requires:
- build
- integration-tests-gcp-rhel:
requires:
- build
- release:
requires:
- build
- unit-tests
filters:
branches:
ignore: /.*/
tags:
only: /.*/

jobs:
build:
Expand All @@ -37,22 +49,25 @@ jobs:
- setup_remote_docker
- run: make
- run: make lint
- deploy:
name: Push wksctl to S3
- run:
name: Check that generated files haven't been changed since checkout
command: |
TAG=${CIRCLE_TAG}
if [ -z "$TAG" ]; then
TAG=$(./tools/image-tag)
fi
echo "The following files have been modified since checkout or are unknown to Git:"
! (git status --porcelain | grep -E '^( M)|(??)')
- persist_to_workspace:
root: .
paths:
- kubectl
- cmd/wksctl/wksctl
- cmd/mock-https-authz-server/server
# - run: docker login -u "$DOCKER_USER" -p "$DOCKER_PASSWORD" quay.io
# - run: make push

- run:
# Allow builds from forks
name: Push image if quay login is available
command: |
if [ -n "$QUAY_IO_USER" -a -n "$QUAY_IO_PASSWORD" ]; then
docker login -u "$QUAY_IO_USER" -p "$QUAY_IO_PASSWORD" quay.io
make push
fi
unit-tests:
docker:
- image: quay.io/wks/build:master-134af34f
Expand All @@ -77,6 +92,13 @@ jobs:
command: |
go version
make unit-tests

release:
<<: *defaults
steps:
- checkout
- run: curl -sL https://git.io/goreleaser | IMAGE_TAG=`tools/image-tag` bash

container-tests:
machine:
docker_layer_caching: true
Expand All @@ -88,20 +110,19 @@ jobs:
SRCDIR: /home/circleci/src/github.com/weaveworks/wksctl
working_directory: /home/circleci/src/github.com/weaveworks/wksctl
steps:
# - checkout
# - run:
# name: Install go
# command: |
# (cd ~ && curl -L $GOURL -o go.tar.gz && echo "$GOCHECKSUM go.tar.gz" | sha256sum -c)
# mkdir -p $GOROOT && tar xf ~/go.tar.gz -C $GOROOT --strip-components 1
- checkout
- run:
name: Install go
command: |
(cd ~ && curl -L $GOURL -o go.tar.gz && echo "$GOCHECKSUM go.tar.gz" | sha256sum -c)
mkdir -p $GOROOT && tar xf ~/go.tar.gz -C $GOROOT --strip-components 1

# - run:
# name: Run container tests
# command: |
# export PATH=$GOROOT/bin:$PATH
# go version
# make container-tests
- run: "true"
- run:
name: Run container tests
command: |
export PATH=$GOROOT/bin:$PATH
go version
make container-tests
integration-tests-container:
machine:
docker_layer_caching: true
Expand All @@ -119,50 +140,53 @@ jobs:
KUBECTL_CHECKSUM: da9d557989a0b9671a610f21642052febb8f70c3cf144c98a8a4f7ecab6bafe2
working_directory: /home/circleci/src/github.com/weaveworks/wksctl
steps:
# - checkout
# - run:
# name: Install go
# command: |
# (cd ~ && curl -L $GOURL -o go.tar.gz && echo "$GOCHECKSUM go.tar.gz" | sha256sum -c)
# mkdir -p $GOROOT && tar xf ~/go.tar.gz -C $GOROOT --strip-components 1
# - run:
# name: Install hugo
# command: |
# curl -L $HUGO_URL -o hugo.tar.gz
# echo "$HUGO_CHECKSUM hugo.tar.gz" | sha256sum -c
# tar xzf hugo.tar.gz hugo
# chmod +x hugo
# sudo mv hugo /usr/local/bin
# - run:
# name: Install footloose
# command: |
# curl -L $FOOTLOOSE_URL -o footloose
# echo "$FOOTLOOSE_CHECKSUM footloose" | sha256sum -c
# chmod +x footloose
# sudo mv footloose /usr/local/bin
# - run:
# name: Install kubectl
# command: |
# curl -L $KUBECTL_URL -o kubectl.tar.gz
# echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
# tar xvzf kubectl.tar.gz --strip-components=3
# sudo mv kubectl /usr/local/bin
# - restore_cache:
# keys:
# - local-docker-registry-images
# - run:
# name: Run integration container tests
# command: |
# export PATH=$GOROOT/bin:$PATH
# go version
# make integration-tests-container
# - save_cache:
# key: local-docker-registry-images
# paths:
# # This ought to match the path mounted by the local Docker registry
# # in the integration tests.
# - "/tmp/registry"
- run: "true"
- checkout
- run:
name: Install go
command: |
(cd ~ && curl -L $GOURL -o go.tar.gz && echo "$GOCHECKSUM go.tar.gz" | sha256sum -c)
mkdir -p $GOROOT && tar xf ~/go.tar.gz -C $GOROOT --strip-components 1
- run:
name: Install hugo
command: |
curl -L $HUGO_URL -o hugo.tar.gz
echo "$HUGO_CHECKSUM hugo.tar.gz" | sha256sum -c
tar xzf hugo.tar.gz hugo
chmod +x hugo
sudo mv hugo /usr/local/bin
- run:
name: Install footloose
command: |
curl -L $FOOTLOOSE_URL -o footloose
echo "$FOOTLOOSE_CHECKSUM footloose" | sha256sum -c
chmod +x footloose
sudo mv footloose /usr/local/bin
- run:
name: Install kubectl
command: |
curl -L $KUBECTL_URL -o kubectl.tar.gz
echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
tar xvzf kubectl.tar.gz --strip-components=3
sudo mv kubectl /usr/local/bin
- restore_cache:
keys:
- local-docker-registry-images
- run:
name: Run integration container tests
command: |
export PATH=$GOROOT/bin:$PATH
go version
make integration-tests-container
- save_cache:
key: local-docker-registry-images
paths:
# This ought to match the path mounted by the local Docker registry
# in the integration tests.
- "/tmp/registry"
#
# GCP tests are running under the `wks-tests` project for now.
# https://console.cloud.google.com/compute/instances?project=wks-tests
#
integration-tests-gcp-centos:
docker:
- image: quay.io/wks/build:master-134af34f
Expand All @@ -171,39 +195,32 @@ jobs:
SRCDIR: /src/github.com/weaveworks/wksctl
KUBECTL_URL: https://dl.k8s.io/v1.10.5/kubernetes-client-linux-amd64.tar.gz
KUBECTL_CHECKSUM: da9d557989a0b9671a610f21642052febb8f70c3cf144c98a8a4f7ecab6bafe2
CREATE_IMAGE: 0
USE_IMAGE: 0
CREATE_IMAGE: 1
USE_IMAGE: 1
IMAGE_NAME: centos-cloud/centos-7
working_directory: /src/github.com/weaveworks/wksctl
steps:
# - checkout
# - setup_remote_docker

# - attach_workspace:
# at: /tmp/workspace
# - run: /tmp/workspace/cmd/wksctl/wksctl version
# - run: env

# - run:
# name: Install kubectl
# command: |
# curl -L $KUBECTL_URL -o kubectl.tar.gz
# echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
# tar xvzf kubectl.tar.gz --strip-components=3
# sudo mv kubectl /usr/local/bin

# - run:
# name: Create VMs
# command: $SRCDIR/test/integration/bin/up.sh

# - run:
# name: Run integration tests
# command: $SRCDIR/test/integration/bin/test.sh
- checkout
- setup_remote_docker

# - run:
# name: Destroy VMs
# command: $SRCDIR/test/integration/bin/down.sh
# when: always
- attach_workspace:
at: /tmp/workspace
- run: /tmp/workspace/cmd/wksctl/wksctl version
- run:
name: Install kubectl
command: |
curl -L $KUBECTL_URL -o kubectl.tar.gz
echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
tar xvzf kubectl.tar.gz --strip-components=3
sudo mv kubectl /usr/local/bin
- run:
name: Centos integration tests
command: |
if [ -n "$SECRET_KEY" ]; then
$SRCDIR/test/integration/bin/up.sh
$SRCDIR/test/integration/bin/test.sh
$SRCDIR/test/integration/bin/down.sh
fi
- run: "true"
integration-tests-gcp-ubuntu:
docker:
Expand All @@ -218,32 +235,63 @@ jobs:
IMAGE_NAME: ubuntu-os-cloud/ubuntu-1804-bionic-v20190530
working_directory: /src/github.com/weaveworks/wksctl
steps:
# - checkout
# - setup_remote_docker
- checkout
- setup_remote_docker

# - attach_workspace:
# at: /tmp/workspace
# - run: /tmp/workspace/cmd/wksctl/wksctl version
# - run: env
- attach_workspace:
at: /tmp/workspace
- run: /tmp/workspace/cmd/wksctl/wksctl version
- run:
name: Install kubectl
command: |
curl -L $KUBECTL_URL -o kubectl.tar.gz
echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
tar xvzf kubectl.tar.gz --strip-components=3
sudo mv kubectl /usr/local/bin

# - run:
# name: Install kubectl
# command: |
# curl -L $KUBECTL_URL -o kubectl.tar.gz
# echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
# tar xvzf kubectl.tar.gz --strip-components=3
# sudo mv kubectl /usr/local/bin
- run:
name: Ubuntu integration tests
command: |
if [ -n "$SECRET_KEY" ]; then
$SRCDIR/test/integration/bin/up.sh
$SRCDIR/test/integration/bin/test.sh
$SRCDIR/test/integration/bin/down.sh
fi
- run: "true"
integration-tests-gcp-rhel:
docker:
- image: quay.io/wks/build:master-134af34f
environment:
GOPATH: /go/
SRCDIR: /src/github.com/weaveworks/wksctl
KUBECTL_URL: https://dl.k8s.io/v1.10.5/kubernetes-client-linux-amd64.tar.gz
KUBECTL_CHECKSUM: da9d557989a0b9671a610f21642052febb8f70c3cf144c98a8a4f7ecab6bafe2
CREATE_IMAGE: 1
USE_IMAGE: 1
IMAGE_NAME: rhel-cloud/rhel-7
working_directory: /src/github.com/weaveworks/wksctl
steps:
- checkout
- setup_remote_docker

# - run:
# name: Create VMs
# command: $SRCDIR/test/integration/bin/up.sh
- attach_workspace:
at: /tmp/workspace
- run: /tmp/workspace/cmd/wksctl/wksctl version
- run:
name: Install kubectl
command: |
curl -L $KUBECTL_URL -o kubectl.tar.gz
echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
tar xvzf kubectl.tar.gz --strip-components=3
sudo mv kubectl /usr/local/bin

# - run:
# name: Run integration tests
# command: $SRCDIR/test/integration/bin/test.sh
- run:
name: rhel integration tests
command: |
if [ -n "$SECRET_KEY" ]; then
$SRCDIR/test/integration/bin/up.sh
$SRCDIR/test/integration/bin/test.sh
$SRCDIR/test/integration/bin/down.sh
fi

# - run:
# name: Destroy VMs
# command: $SRCDIR/test/integration/bin/down.sh
# when: always
- run: "true"
28 changes: 28 additions & 0 deletions .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# https://github.com/marketplace/actions/link-checker
on: [push, pull_request]
name: Check links in docs
jobs:
linkChecker:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Build docs for link check
run: mkdocs build
- name: Link Checker
id: lc
uses: peter-evans/link-checker@v1
with:
args: -r ./site *.md -x https://wksctl.readthedocs.io
- name: Fail if there were link errors
run: exit ${{ steps.lc.outputs.exit_code }}
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*_vfsdata.go
.uptodate
/examples/.vagrant
/rpm/output
Expand All @@ -9,7 +8,6 @@
/cmd/mock-authz-server/server
/cmd/mock-https-authz-server/server
/cmd/wksctl/wksctl
*_vfsdata.go

# Ignore files generated by footlose:
cluster-key
Expand All @@ -29,3 +27,6 @@ terraform.tfstate
terraform.tfstate.backup
.terraform.tfstate.lock.info
tf.json

# Docs
site
Loading