Skip to content

Commit

Permalink
0.1.0 dev (#40)
Browse files Browse the repository at this point in the history
* Improve tests

* Upgraded Kubebuilder to v2.2.0

* Changelog added for v0.1.0

* Fix version badge in README

* Add .editorconfig file

* Add CODEOWNERS file

* Fix version release history

* Conditionally build release on master
  • Loading branch information
kevdowney authored Nov 28, 2019
1 parent 405ca35 commit 903395f
Show file tree
Hide file tree
Showing 14 changed files with 311 additions and 639 deletions.
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org

root = true

[*]
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[{Makefile,go.mod,go.sum,*.go}]
indent_style = tab
indent_size = 8
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# PLEASE READ:

# This is a comment.
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# review when someone opens a pull request.
* @keikoproj/authorized-approvers
21 changes: 10 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,28 @@ cache:

install:
# install dependencies needed by jobs
- wget https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.1.0/kubebuilder_2.1.0_linux_amd64.tar.gz
- tar -zxvf kubebuilder_2.1.0_linux_amd64.tar.gz
- sudo mv kubebuilder_2.1.0_linux_amd64 /usr/local/kubebuilder
- wget https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.2.0/kubebuilder_2.2.0_linux_amd64.tar.gz
- tar -zxvf kubebuilder_2.2.0_linux_amd64.tar.gz
- sudo mv kubebuilder_2.2.0_linux_amd64 /usr/local/kubebuilder

stages:
- unit-test
- docker-build
- name: release
if: NOT (type = pull_request) AND branch = master

jobs:
include:

- stage: unit-test
if: type IN (push, pull_request)
script:
- go test ./api/... ./controllers/... ./pkg/... ./cmd/... -coverprofile coverage.txt
- bash <(curl -s https://codecov.io/bash)

- stage: docker-build
if: type IN (push, pull_request)
script:
- if [ $TRAVIS_EVENT_TYPE = push ]; then export IMG=keikoproj/addon-manager:$TRAVIS_BRANCH; fi
- docker build --no-cache -t ${IMG} .

- stage: release
provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash -s release --skip-publish --rm-dist --snapshot
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
script: curl -sL https://git.io/goreleaser | bash -s release --rm-dist
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<a name="unreleased"></a>
## [Unreleased]

<a name="v0.1.0"></a>
## [v0.1.0] - 2019-11-27
### Changed
- Argo Workflow controller updated to 2.4.2
- Upgraded Kubebuilder to v2.2.0
### Fixed
- Various fixes and improvements (#39)

<a name="v0.0.2"></a>
## [v0.0.2] - 2019-09-03
### Changed
Expand All @@ -11,6 +19,7 @@
### Added
- Initial Release of Addon Manager

[Unreleased]: https://github.com/keikoproj/addon-manager/compare/v0.0.2...HEAD
[Unreleased]: https://github.com/keikoproj/addon-manager/compare/v0.1.0...HEAD
[v0.1.0]: https://github.com/keikoproj/addon-manager/compare/v0.1.0...v0.0.2
[v0.0.2]: https://github.com/keikoproj/addon-manager/compare/v0.0.1...v0.0.2
[v0.0.1]: https://github.com/keikoproj/addon-manager/releases/tag/v0.0.1
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ IMG ?= keikoproj/addon-manager:latest
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true"
KUBERNETES_LOCAL_CLUSTER_VERSION ?= --image=kindest/node:v1.14.3
KOPS_STATE_STORE=s3://kops-state-store-233444812205-us-west-2
KOPS_CLUSTER_NAME=kops-aws-usw2.cluster.k8s.local

.EXPORT_ALL_VARIABLES:
GO111MODULE=on
KOPS_STATE_STORE=s3://kops-state-store-233444812205-us-west-2
KOPS_CLUSTER_NAME=kops-aws-usw2.cluster.k8s.local

all: test manager addonctl

Expand Down Expand Up @@ -44,15 +44,17 @@ clean:
kubectl delete addons -n addon-manager-system --all
kubectl kustomize config/deploy | kubectl delete -f - || true

kops-cluster:
kops replace --state ${KOPS_STATE_STORE} -f hack/kops-aws-usw2.cluster.yaml
kops-cluster-setup:
kops replace --force --state ${KOPS_STATE_STORE} -f hack/kops-aws-usw2.cluster.yaml
kops create secret --state ${KOPS_STATE_STORE} --name ${KOPS_CLUSTER_NAME} sshpublickey admin -i ~/.ssh/id_rsa.pub

kops-cluster:
kops update cluster --state ${KOPS_STATE_STORE} ${KOPS_CLUSTER_NAME} --yes
kops rolling-update cluster --state ${KOPS_STATE_STORE} ${KOPS_CLUSTER_NAME} --yes --cloudonly
kops validate cluster --state ${KOPS_STATE_STORE} ${KOPS_CLUSTER_NAME}

kops-cluster-delete:
kops delete --state ${KOPS_STATE_STORE} -f hack/kops-aws-usw2.cluster.yaml
kops delete --state ${KOPS_STATE_STORE} -f hack/kops-aws-usw2.cluster.yaml --yes

kind-cluster-config:
export KUBECONFIG=$$(kind get kubeconfig-path --name="kind")
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![PR](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)][GithubPrsUrl]
[![slack](https://img.shields.io/badge/slack-join%20the%20conversation-ff69b4.svg)][SlackUrl]

![version](https://img.shields.io/badge/version-0.2.0-blue.svg?cacheSeconds=2592000)
![version](https://img.shields.io/badge/version-0.1.0-blue.svg?cacheSeconds=2592000)
[![Build Status][BuildStatusImg]][BuildMasterUrl]
[![codecov][CodecovImg]][CodecovUrl]
[![Go Report Card][GoReportImg]][GoReportUrl]
Expand Down Expand Up @@ -204,9 +204,11 @@ addonctl create my-addon -n my-addon-ns \
```

## Release History
* 0.2.0
* v0.1.0
* First Stable Release
* v0.0.2
* Update api version to Keikoproj
* 0.1.0
* v0.0.1
* Release alpha version of addon-manager

## ❤ Contributing ❤
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/addonmgr.keikoproj.io_addons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ spec:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
Expand Down
14 changes: 6 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,22 @@ module github.com/keikoproj/addon-manager
go 1.13

require (
cloud.google.com/go v0.38.0 // indirect
github.com/Masterminds/semver v1.5.0
github.com/go-logr/logr v0.1.0
github.com/jinzhu/inflection v1.0.0
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/onsi/ginkgo v1.10.3
github.com/onsi/gomega v1.7.1
github.com/pkg/errors v0.8.1
github.com/sirupsen/logrus v1.4.2
github.com/spf13/cobra v0.0.5
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8 // indirect
golang.org/x/net v0.0.0-20190812203447-cdfb69ac37fc
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 // indirect
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3 // indirect
gopkg.in/yaml.v3 v3.0.0-20191026110619-0b21df46bc1d
k8s.io/api v0.0.0-20190918195907-bd6ac527cfd2
k8s.io/apimachinery v0.0.0-20190817020851-f2f3a405f61d
k8s.io/client-go v0.0.0-20190918200256-06eb1244587a
k8s.io/utils v0.0.0-20190801114015-581e00157fb1 // indirect
sigs.k8s.io/controller-runtime v0.3.0
k8s.io/api v0.0.0-20190918155943-95b840bb6a1f
k8s.io/apiextensions-apiserver v0.0.0-20190918161926-8f644eb6e783
k8s.io/apimachinery v0.0.0-20190913080033-27d36303b655
k8s.io/client-go v0.0.0-20190918160344-1fbdaa4c8d90
sigs.k8s.io/controller-runtime v0.4.0
)
Loading

0 comments on commit 903395f

Please sign in to comment.