Skip to content

Commit

Permalink
Prepare for release v0.18.0 (#155)
Browse files Browse the repository at this point in the history
ProductLine: Stash

Release: v2022.02.22

Release-tracker: stashed/CHANGELOG#44
Signed-off-by: 1gtm <[email protected]>
  • Loading branch information
1gtm authored Feb 11, 2022
1 parent 71d2142 commit fdf799c
Show file tree
Hide file tree
Showing 54 changed files with 2,223 additions and 20,947 deletions.
7 changes: 2 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require (
github.com/json-iterator/go v1.1.11
github.com/kubernetes-csi/external-snapshotter/client/v4 v4.1.0
github.com/pkg/errors v0.9.1
github.com/sergi/go-diff v1.2.0 // indirect
github.com/spf13/cobra v1.2.1
gomodules.xyz/logs v0.0.6
gomodules.xyz/pointer v0.1.0
Expand All @@ -18,15 +17,13 @@ require (
k8s.io/cli-runtime v0.21.1
k8s.io/client-go v0.21.1
k8s.io/klog/v2 v2.9.0
k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e // indirect
k8s.io/kubectl v0.21.1
kmodules.xyz/client-go v0.0.0-20220203031013-1de48437aaf3
kmodules.xyz/custom-resources v0.0.0-20220208103158-61b298634e43 // indirect
kmodules.xyz/objectstore-api v0.0.0-20211207131029-3271069de43e
kmodules.xyz/offshoot-api v0.0.0-20211207130839-cc7187e020cf
kmodules.xyz/openshift v0.0.0-20210618001443-f2507caa512f
stash.appscode.dev/apimachinery v0.17.1-0.20220131063340-553a63a8479a
stash.appscode.dev/stash v0.17.1-0.20220125101015-1e41192e71c8
stash.appscode.dev/apimachinery v0.18.0
stash.appscode.dev/stash v0.18.0
)

replace bitbucket.org/ww/goautoneg => gomodules.xyz/goautoneg v0.0.0-20120707110453-a547fc61f48d
Expand Down
44 changes: 31 additions & 13 deletions go.sum

Large diffs are not rendered by default.

32 changes: 0 additions & 32 deletions vendor/kmodules.xyz/client-go/tools/pushgateway/lib.go

This file was deleted.

9 changes: 3 additions & 6 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ github.com/russross/blackfriday
# github.com/russross/blackfriday/v2 v2.0.1
github.com/russross/blackfriday/v2
# github.com/sergi/go-diff v1.2.0
## explicit
github.com/sergi/go-diff/diffmatchpatch
# github.com/shurcooL/sanitized_anchor_name v1.0.0
github.com/shurcooL/sanitized_anchor_name
Expand Down Expand Up @@ -631,7 +630,6 @@ k8s.io/component-base/version
## explicit
k8s.io/klog/v2
# k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e => k8s.io/kube-openapi v0.0.0-20210305001622-591a79e4bda7
## explicit
k8s.io/kube-openapi/pkg/common
k8s.io/kube-openapi/pkg/util/proto
k8s.io/kube-openapi/pkg/util/proto/validation
Expand Down Expand Up @@ -664,9 +662,7 @@ kmodules.xyz/client-go/core/v1
kmodules.xyz/client-go/meta
kmodules.xyz/client-go/tools/clientcmd
kmodules.xyz/client-go/tools/exec
kmodules.xyz/client-go/tools/pushgateway
# kmodules.xyz/custom-resources v0.0.0-20220208103158-61b298634e43
## explicit
kmodules.xyz/custom-resources/apis/appcatalog
kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1
kmodules.xyz/custom-resources/apis/auditor
Expand Down Expand Up @@ -789,7 +785,7 @@ sigs.k8s.io/structured-merge-diff/v4/typed
sigs.k8s.io/structured-merge-diff/v4/value
# sigs.k8s.io/yaml v1.2.0
sigs.k8s.io/yaml
# stash.appscode.dev/apimachinery v0.17.1-0.20220131063340-553a63a8479a
# stash.appscode.dev/apimachinery v0.18.0
## explicit
stash.appscode.dev/apimachinery/apis
stash.appscode.dev/apimachinery/apis/repositories
Expand All @@ -816,8 +812,9 @@ stash.appscode.dev/apimachinery/client/listers/stash/v1beta1
stash.appscode.dev/apimachinery/crds
stash.appscode.dev/apimachinery/pkg/docker
stash.appscode.dev/apimachinery/pkg/invoker
stash.appscode.dev/apimachinery/pkg/metrics
stash.appscode.dev/apimachinery/pkg/restic
# stash.appscode.dev/stash v0.17.1-0.20220125101015-1e41192e71c8
# stash.appscode.dev/stash v0.18.0
## explicit
stash.appscode.dev/stash/pkg/registry/snapshot
stash.appscode.dev/stash/pkg/util
Expand Down
36 changes: 25 additions & 11 deletions vendor/stash.appscode.dev/apimachinery/apis/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,29 @@ const (
)

const (
CallerWebhook = "webhook"
CallerController = "controller"
PushgatewayLocalURL = "http://localhost:56789"
DefaultHost = "host-0"
CallerWebhook = "webhook"
CallerController = "controller"
DefaultHost = "host-0"
)

// ==================== Prometheus metrics related constants ============
const (
PromJobStashBackup = "stash-backup"
PromJobStashRestore = "stash-restore"

// RepositoryMetricsPushed whether the Repository metrics for this backup session were pushed or not
RepositoryMetricsPushed = "RepositoryMetricsPushed"
// SuccessfullyPushedRepositoryMetrics indicates that the condition transitioned to this state because the repository metrics was successfully pushed to the pushgateway
SuccessfullyPushedRepositoryMetrics = "SuccessfullyPushedRepositoryMetrics"
// FailedToPushRepositoryMetrics indicates that the condition transitioned to this state because the Stash was unable to push the repository metrics to the pushgateway
FailedToPushRepositoryMetrics = "FailedToPushRepositoryMetrics"

// MetricsPushed whether the metrics for this backup session were pushed or not
MetricsPushed = "MetricsPushed"
// SuccessfullyPushedMetrics indicates that the condition transitioned to this state because the metrics was successfully pushed to the pushgateway
SuccessfullyPushedMetrics = "SuccessfullyPushedMetrics"
// FailedToPushMetrics indicates that the condition transitioned to this state because the Stash was unable to push the metrics to the pushgateway
FailedToPushMetrics = "FailedToPushMetrics"
)

// ==================== RBAC related constants ==========================
Expand All @@ -188,6 +201,12 @@ const (
const (
// RepositoryFound indicates whether the respective Repository object was found or not.
RepositoryFound = "RepositoryFound"
// ValidationPassed indicates the validation conditions of the CRD are passed or not.
ValidationPassed = "ValidationPassed"
// ResourceValidationPassed indicates that the condition transitioned to this state because the CRD meets validation criteria
ResourceValidationPassed = "ResourceValidationPassed"
// ResourceValidationFailed indicates that the condition transitioned to this state because the CRD does not meet validation criteria
ResourceValidationFailed = "ResourceValidationFailed"
// BackendSecretFound indicates whether the respective backend secret was found or not.
BackendSecretFound = "BackendSecretFound"

Expand All @@ -210,6 +229,8 @@ const (
// This condition is particularly helpful when the restore addon require some additional operations to perform
// before marking the RestoreSession Succeeded/Failed.
RestoreCompleted = "RestoreCompleted"
// RestorerEnsured condition indicates whether the restore job / init-container was created or not.
RestorerEnsured = "RestorerEnsured"

// GlobalPreBackupHookSucceeded indicates whether the global PreBackupHook was executed successfully or not
GlobalPreBackupHookSucceeded = "GlobalPreBackupHookSucceeded"
Expand All @@ -219,15 +240,12 @@ const (
GlobalPreRestoreHookSucceeded = "GlobalPreRestoreHookSucceeded"
// GlobalPostRestoreHookSucceeded indicates whether the global PostRestoreHook was executed successfully or not
GlobalPostRestoreHookSucceeded = "GlobalPostRestoreHookSucceeded"

// BackendRepositoryInitialized indicates that whether backend repository was initialized or not
BackendRepositoryInitialized = "BackendRepositoryInitialized"
// RetentionPolicyApplied indicates that whether the retention policies were applied or not
RetentionPolicyApplied = "RetentionPolicyApplied"
// RepositoryIntegrityVerified indicates whether the repository integrity check succeeded or not
RepositoryIntegrityVerified = "RepositoryIntegrityVerified"
// RepositoryMetricsPushed whether the Repository metrics for this backup session were pushed or not
RepositoryMetricsPushed = "RepositoryMetricsPushed"
)

// ================== Condition Types Related Constants ===========================
Expand Down Expand Up @@ -312,10 +330,6 @@ const (
SuccessfullyVerifiedRepositoryIntegrity = "SuccessfullyVerifiedRepositoryIntegrity"
// FailedToVerifyRepositoryIntegrity indicates that the condition transitioned to this state because the repository has failed the integrity check
FailedToVerifyRepositoryIntegrity = "FailedToVerifyRepositoryIntegrity"
// SuccessfullyPushedRepositoryMetrics indicates that the condition transitioned to this state because the repository metrics was successfully pushed to the pushgateway
SuccessfullyPushedRepositoryMetrics = "SuccessfullyPushedRepositoryMetrics"
// FailedToPushRepositoryMetrics indicates that the condition transitioned to this state because the Stash was unable to push the repository metrics to the pushgateway
FailedToPushRepositoryMetrics = "FailedToPushRepositoryMetrics"
)

// ==================== Action related constants ============
Expand Down
Loading

0 comments on commit fdf799c

Please sign in to comment.