Commit Graph

56 Commits

Author SHA1 Message Date
Charlie Drage
d43aefd882
change master to main in scripts and docs (#1569)
* change master to main in scripts and docs

Changes the naming from master to main in the scripts and documentation.

Do not merge unless CI passes!

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

* remove 1.18, specify version of staticcheck

---------

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-02-08 15:42:16 -05:00
Lctrs
2ad5745d58
feat: migrate from libcompose to compose-go (#1547)
* feat: migrate from libcompose to compose-go

libcompose has been deprecated since summer 2021 in favor of https://github.com/compose-spec/compose-go.
Kompose should now be able to load all versions of compose.

* chore: replace golint with staticcheck

golint has been deprecated. Recommended replacement is staticcheck.
2023-01-12 15:17:22 -05:00
Shivam Sandbhor
6836599adc
Add make rule for darwin arm64 in cross target (#1455)
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-11-06 23:12:43 +08:00
Hang Yan
ce46a5ba01
Update windows bin ext (#1451)
Signed-off-by: Hang Yan <hang.yan@hotmail.com>
2021-10-24 19:34:23 +08:00
Hang Yan
9a6a24cb16
Update golang versions in ci (#1437) 2021-10-02 02:18:20 +08:00
AiYijing
8207146039
Add install golangci-lint to project dir of bin (#1428)
Signed-off-by: aiyijing <aiyijing@live.com>
2021-09-01 10:51:44 +08:00
AiYijing
e3c78d7419
Add golangci-lint (#1420)
Signed-off-by: aiyijing <aiyijing@live.com>
2021-08-27 11:12:26 +08:00
namusyaka
8fcbc60969
Cleanup glide (#1353)
* Cleanup mentions about glide

* Don't use glide to ignore vendor directory

Since go-1.9, "./..." no longer contains the "vendor" directory.
Also, since #1305 migrated dependency management from glide to go mod,
there is no need to think about the "vendor" directory.

See: https://golang.org/doc/go1.9#vendor-dotdotdot

* go mod tidy
2020-11-08 23:21:51 +08:00
Hang Yan
d35549d03d
Remove vendor (#1306) 2020-08-07 17:52:07 +08:00
Hang Yan
525b68f027
Go mod (#1305)
* Use go mod instead of glide
* Add `--with-kompose-annotation` flag to allow us to switch it off for tests
* Remove hostpid support (since the newest sdk does not support it)
* Create new test script and fixtures
* Remove replicationcontroller support
2020-08-07 17:25:52 +08:00
Charlie Drage
6b018fab7b
Fix tests (#1274)
For some reason, Kubernetes tests haven't been running correctly. This
(hopefully) fixes it on Semaphore..

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2020-04-23 13:56:02 -04:00
akillcool
dbbdfc0970
Add arm64 to make cross (#1266) 2020-03-18 10:03:16 +08:00
Hang Yan
d105a77e07
Add server flag for kompose down (#1260) 2020-03-08 18:40:29 +08:00
Hang Yan
f272e7fb00
Update dep (#1218) 2019-12-28 10:07:18 +08:00
Hang Yan
bc32e29ee4
Fix configmap name case error (#1215) 2019-12-27 22:39:45 +08:00
Anthony Lapenna
c13d50ee17 Statically build binaries via make cross (#1193) 2019-11-29 13:46:51 +08:00
Anthony Lapenna
8c9d6ad6e2 Statically build binaries (#1169) 2019-09-14 13:40:48 +08:00
Hang Yan
06468b2f63 Update dep for compose 3.5+ (#1120)
* Update vendor packages

* Support compose 3.5+ versions
2019-03-26 11:44:26 -04:00
Harald Nordgren
2717f17e3b Bump Go versions (#1073)
* Bump Go versions

* Unbreak fetching of 'golang/lint'
2018-10-23 10:16:20 -04:00
Hang Yan
5a374742cf
Merge pull request #871 from surajnarwade/stdin
Kompose will read input from stdin
2018-06-06 22:20:27 +08:00
Jaden Young
b9e1d54e6d Fix typos in Makefile 2018-03-29 12:49:11 -05:00
Suraj Narwade
6d4c8f9b78 Kompose will read input from stdin
Resolves issue #870

for example,

```
$ cat docker-compose.yaml | kompose convert -f -
INFO Kubernetes file "frontend-service.yaml" created
INFO Kubernetes file "redis-master-service.yaml" created
INFO Kubernetes file "redis-slave-service.yaml" created
INFO Kubernetes file "frontend-deployment.yaml" created
INFO Kubernetes file "redis-master-deployment.yaml" created
INFO Kubernetes file "redis-slave-deployment.yaml" created
```

Added integration test for the same.
`
2018-03-07 12:49:21 +05:30
Hang Yan
0bac06bcc9 Fix typos in Makefile 2018-02-08 15:25:34 +08:00
Charlie Drage
e6a40eb5c9
Merge pull request #805 from ashetty1/issue_770
Script for generating unit tests
2017-12-19 11:07:15 -05:00
Charlie Drage
0fba8f44b1 Fix makefile
Fixes the makefile and uses sirupsen instead of sirupen.
2017-11-30 15:22:06 -05:00
Charlie Drage
84be7400a2
Merge pull request #846 from surajnarwade/buildv3
Added support for build key in v3
2017-11-30 09:06:32 -05:00
Suraj Narwade
d02492ad59 Updated Makefile with respective vendor-update commands 2017-11-27 12:28:32 +05:30
Charlie Drage
0f4bfebf08 Move version information to separate file
Moves the version information to a seperate file. This is mostly due to
import cycle errors occuring when using "import
github.com/kubernetes/kompose/cmd" in order to get the global variable
of VERSION and GITCOMMIT.

Update's the Makefile and other files accordingly.

If the version and commmit is unretriveable due to not being able to
find the kompose binary, the one from pkg/version/version.go will be
used.
2017-11-07 15:28:04 -05:00
Anush Shetty
7bb67675f4 Script for generating CLI tests:
* Made an entry in the Makefile: `make gen-cmd` will run the script now

* Added a section on adding CLI tests in development docs
2017-10-30 14:29:18 +05:30
Tomas Kral
1930ebeb91
build and upload master builds to bintray 2017-08-21 17:06:33 +02:00
Charlie Drage
89d43536e4 Rename test-ci to test-k8s
Renames test-ci to test-k8s to coincide with our `make test-openshift`
command.
2017-08-14 12:36:45 -04:00
Charlie Drage
21fefaed0c Adds Kubernetes cluster tests
This adds cluster tests for "kompose up" and "kompose down" for
Kubernetes. At the moment this checks that they are deployable to a
single-node Kubernetes cluster.

More proficient tests such as testing if the pods are actually up will
be added in the future.

You can test this by running: `make test-ci` on your local-machine.

Furthermore, we'll eventually have this enabled on Fabric8 / CentOS CI /
Semaphore (whatever comes first) so we can have a full end-to-end
testing environment.
2017-07-28 10:39:27 -04:00
Charlie Drage
787b7d9261 kubernetes-incubator -> kubernetes
Today, we graduate from the incubator, thus all links are updates from
kubernetes-incubator to kubernetes
2017-07-12 15:42:13 -04:00
Tomas Kral
abf81926c0 Merge pull request #460 from ashetty1/openshift_up_down_test
Adding kompose up/down tests for openshift
2017-05-02 13:35:55 +02:00
Anush Shetty
1b3d876a62 Adding OpenShift functional tests for kompose up/down
* This PR adds functional tests for kompose up/down. The test scripts
are hosted under script/test_in_openshift. The directory structure,
as follows:

	script/test_in_openshift/
	├── compose-files
	│   └── docker-compose-command.yml
	├── lib.sh
	├── run.sh
	└── tests
		├── buildconfig.sh
    		├── entrypoint-command.sh
    		├── etherpad.sh
    		└── redis-replica-2.sh

* script/test_in_openshift/run.sh is the master script
  which executes all the tests

* script/test_in_openshift/lib.sh consists of helper functions
  for `kompose up` and `kompose down` checks

* script/test_in_openshift/tests directory consists of test scripts

* The scripts use 'oc cluster up' for setting up a single-machine
  OpenShift cluster. It exits if oc binaries are not installed

* Most of the docker compose files used are the ones already
  available in examples/ or script/test/fixtures.

* How to run the tests: 'make test-openshift'
2017-05-02 12:02:30 +05:30
Charlie Drage
6b32b938a6 Add test dependencies
This clears up .travis.yaml as well as adds the test dependencies when
running `make test` so the user running the tests has the most
up-to-date ones available.
2017-04-19 10:42:46 -04:00
Charlie Drage
fed0be319a Add ARM to make cross.
This adds a linux/arm build to Makefile which will be included in the
release.sh script.
2017-04-04 10:13:07 -04:00
Tomas Kral
3411f3c94b
do not fail if there is a golint violation
golint output is just suggestion. Just show ouptut, but don't fail.
This also remove unnecessary bash script that is no longer needed.
2017-03-17 17:09:49 +01:00
Tomas Kral
ac074e2c36
Update Makefile - lazy set for PKGS variable
Using lazy set we can run targets that are not requring PKGS without
requiring glide.
Lazy set is expended when variable is used, not when declared.
2017-02-14 10:43:30 +01:00
Tomas Kral
18955c63d4
fix passing gitcommit in version output 2017-02-11 17:05:08 +01:00
Charlie Drage
b19e973549 Updates the cross compiling commands
Removed 32-Bit support, and pushes to the "bin" folder instead of
"bundles"
2017-01-27 15:57:40 -05:00
Tomas Kral
0b1b7f3c35
Rename some make targests: test->test-container test-all->test 2017-01-23 15:05:25 +01:00
Tomas Kral
20b844d6e9
Clean up Makefile and scripts in scripts dir.
If command is simple command call it from Makefile,
there is no need to have them in separate shell scripts.
2017-01-23 11:49:25 +01:00
Tomas Kral
f68be75d60
Add make rules for building and running test image 2017-01-23 11:49:24 +01:00
Tomas Kral
502157a078
add golint to make validate and install it in travis 2017-01-05 09:56:24 +01:00
Tomas Kral
a0ba435efb
Add check-vendor script
This checks vendor dir for nested vendors
and if vendor has been cleaned by glide-vc
2016-12-07 19:57:47 +01:00
Tomas Kral
373ab36946
Report code coverage to coveralls 2016-12-07 16:44:47 +01:00
Charlie Drage
c87e6cdaf5 Switch to 'make bin' instead of 'make binary'
I keep mistyping this when creating the binary as per other projects
that use it commonly (it's usually `make bin` instead of `make binary`).
2016-11-29 09:56:43 -05:00
Tomas Kral
8bb89876cf
Clean up scripts/validate-*. Add vet,gofmt,lint tests.
Travis now runs `make validate` as first test.
Make validate includes all validate tests (go vet, gofmt)
2016-11-22 13:02:13 +01:00
Tuna
238dc75175 update main.go path for cross build
fix #256
2016-10-31 00:14:29 +01:00