-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/v0.5.0' into main
- Loading branch information
Showing
87 changed files
with
16,469 additions
and
467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ RUN make compile-generic | |
FROM gcr.io/distroless/static:nonroot | ||
LABEL maintainer="[email protected]" \ | ||
NAME="k8s-backup-operator" \ | ||
VERSION="0.4.0" | ||
VERSION="0.5.0" | ||
|
||
WORKDIR / | ||
COPY --from=builder /workspace/target/k8s-backup-operator . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.13.0 | ||
name: backupschedules.k8s.cloudogu.com | ||
spec: | ||
group: k8s.cloudogu.com | ||
names: | ||
kind: BackupSchedule | ||
listKind: BackupScheduleList | ||
plural: backupschedules | ||
singular: backupschedule | ||
scope: Namespaced | ||
versions: | ||
- name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
description: BackupSchedule is the Schema for the backupschedules API | ||
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 | ||
spec: | ||
description: BackupScheduleSpec defines the desired state of BackupSchedule | ||
properties: | ||
provider: | ||
description: Provider defines the backup provider which should be | ||
used for the scheduled backups. | ||
type: string | ||
schedule: | ||
description: Schedule is a cron expression defining when to run the | ||
backup. | ||
type: string | ||
type: object | ||
status: | ||
description: BackupScheduleStatus defines the observed state of BackupSchedule | ||
properties: | ||
currentKubectlImage: | ||
description: CurrentKubectlImage is the image currently used to create | ||
scheduled backups. | ||
type: string | ||
requeueTimeNanos: | ||
description: RequeueTimeNanos contains the time in nanoseconds to | ||
wait until the next requeue. | ||
format: int64 | ||
type: integer | ||
status: | ||
description: Status represents the state of the backup. | ||
type: string | ||
required: | ||
- currentKubectlImage | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# The following patch adds a directive for certmanager to inject CA into the CRD | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
cert-manager.io/inject-ca-from: CERTIFICATE_NAMESPACE/CERTIFICATE_NAME | ||
name: backupschedules.k8s.cloudogu.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# The following patch enables a conversion webhook for the CRD | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: backupschedules.k8s.cloudogu.com | ||
spec: | ||
conversion: | ||
strategy: Webhook | ||
webhook: | ||
clientConfig: | ||
service: | ||
namespace: system | ||
name: webhook-service | ||
path: /convert | ||
conversionReviewVersions: | ||
- v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ kind: Kustomization | |
images: | ||
- name: controller | ||
newName: cloudogu/k8s-backup-operator | ||
newTag: 0.4.0 | ||
newTag: 0.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# permissions for end users to edit backupschedules. | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: role | ||
app.kubernetes.io/instance: backupschedule-editor-role | ||
app.kubernetes.io/component: rbac | ||
app.kubernetes.io/created-by: k8s-backup-operator | ||
app.kubernetes.io/part-of: k8s-backup-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
name: backupschedule-editor-role | ||
rules: | ||
- apiGroups: | ||
- k8s.cloudogu.com | ||
resources: | ||
- backupschedules | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- k8s.cloudogu.com | ||
resources: | ||
- backupschedules/finalizers | ||
verbs: | ||
- update | ||
- apiGroups: | ||
- k8s.cloudogu.com | ||
resources: | ||
- backupschedules/status | ||
verbs: | ||
- get | ||
- patch | ||
- update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: rolebinding | ||
app.kubernetes.io/instance: manager-rolebinding | ||
app.kubernetes.io/component: rbac | ||
app.kubernetes.io/created-by: k8s-backup-operator | ||
app.kubernetes.io/part-of: k8s-backup-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
name: backupschedule-editor-role-binding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: backupschedule-editor-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: controller-manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# permissions for end users to view backupschedules. | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: role | ||
app.kubernetes.io/instance: backupschedule-viewer-role | ||
app.kubernetes.io/component: rbac | ||
app.kubernetes.io/created-by: k8s-backup-operator | ||
app.kubernetes.io/part-of: k8s-backup-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
name: backupschedule-viewer-role | ||
rules: | ||
- apiGroups: | ||
- k8s.cloudogu.com | ||
resources: | ||
- backupschedules | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- k8s.cloudogu.com | ||
resources: | ||
- backupschedules/status | ||
verbs: | ||
- get |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# permissions for end users to edit backupschedules. | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: role | ||
app.kubernetes.io/instance: cronjob-editor-role | ||
app.kubernetes.io/component: rbac | ||
app.kubernetes.io/created-by: k8s-backup-operator | ||
app.kubernetes.io/part-of: k8s-backup-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
name: cronjob-editor-role | ||
rules: | ||
- apiGroups: | ||
- "*" | ||
resources: | ||
- cronjobs | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: rolebinding | ||
app.kubernetes.io/instance: manager-rolebinding | ||
app.kubernetes.io/component: rbac | ||
app.kubernetes.io/created-by: k8s-backup-operator | ||
app.kubernetes.io/part-of: k8s-backup-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
name: cronjob-editor-role-binding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: cronjob-editor-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: controller-manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.