Skip to content

Commit

Permalink
Prepare for release 8.0.3-v7 (#352)
Browse files Browse the repository at this point in the history
ProductLine: Stash

Release: v2021.03.08

Release-tracker: stashed/CHANGELOG#29
Signed-off-by: 1gtm <1gtm@appscode.com>
  • Loading branch information
1gtm committed Mar 8, 2021
1 parent 60a0157 commit 8a5311d
Show file tree
Hide file tree
Showing 30 changed files with 432 additions and 124 deletions.
4 changes: 2 additions & 2 deletions charts/stash-mysql/Chart.yaml
@@ -1,8 +1,8 @@
apiVersion: v1
description: 'stash-mysql - MySQL database plugin for Stash by AppsCode'
name: stash-mysql
version: 8.0.3-v6
appVersion: 8.0.3-v6
version: 8.0.3-v7
appVersion: 8.0.3-v7
home: https://stash.run
icon: https://cdn.appscode.com/images/products/stash/addons/mysql-stash-addon.png
sources:
Expand Down
16 changes: 8 additions & 8 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 stash-mysql-8.0.3-v6 appscode/stash-mysql -n kube-system --version=8.0.3-v6
$ helm install stash-mysql-8.0.3-v7 appscode/stash-mysql -n kube-system --version=8.0.3-v7
```

## Introduction
Expand All @@ -20,10 +20,10 @@ This chart deploys necessary `Function` and `Task` definition to backup or resto

## Installing the Chart

To install the chart with the release name `stash-mysql-8.0.3-v6`:
To install the chart with the release name `stash-mysql-8.0.3-v7`:

```console
$ helm install stash-mysql-8.0.3-v6 appscode/stash-mysql -n kube-system --version=8.0.3-v6
$ helm install stash-mysql-8.0.3-v7 appscode/stash-mysql -n kube-system --version=8.0.3-v7
```

The command deploys necessary `Function` and `Task` definition to backup or restore MySQL 8.0.3 using Stash on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation.
Expand All @@ -32,10 +32,10 @@ The command deploys necessary `Function` and `Task` definition to backup or rest
## Uninstalling the Chart

To uninstall/delete the `stash-mysql-8.0.3-v6`:
To uninstall/delete the `stash-mysql-8.0.3-v7`:

```console
$ helm delete stash-mysql-8.0.3-v6 -n kube-system
$ helm delete stash-mysql-8.0.3-v7 -n kube-system
```

The command removes all the Kubernetes components associated with the chart and deletes the release.
Expand All @@ -50,7 +50,7 @@ The following table lists the configurable parameters of the `stash-mysql` chart
| fullnameOverride | Overrides fullname template | `""` |
| image.registry | Docker registry used to pull MySQL addon image | `stashed` |
| image.repository | Docker image used to backup/restore MySQL database | `stash-mysql` |
| image.tag | Tag of the image that is used to backup/restore MySQL database. This is usually same as the database version it can backup. | `8.0.3-v6` |
| image.tag | Tag of the image that is used to backup/restore MySQL database. This is usually same as the database version it can backup. | `8.0.3-v7` |
| backup.args | Arguments to pass to `mysqldump` command during bakcup process | `"--all-databases"` |
| restore.args | Arguments to pass to `mysql` command during restore process | `""` |
| waitTimeout | Number of seconds to wait for the database to be ready before backup/restore process. | `300` |
Expand All @@ -59,12 +59,12 @@ The following table lists the configurable parameters of the `stash-mysql` chart
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example:

```console
$ helm install stash-mysql-8.0.3-v6 appscode/stash-mysql -n kube-system --version=8.0.3-v6 --set image.registry=stashed
$ helm install stash-mysql-8.0.3-v7 appscode/stash-mysql -n kube-system --version=8.0.3-v7 --set image.registry=stashed
```

Alternatively, a YAML file that specifies the values for the parameters can be provided while
installing the chart. For example:

```console
$ helm install stash-mysql-8.0.3-v6 appscode/stash-mysql -n kube-system --version=8.0.3-v6 --values values.yaml
$ helm install stash-mysql-8.0.3-v7 appscode/stash-mysql -n kube-system --version=8.0.3-v7 --values values.yaml
```
4 changes: 2 additions & 2 deletions charts/stash-mysql/doc.yaml
Expand Up @@ -10,11 +10,11 @@ repository:
name: appscode
chart:
name: stash-mysql
version: 8.0.3-v6
version: 8.0.3-v7
values: "-- generate from values file --"
valuesExample: "-- generate from values file --"
prerequisites:
- Kubernetes 1.11+
release:
name: stash-mysql-8.0.3-v6
name: stash-mysql-8.0.3-v7
namespace: kube-system
2 changes: 1 addition & 1 deletion charts/stash-mysql/values.yaml
Expand Up @@ -13,7 +13,7 @@ image:
repository: stash-mysql
# Tag of the image that is used to backup/restore MySQL database.
# This is usually same as the database version it can backup.
tag: 8.0.3-v6
tag: 8.0.3-v7
# optional argument to send mysqldump or mysql command
backup:
# Arguments to pass to `mysqldump` command during bakcup process
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/backup/backupconfiguration.yaml
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
schedule: "*/5 * * * *"
task:
name: mysql-backup-8.0.3-v6
name: mysql-backup-8.0.3-v7
repository:
name: gcs-repo
target:
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/restore/restoresession.yaml
Expand Up @@ -7,7 +7,7 @@ metadata:
app.kubernetes.io/name: mysqls.kubedb.com # this label is mandatory if you are using KubeDB to deploy the database.
spec:
task:
name: mysql-restore-8.0.3-v6
name: mysql-restore-8.0.3-v7
repository:
name: gcs-repo
target:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -15,7 +15,7 @@ require (
kmodules.xyz/custom-resources v0.0.0-20210222100152-7426e3678989
kmodules.xyz/offshoot-api v0.0.0-20210218144050-e1d794cb382a
kmodules.xyz/schema-checker v0.1.0
stash.appscode.dev/apimachinery v0.11.10-0.20210223054644-c403645d9bc1
stash.appscode.dev/apimachinery v0.11.10
)

replace bitbucket.org/ww/goautoneg => gomodules.xyz/goautoneg v0.0.0-20120707110453-a547fc61f48d
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Expand Up @@ -899,6 +899,6 @@ sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0=
stash.appscode.dev/apimachinery v0.11.10-0.20210223054644-c403645d9bc1 h1:TYEn+OxHZgNdTNFbb4O5nfJkHXdY2zFoJnGaG+uGfqE=
stash.appscode.dev/apimachinery v0.11.10-0.20210223054644-c403645d9bc1/go.mod h1:/mCvRYT6pzejllri8OMBRHrpYUSD9fMB7GlgZvCRp6Y=
stash.appscode.dev/apimachinery v0.11.10 h1:Qeyagj207Xgl3U1YbBTSzdIrY27RK7aunNbDXC6HmPI=
stash.appscode.dev/apimachinery v0.11.10/go.mod h1:/mCvRYT6pzejllri8OMBRHrpYUSD9fMB7GlgZvCRp6Y=
vbom.ml/util v0.0.0-20160121211510-db5cfe13f5cc/go.mod h1:so/NYdZXCz+E3ZpW0uAoCj6uzU2+8OWDFv/HxUSs7kI=
2 changes: 1 addition & 1 deletion vendor/modules.txt
Expand Up @@ -473,7 +473,7 @@ kmodules.xyz/schema-checker
sigs.k8s.io/structured-merge-diff/v3/value
# sigs.k8s.io/yaml v1.2.0
sigs.k8s.io/yaml
# stash.appscode.dev/apimachinery v0.11.10-0.20210223054644-c403645d9bc1
# stash.appscode.dev/apimachinery v0.11.10
stash.appscode.dev/apimachinery/apis
stash.appscode.dev/apimachinery/apis/repositories
stash.appscode.dev/apimachinery/apis/repositories/v1alpha1
Expand Down
Expand Up @@ -18,7 +18,6 @@ limitations under the License.
// +k8s:conversion-gen=stash.appscode.dev/apimachinery/apis/repositories
// +k8s:openapi-gen=true
// +k8s:defaulter-gen=TypeMeta
// +kubebuilder:skip

// Package v1alpha1 is the v1alpha1 version of the API.
// +groupName=repositories.stash.appscode.com
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -1,21 +1,6 @@
/*
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
Expand Up @@ -45,7 +45,7 @@ type SnapshotStatus struct {
Username string `json:"username" protobuf:"bytes,4,opt,name=username"`
UID int32 `json:"uid" protobuf:"varint,5,opt,name=uid"`
Gid int32 `json:"gid" protobuf:"varint,6,opt,name=gid"`
Tags []string `json:",omitempty" protobuf:"bytes,7,rep,name=tags"`
Tags []string `json:"tags,omitempty" protobuf:"bytes,7,rep,name=tags"`
Repository string `json:"repository" protobuf:"bytes,8,opt,name=repository"`
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -39,7 +39,10 @@ type Param struct {
}

type TaskRef struct {
Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
// Name specifies the name of the Task to use for backup/restore purpose. If your database has been deployed with KubeDB,
// then keep this field empty. Stash will read the Task info from the respective AppBinding.
// +optional
Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
// Params specifies a list of parameter to pass to the Task. Stash will use this parameters to resolve the task.
// +optional
Params []Param `json:"params,omitempty" protobuf:"bytes,2,rep,name=params"`
Expand Down
174 changes: 110 additions & 64 deletions vendor/stash.appscode.dev/apimachinery/crds/bindata.go

Large diffs are not rendered by default.

@@ -0,0 +1,76 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/name: stash
name: snapshots.repositories.stash.appscode.com
spec:
group: repositories.stash.appscode.com
names:
kind: Snapshot
listKind: SnapshotList
plural: snapshots
singular: snapshot
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.repository
name: Repository
type: string
- jsonPath: .status.hostname
name: Hostname
type: string
name: v1alpha1
schema:
openAPIV3Schema:
properties:
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/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/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
status:
properties:
gid:
format: int32
type: integer
hostname:
type: string
paths:
items:
type: string
type: array
repository:
type: string
tags:
items:
type: string
type: array
tree:
type: string
uid:
format: int32
type: integer
username:
type: string
required:
- gid
- hostname
- paths
- repository
- tree
- uid
- username
type: object
type: object
served: true
storage: true
subresources: {}
@@ -0,0 +1,78 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/name: stash
name: snapshots.repositories.stash.appscode.com
spec:
additionalPrinterColumns:
- JSONPath: .status.repository
name: Repository
type: string
- JSONPath: .status.hostname
name: Hostname
type: string
group: repositories.stash.appscode.com
names:
kind: Snapshot
listKind: SnapshotList
plural: snapshots
singular: snapshot
preserveUnknownFields: false
scope: Namespaced
subresources: {}
validation:
openAPIV3Schema:
properties:
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/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/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
status:
properties:
gid:
format: int32
type: integer
hostname:
type: string
paths:
items:
type: string
type: array
repository:
type: string
tags:
items:
type: string
type: array
tree:
type: string
uid:
format: int32
type: integer
username:
type: string
required:
- gid
- hostname
- paths
- repository
- tree
- uid
- username
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true

0 comments on commit 8a5311d

Please sign in to comment.