Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce v1beta1 api #647

Merged
merged 6 commits into from
Feb 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions api/api-rules/violation_exceptions.list
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ API rule violation: names_match,k8s.io/apimachinery/pkg/runtime,RawExtension,Raw
API rule violation: names_match,k8s.io/apimachinery/pkg/runtime,Unknown,ContentEncoding
API rule violation: names_match,k8s.io/apimachinery/pkg/runtime,Unknown,ContentType
API rule violation: names_match,k8s.io/apimachinery/pkg/runtime,Unknown,Raw
API rule violation: names_match,k8s.io/apimachinery/pkg/util/intstr,IntOrString,IntVal
API rule violation: names_match,k8s.io/apimachinery/pkg/util/intstr,IntOrString,StrVal
API rule violation: names_match,k8s.io/apimachinery/pkg/util/intstr,IntOrString,Type
File renamed without changes.
50 changes: 50 additions & 0 deletions api/crds/v1alpha1/repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
app: stash
name: repositories.stash.appscode.com
spec:
additionalPrinterColumns:
- JSONPath: .status.integrity
name: Integrity
type: boolean
- JSONPath: .status.size
name: Size
type: string
- JSONPath: .status.snapshotCount
name: Snapshot-Count
type: integer
- JSONPath: .status.lastBackupTime
format: date-time
name: Last-Successful-Backup
type: date
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
group: stash.appscode.com
names:
categories:
- storage
- appscode
- stash
kind: Repository
plural: repositories
shortNames:
- repo
singular: repository
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema: {}
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
- name: v1beta1
served: true
storage: false
File renamed without changes.
385 changes: 385 additions & 0 deletions api/crds/v1beta1/backupconfiguration.yaml

Large diffs are not rendered by default.

395 changes: 395 additions & 0 deletions api/crds/v1beta1/backupsession.yaml

Large diffs are not rendered by default.

1,555 changes: 1,555 additions & 0 deletions api/crds/v1beta1/backuptemplate.yaml

Large diffs are not rendered by default.

1,038 changes: 1,038 additions & 0 deletions api/crds/v1beta1/function.yaml

Large diffs are not rendered by default.

43 changes: 27 additions & 16 deletions api/crds/repository.yaml → api/crds/v1beta1/repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ metadata:
name: repositories.stash.appscode.com
spec:
additionalPrinterColumns:
- JSONPath: .status.backupCount
name: Backup-Count
- JSONPath: .status.integrity
name: Integrity
type: boolean
- JSONPath: .status.size
name: Size
type: string
- JSONPath: .status.snapshotCount
name: Snapshot-Count
type: integer
- JSONPath: .status.lastBackupTime
format: date-time
Expand All @@ -23,7 +29,7 @@ spec:
categories:
- storage
- appscode
- all
- stash
kind: Repository
plural: repositories
shortNames:
Expand Down Expand Up @@ -1532,36 +1538,41 @@ spec:
type: boolean
status:
properties:
backupCount:
format: int64
type: integer
firstBackupTime:
description: Time is a wrapper around time.Time which supports correct
marshaling to YAML and JSON. Wrappers are provided for many of the
factory methods that the time package offers.
format: date-time
type: string
lastBackupDuration:
type: string
integrity:
description: Integrity shows result of repository integrity check after
last backup
type: boolean
lastBackupTime:
description: Time is a wrapper around time.Time which supports correct
marshaling to YAML and JSON. Wrappers are provided for many of the
factory methods that the time package offers.
format: date-time
type: string
lastSuccessfulBackupTime:
description: Time is a wrapper around time.Time which supports correct
marshaling to YAML and JSON. Wrappers are provided for many of the
factory methods that the time package offers.
format: date-time
type: string
observedGeneration:
oneOf:
- type: string
- format: int64
type: integer
version: v1alpha1
size:
description: Size show size of repository after last backup
type: string
snapshotCount:
description: SnapshotCount shows number of snapshots stored in the repository
format: int32
type: integer
snapshotRemovedOnLastCleanup:
description: SnapshotRemovedOnLastCleanup shows number of old snapshots
cleaned up according to retention policy on last backup session
format: int32
type: integer
version: v1beta1
versions:
- name: v1alpha1
- name: v1beta1
served: true
storage: true
Loading