Skip to content

Commit

Permalink
Make output.json file writable to all users + Fix Flag types (#17)
Browse files Browse the repository at this point in the history
* Make output.json file writable to other all users + Fix Flag types
* Use helm 3 in chart readme
* Use Go 1.13 and kind v0.6.1

Signed-off-by: Tamal Saha <tamal@appscode.com>
Co-authored-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Jan 12, 2020
1 parent 7d65a07 commit 793e5e4
Show file tree
Hide file tree
Showing 1,260 changed files with 208,780 additions and 99,434 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Expand Up @@ -14,6 +14,12 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

Expand All @@ -28,7 +34,7 @@ jobs:

- name: Run checks
run: |
sudo apt-get -qq update
sudo apt-get -qq update || true
sudo apt-get install -y bzr
make ci
Expand All @@ -45,6 +51,7 @@ jobs:
id: kind
uses: engineerd/setup-kind@v0.1.0
with:
version: v0.6.1
config: hack/kubernetes/kind.yaml

- name: Prepare cluster for testing
Expand All @@ -54,8 +61,6 @@ jobs:
USERNAME: 1gtm
REGISTRY_SECRET: regcred
run: |
export KUBECONFIG="$(kind get kubeconfig-path)"
echo
echo "waiting for nodes to be ready ..."
kubectl wait --for=condition=Ready nodes --all --timeout=5m
kubectl get nodes
Expand All @@ -71,7 +76,6 @@ jobs:
- name: Install CRDs
run: |
export KUBECONFIG="$(kind get kubeconfig-path)"
kubectl apply -f https://github.com/stashed/stash/raw/master/api/crds/stash.appscode.com_functions.yaml
kubectl apply -f https://github.com/stashed/stash/raw/master/api/crds/stash.appscode.com_tasks.yaml
kubectl wait --for=condition=NamesAccepted crds --all --timeout=5m
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -71,9 +71,9 @@ TAG := $(VERSION)_$(OS)_$(ARCH)
TAG_PROD := $(TAG)
TAG_DBG := $(VERSION)-dbg_$(OS)_$(ARCH)

GO_VERSION ?= 1.12.12
BUILD_IMAGE ?= appscode/golang-dev:$(GO_VERSION)-stretch
CHART_TEST_IMAGE ?= quay.io/helmpack/chart-testing:v2.4.0
GO_VERSION ?= 1.13.6
BUILD_IMAGE ?= appscode/golang-dev:$(GO_VERSION)
CHART_TEST_IMAGE ?= quay.io/helmpack/chart-testing:v3.0.0-beta.1

OUTBIN = bin/$(OS)_$(ARCH)/$(BIN)
ifeq ($(OS),windows)
Expand Down
6 changes: 3 additions & 3 deletions charts/stash-mysql/README.md
Expand Up @@ -7,7 +7,7 @@
```console
$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm install appscode/stash-mysql --name=stash-mysql-5.7.25 --version=5.7.25
$ helm install stash-mysql-5.7.25 appscode/stash-mysql -n kube-system --version=5.7.25
```

## Introduction
Expand Down Expand Up @@ -45,7 +45,7 @@ The above commands installs `Functions` and `Task` CRDs that are necessary to ta
To uninstall/delete the `stash-mysql-5.7.25` run the following command,

```console
helm delete stash-mysql-5.7.25 --purge
helm uninstall stash-mysql-5.7.25 -n kube-system --purge
```

The command removes all the Kubernetes components associated with the chart and deletes the release.
Expand All @@ -67,6 +67,6 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm
For example:

```console
helm install --name stash-mysql-5.7.25 ---set docker.registry=my-registry appscode/stash-mysql
helm install stash-mysql-5.7.25 appscode/stash-mysql -n kube-system ---set docker.registry=my-registry
```

2 changes: 1 addition & 1 deletion docs/_index.md
Expand Up @@ -5,6 +5,6 @@ menu:
identifier: stash-mysql-guides-{{ .subproject_version }}
name: {{ .subproject_version }}
parent: stash-mysql-guides
weight: 50
weight: 10
menu_name: docs_{{ .version }}
---
62 changes: 41 additions & 21 deletions go.mod
Expand Up @@ -3,29 +3,49 @@ module stash.appscode.dev/mysql
go 1.12

require (
github.com/appscode/go v0.0.0-20191016085057-e186b6c94a3b
github.com/appscode/go v0.0.0-20191119085241-0887d8ec2ecc
github.com/spf13/cobra v0.0.5
k8s.io/apimachinery v0.0.0-20190508063446-a3da69d3723c
k8s.io/client-go v11.0.0+incompatible
kmodules.xyz/client-go v0.0.0-20191023042933-b12d1ccfaf57
kmodules.xyz/custom-resources v0.0.0-20190927035424-65fe358bb045
stash.appscode.dev/stash v0.9.0-rc.2
k8s.io/apimachinery v0.16.5-beta.1
k8s.io/client-go v12.0.0+incompatible
kmodules.xyz/client-go v0.0.0-20200108114229-70ba8841e60f
kmodules.xyz/custom-resources v0.0.0-20191130062942-f41b54f62419
stash.appscode.dev/stash v0.9.0-rc.3
)

replace (
github.com/Azure/go-autorest => github.com/Azure/go-autorest v12.4.2+incompatible
k8s.io/api => k8s.io/api v0.0.0-20190313235455-40a48860b5ab
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.0.0-20190315093550-53c4693659ed
k8s.io/apimachinery => github.com/kmodules/apimachinery v0.0.0-20190508045248-a52a97a7a2bf
k8s.io/apiserver => github.com/kmodules/apiserver v0.0.0-20190811223248-5a95b2df4348
k8s.io/cli-runtime => k8s.io/cli-runtime v0.0.0-20190314001948-2899ed30580f
k8s.io/cloud-provider => k8s.io/cloud-provider v0.0.0-20190314002645-c892ea32361a
k8s.io/component-base => k8s.io/component-base v0.0.0-20190314000054-4a91899592f4
k8s.io/klog => k8s.io/klog v0.3.0
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.0.0-20190314000639-da8327669ac5
k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30
k8s.io/kubernetes => k8s.io/kubernetes v1.14.0
k8s.io/metrics => k8s.io/metrics v0.0.0-20190314001731-1bd6a4002213
k8s.io/utils => k8s.io/utils v0.0.0-20190514214443-0a167cbac756
sigs.k8s.io/structured-merge-diff => sigs.k8s.io/structured-merge-diff v0.0.0-20190302045857-e85c7b244fd2
cloud.google.com/go => cloud.google.com/go v0.38.0
git.apache.org/thrift.git => github.com/apache/thrift v0.12.0
github.com/Azure/azure-sdk-for-go => github.com/Azure/azure-sdk-for-go v32.5.0+incompatible
github.com/Azure/go-ansiterm => github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78
github.com/Azure/go-autorest => github.com/Azure/go-autorest v13.0.0+incompatible
github.com/Azure/go-autorest/autorest => github.com/Azure/go-autorest/autorest v0.9.0
github.com/Azure/go-autorest/autorest/adal => github.com/Azure/go-autorest/autorest/adal v0.5.0
github.com/Azure/go-autorest/autorest/azure/auth => github.com/Azure/go-autorest/autorest/azure/auth v0.2.0
github.com/Azure/go-autorest/autorest/date => github.com/Azure/go-autorest/autorest/date v0.1.0
github.com/Azure/go-autorest/autorest/mocks => github.com/Azure/go-autorest/autorest/mocks v0.2.0
github.com/Azure/go-autorest/autorest/to => github.com/Azure/go-autorest/autorest/to v0.2.0
github.com/Azure/go-autorest/autorest/validation => github.com/Azure/go-autorest/autorest/validation v0.1.0
github.com/Azure/go-autorest/logger => github.com/Azure/go-autorest/logger v0.1.0
github.com/Azure/go-autorest/tracing => github.com/Azure/go-autorest/tracing v0.5.0
github.com/prometheus/client_golang => github.com/prometheus/client_golang v0.9.2
google.golang.org/api => google.golang.org/api v0.6.1-0.20190607001116-5213b8090861
k8s.io/api => k8s.io/api v0.0.0-20191114100352-16d7abae0d2a
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.0.0-20191114105449-027877536833
k8s.io/apimachinery => github.com/kmodules/apimachinery v0.0.0-20191119091232-0553326db082
k8s.io/apiserver => github.com/kmodules/apiserver v0.0.0-20191119111000-36ac3646ae82
k8s.io/cli-runtime => k8s.io/cli-runtime v0.0.0-20191114110141-0a35778df828
k8s.io/client-go => k8s.io/client-go v0.0.0-20191114101535-6c5935290e33
k8s.io/cloud-provider => k8s.io/cloud-provider v0.0.0-20191114112024-4bbba8331835
k8s.io/component-base => k8s.io/component-base v0.0.0-20191114102325-35a9586014f7
k8s.io/klog => k8s.io/klog v0.4.0
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.0.0-20191114103820-f023614fb9ea
k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20190816220812-743ec37842bf
k8s.io/kubectl => k8s.io/kubectl v0.0.0-20191114113550-6123e1c827f7
k8s.io/kubernetes => github.com/kmodules/kubernetes v1.17.0-alpha.0.0.20191127022853-9d027e3886fd
k8s.io/metrics => k8s.io/metrics v0.0.0-20191114105837-a4a2842dc51b
k8s.io/repo-infra => k8s.io/repo-infra v0.0.0-20181204233714-00fe14e3d1a3
k8s.io/utils => k8s.io/utils v0.0.0-20190801114015-581e00157fb1
sigs.k8s.io/kustomize => sigs.k8s.io/kustomize v2.0.3+incompatible
sigs.k8s.io/structured-merge-diff => sigs.k8s.io/structured-merge-diff v0.0.0-20190817042607-6149e4549fca
sigs.k8s.io/yaml => sigs.k8s.io/yaml v1.1.0
)

0 comments on commit 793e5e4

Please sign in to comment.