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

add 3scale/3scale-operator #154

Merged
merged 1 commit into from
Feb 11, 2024
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
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Files: crd-catalog/1Password/onepassword-operator/*
Copyright: The 1Password/onepassword-operator Authors
License: MIT

Files: crd-catalog/3scale/3scale-operator/*
Copyright: The 3scale/3scale-operator Authors
License: Apache-2.0

Files: crd-catalog/3scale/apicast-operator/*
Copyright: The 3scale/apicast-operator Authors
License: Apache-2.0
Expand Down
19 changes: 19 additions & 0 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,25 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
"https://github.com/1Password/onepassword-operator/blob/main/config/crd/bases/onepassword.com_onepassworditems.yaml",
],
},
UpstreamSource {
project_name: "3scale/3scale-operator",
license: APACHE_V2,
urls: &[
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/apps.3scale.net_apimanagerbackups.yaml",
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/apps.3scale.net_apimanagerrestores.yaml",
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/apps.3scale.net_apimanagers.yaml",
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/capabilities.3scale.net_activedocs.yaml",
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/capabilities.3scale.net_applications.yaml",
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/capabilities.3scale.net_backends.yaml",
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/capabilities.3scale.net_custompolicydefinitions.yaml",
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/capabilities.3scale.net_developeraccounts.yaml",
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/capabilities.3scale.net_developerusers.yaml",
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/capabilities.3scale.net_openapis.yaml",
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/capabilities.3scale.net_products.yaml",
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/capabilities.3scale.net_proxyconfigpromotes.yaml",
"https://github.com/3scale/3scale-operator/blob/master/config/crd/bases/capabilities.3scale.net_tenants.yaml",
],
},
UpstreamSource {
project_name: "3scale/apicast-operator",
license: APACHE_V2,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
apiVersion: "apiextensions.k8s.io/v1"
kind: "CustomResourceDefinition"
metadata:
annotations:
controller-gen.kubebuilder.io/version: "v0.9.2"
name: "apimanagerbackups.apps.3scale.net"
spec:
group: "apps.3scale.net"
names:
kind: "APIManagerBackup"
listKind: "APIManagerBackupList"
plural: "apimanagerbackups"
singular: "apimanagerbackup"
scope: "Namespaced"
versions:
- name: "v1alpha1"
schema:
openAPIV3Schema:
description: "APIManagerBackup represents an APIManager backup"
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: "APIManagerBackupSpec defines the desired state of APIManagerBackup"
properties:
backupDestination:
description: "Backup data destination configuration"
properties:
persistentVolumeClaim:
description: "PersistentVolumeClaim as backup data destination configuration"
properties:
resources:
description: "Resources configuration for the backup data PersistentVolumeClaim. Ignored when VolumeName field is set"
properties:
requests:
anyOf:
- type: "integer"
- type: "string"
description: "Storage Resource requests to be used on the PersistentVolumeClaim. To learn more about resource requests see: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
pattern: "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$"
x-kubernetes-int-or-string: true
required:
- "requests"
type: "object"
storageClass:
description: "Storage class to be used by the PersistentVolumeClaim. Ignored when VolumeName field is set"
type: "string"
volumeName:
description: "Name of an existing PersistentVolume to be bound to the backup data PersistentVolumeClaim"
type: "string"
type: "object"
type: "object"
required:
- "backupDestination"
type: "object"
status:
description: "APIManagerBackupStatus defines the observed state of APIManagerBackup"
properties:
apiManagerSourceName:
description: "Name of the APIManager from which the backup has been performed"
type: "string"
backupPersistentVolumeClaimName:
description: "Name of the backup data PersistentVolumeClaim. Only set when PersistentVolumeClaim is used as the backup data destination"
type: "string"
completed:
description: "Set to true when backup has been completed"
type: "boolean"
completionTime:
description: "Backup completion time. It is represented in RFC3339 form and is in UTC."
format: "date-time"
type: "string"
mainStepsCompleted:
description: "Set to true when main steps have been completed. At this point backup still cannot be considered fully completed due to some remaining post-backup tasks are pending (cleanup, ...)"
type: "boolean"
startTime:
description: "Backup start time. It is represented in RFC3339 form and is in UTC."
format: "date-time"
type: "string"
type: "object"
type: "object"
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
apiVersion: "apiextensions.k8s.io/v1"
kind: "CustomResourceDefinition"
metadata:
annotations:
controller-gen.kubebuilder.io/version: "v0.9.2"
name: "apimanagerrestores.apps.3scale.net"
spec:
group: "apps.3scale.net"
names:
kind: "APIManagerRestore"
listKind: "APIManagerRestoreList"
plural: "apimanagerrestores"
singular: "apimanagerrestore"
scope: "Namespaced"
versions:
- name: "v1alpha1"
schema:
openAPIV3Schema:
description: "APIManagerRestore represents an APIManager restore"
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: "APIManagerRestoreSpec defines the desired state of APIManagerRestore"
properties:
restoreSource:
description: "APIManagerRestoreSource defines the backup data restore source configurability. It is a union type. Only one of the fields can be set"
properties:
persistentVolumeClaim:
description: "Restore data soure configuration"
properties:
claimSource:
description: "PersistentVolumeClaim source of an existing PersistentVolumeClaim. See"
properties:
claimName:
description: "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims"
type: "string"
readOnly:
description: "readOnly Will force the ReadOnly setting in VolumeMounts. Default false."
type: "boolean"
required:
- "claimName"
type: "object"
required:
- "claimSource"
type: "object"
type: "object"
required:
- "restoreSource"
type: "object"
status:
description: "APIManagerRestoreStatus defines the observed state of APIManagerRestore"
properties:
apiManagerToRestoreRef:
description: "Name of the APIManager to be restored"
properties:
name:
description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?"
type: "string"
type: "object"
x-kubernetes-map-type: "atomic"
completed:
description: "Set to true when backup has been completed"
type: "boolean"
completionTime:
description: "Restore completion time. It is represented in RFC3339 form and is in UTC."
format: "date-time"
type: "string"
mainStepsCompleted:
description: "Set to true when main steps have been completed. At this point restore still cannot be considered fully completed due to some remaining post-backup tasks are pending (cleanup, ...)"
type: "boolean"
startTime:
description: "Restore start time. It is represented in RFC3339 form and is in UTC."
format: "date-time"
type: "string"
type: "object"
type: "object"
served: true
storage: true
subresources:
status: {}
Loading