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 pulp-operator #12

Merged
merged 1 commit into from
Nov 4, 2023
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 @@ -563,6 +563,10 @@ Files: crd-catalog/prometheus-operator/prometheus-operator/*
Copyright: The prometheus-operator/prometheus-operator Authors
License: Apache-2.0

Files: crd-catalog/pulp/pulp-operator/*
Copyright: The pulp/pulp-operator Authors
License: GPL-2.0-or-later

Files: crd-catalog/quay/container-security-operator/*
Copyright: The quay/container-security-operator Authors
License: Apache-2.0
Expand Down
339 changes: 339 additions & 0 deletions LICENSES/GPL-2.0-or-later.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions code-generator/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ BUGGY_RESOURCES=(
operator_tekton_dev_v1alpha1/tektontriggers
operator_tigera_io_v1/imagesets
redhatcop_redhat_io_v1alpha1/patches
repo_manager_pulpproject_org_v1beta2/pulps
resources_teleport_dev_v2/teleportprovisiontokens
resources_teleport_dev_v5/teleportroles
resources_teleport_dev_v6/teleportroles
Expand Down
10 changes: 10 additions & 0 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1474,6 +1474,15 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
"https://github.com/prometheus-operator/prometheus-operator/blob/main/example/prometheus-operator-crd-full/monitoring.coreos.com_thanosrulers.yaml",
],
},
UpstreamSource {
project_name: "pulp/pulp-operator",
license: GPL_V2_OR_LATER,
urls: &[
"https://github.com/pulp/pulp-operator/blob/main/config/crd/bases/repo-manager.pulpproject.org_pulpbackups.yaml",
"https://github.com/pulp/pulp-operator/blob/main/config/crd/bases/repo-manager.pulpproject.org_pulprestores.yaml",
"https://github.com/pulp/pulp-operator/blob/main/config/crd/bases/repo-manager.pulpproject.org_pulps.yaml",
],
},
UpstreamSource {
project_name: "quay/container-security-operator",
license: APACHE_V2,
Expand Down Expand Up @@ -1709,4 +1718,5 @@ const AQUA: &'static str = "LicenseRef-Aqua";
const FLAGSMITH: &'static str = "LicenseRef-Flagsmith";
const EPL_V2: &'static str = "EPL-2.0";
const AGPL_V3_ONLY: &'static str = "AGPL-3.0-only";
const GPL_V2_OR_LATER: &'static str = "GPL-2.0-or-later";
const UPL_V1: &'static str = "UPL-1.0";

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
name: pulprestores.repo-manager.pulpproject.org
spec:
group: repo-manager.pulpproject.org
names:
kind: PulpRestore
listKind: PulpRestoreList
plural: pulprestores
singular: pulprestore
scope: Namespaced
versions:
- name: v1beta2
schema:
openAPIV3Schema:
description: PulpRestore is the Schema for the pulprestores 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: PulpRestoreSpec defines the desired state of PulpRestore
properties:
backup_dir:
description: Backup directory name, set as a status found on the backup object (backupDirectory)
type: string
backup_name:
description: Name of the backup custom resource
type: string
backup_pvc:
description: Name of the PVC to be restored from, set as a status found on the backup object (backupClaim)
type: string
deployment_name:
default: pulp
description: Name of the deployment to be restored to
type: string
deployment_type:
default: pulp
description: Name of the deployment type. Can be one of {galaxy,pulp}.
enum:
- galaxy
- pulp
type: string
keep_replicas:
default: false
description: KeepBackupReplicasCount allows to define if the restore controller should restore the components with the same number of replicas from backup or restore only a single replica each.
type: boolean
required:
- backup_name
type: object
status:
description: PulpRestoreStatus defines the observed state of PulpRestore
properties:
conditions:
items:
description: "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }"
properties:
lastTransitionTime:
description: lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
format: date-time
type: string
message:
description: message is a human readable message indicating details about the transition. This may be an empty string.
maxLength: 32768
type: string
observedGeneration:
description: observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
format: int64
minimum: 0.0
type: integer
reason:
description: reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
maxLength: 1024
minLength: 1
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
type: string
status:
description: status of the condition, one of True, False, Unknown.
enum:
- 'True'
- 'False'
- Unknown
type: string
type:
description: type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
required:
- lastTransitionTime
- message
- reason
- status
- type
type: object
type: array
postgres_secret:
type: string
required:
- conditions
- postgres_secret
type: object
type: object
served: true
storage: true
subresources:
status: {}
Loading