Skip to content

Commit 2429cb6

Browse files
author
ci-robot
committed
UPSTREAM: <drop>: generate manifests
1 parent 948933a commit 2429cb6

17 files changed

+669
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
labels:
5+
control-plane: controller-manager
6+
pod-security.kubernetes.io/enforce: restricted
7+
pod-security.kubernetes.io/enforce-version: latest
8+
name: openshift-operator-controller
9+
annotations:
10+
workload.openshift.io/allowed: management
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.12.0
7+
name: clusterextensions.olm.operatorframework.io
8+
spec:
9+
group: olm.operatorframework.io
10+
names:
11+
kind: ClusterExtension
12+
listKind: ClusterExtensionList
13+
plural: clusterextensions
14+
singular: clusterextension
15+
scope: Cluster
16+
versions:
17+
- name: v1alpha1
18+
schema:
19+
openAPIV3Schema:
20+
description: ClusterExtension is the Schema for the clusterextensions API
21+
properties:
22+
apiVersion:
23+
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'
24+
type: string
25+
kind:
26+
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'
27+
type: string
28+
metadata:
29+
type: object
30+
spec:
31+
description: ClusterExtensionSpec defines the desired state of ClusterExtension
32+
properties:
33+
channel:
34+
description: Channel constraint definition
35+
maxLength: 48
36+
pattern: ^[a-z0-9]+([\.-][a-z0-9]+)*$
37+
type: string
38+
packageName:
39+
maxLength: 48
40+
pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
41+
type: string
42+
upgradeConstraintPolicy:
43+
default: Enforce
44+
description: Defines the policy for how to handle upgrade constraints
45+
enum:
46+
- Enforce
47+
- Ignore
48+
type: string
49+
version:
50+
description: "Version is an optional semver constraint on the package version. If not specified, the latest version available of the package will be installed. If specified, the specific version of the package will be installed so long as it is available in any of the content sources available. Examples: 1.2.3, 1.0.0-alpha, 1.0.0-rc.1 \n For more information on semver, please see https://semver.org/"
51+
maxLength: 64
52+
pattern: ^(\s*(=||!=|>|<|>=|=>|<=|=<|~|~>|\^)\s*(v?(0|[1-9]\d*|[x|X|\*])(\.(0|[1-9]\d*|x|X|\*]))?(\.(0|[1-9]\d*|x|X|\*))?(-([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?(\+([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?)\s*)((?:\s+|,\s*|\s*\|\|\s*)(=||!=|>|<|>=|=>|<=|=<|~|~>|\^)\s*(v?(0|[1-9]\d*|x|X|\*])(\.(0|[1-9]\d*|x|X|\*))?(\.(0|[1-9]\d*|x|X|\*]))?(-([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?(\+([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?)\s*)*$
53+
type: string
54+
watchNamespaces:
55+
description: watchNamespaces indicates which namespaces the extension should watch. This feature is currently supported only with RegistryV1 bundles.
56+
items:
57+
type: string
58+
type: array
59+
required:
60+
- packageName
61+
type: object
62+
status:
63+
description: ClusterExtensionStatus defines the observed state of ClusterExtension
64+
properties:
65+
conditions:
66+
items:
67+
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 }"
68+
properties:
69+
lastTransitionTime:
70+
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.
71+
format: date-time
72+
type: string
73+
message:
74+
description: message is a human readable message indicating details about the transition. This may be an empty string.
75+
maxLength: 32768
76+
type: string
77+
observedGeneration:
78+
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.
79+
format: int64
80+
minimum: 0
81+
type: integer
82+
reason:
83+
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.
84+
maxLength: 1024
85+
minLength: 1
86+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
87+
type: string
88+
status:
89+
description: status of the condition, one of True, False, Unknown.
90+
enum:
91+
- "True"
92+
- "False"
93+
- Unknown
94+
type: string
95+
type:
96+
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)
97+
maxLength: 316
98+
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])$
99+
type: string
100+
required:
101+
- lastTransitionTime
102+
- message
103+
- reason
104+
- status
105+
- type
106+
type: object
107+
type: array
108+
x-kubernetes-list-map-keys:
109+
- type
110+
x-kubernetes-list-type: map
111+
installedBundleResource:
112+
type: string
113+
resolvedBundleResource:
114+
type: string
115+
type: object
116+
type: object
117+
served: true
118+
storage: true
119+
subresources:
120+
status: {}
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.12.0
7+
name: extensions.olm.operatorframework.io
8+
spec:
9+
group: olm.operatorframework.io
10+
names:
11+
kind: Extension
12+
listKind: ExtensionList
13+
plural: extensions
14+
singular: extension
15+
scope: Namespaced
16+
versions:
17+
- additionalPrinterColumns:
18+
- description: The current reconciliation state of this extension
19+
jsonPath: .status.paused
20+
name: Paused
21+
type: string
22+
name: v1alpha1
23+
schema:
24+
openAPIV3Schema:
25+
description: Extension is the Schema for the extensions API
26+
properties:
27+
apiVersion:
28+
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'
29+
type: string
30+
kind:
31+
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'
32+
type: string
33+
metadata:
34+
type: object
35+
spec:
36+
description: ExtensionSpec defines the desired state of Extension
37+
properties:
38+
paused:
39+
description: paused controls the management state of the extension. If the extension is paused, it will be ignored by the extension controller.
40+
type: boolean
41+
serviceAccountName:
42+
description: serviceAccountName is the name of a service account in the Extension's namespace that will be used to manage the installation and lifecycle of the extension.
43+
maxLength: 253
44+
pattern: ^[a-z0-9]+([\.-][a-z0-9]+)*$
45+
type: string
46+
source:
47+
description: source of Extension to be installed
48+
properties:
49+
package:
50+
description: package defines a reference for a bundle in a catalog defined by a name and a version and/or channel
51+
properties:
52+
channel:
53+
description: channel constraint definition
54+
maxLength: 48
55+
pattern: ^[a-z0-9]+([\.-][a-z0-9]+)*$
56+
type: string
57+
name:
58+
description: name specifies the name of the name of the package
59+
maxLength: 48
60+
pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
61+
type: string
62+
upgradeConstraintPolicy:
63+
default: Enforce
64+
description: upgradeConstraintPolicy Defines the policy for how to handle upgrade constraints
65+
enum:
66+
- Enforce
67+
- Ignore
68+
type: string
69+
version:
70+
description: "Version is an optional semver constraint on the package version. If not specified, the latest version available of the package will be installed. If specified, the specific version of the package will be installed so long as it is available in any of the content sources available. Examples: 1.2.3, 1.0.0-alpha, 1.0.0-rc.1 \n For more information on semver, please see https://semver.org/ version constraint definition"
71+
maxLength: 64
72+
pattern: ^(\s*(=||!=|>|<|>=|=>|<=|=<|~|~>|\^)\s*(v?(0|[1-9]\d*|[x|X|\*])(\.(0|[1-9]\d*|x|X|\*]))?(\.(0|[1-9]\d*|x|X|\*))?(-([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?(\+([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?)\s*)((?:\s+|,\s*|\s*\|\|\s*)(=||!=|>|<|>=|=>|<=|=<|~|~>|\^)\s*(v?(0|[1-9]\d*|x|X|\*])(\.(0|[1-9]\d*|x|X|\*))?(\.(0|[1-9]\d*|x|X|\*]))?(-([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?(\+([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?)\s*)*$
73+
type: string
74+
required:
75+
- name
76+
type: object
77+
sourceType:
78+
description: sourceType is the discriminator for the source type
79+
enum:
80+
- package
81+
type: string
82+
required:
83+
- sourceType
84+
type: object
85+
x-kubernetes-validations:
86+
- message: sourceType must match populated union field
87+
rule: self.sourceType=='package' && has(self.__package__)
88+
required:
89+
- serviceAccountName
90+
- source
91+
type: object
92+
status:
93+
description: ExtensionStatus defines the observed state of Extension
94+
properties:
95+
conditions:
96+
items:
97+
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 }"
98+
properties:
99+
lastTransitionTime:
100+
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.
101+
format: date-time
102+
type: string
103+
message:
104+
description: message is a human readable message indicating details about the transition. This may be an empty string.
105+
maxLength: 32768
106+
type: string
107+
observedGeneration:
108+
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.
109+
format: int64
110+
minimum: 0
111+
type: integer
112+
reason:
113+
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.
114+
maxLength: 1024
115+
minLength: 1
116+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
117+
type: string
118+
status:
119+
description: status of the condition, one of True, False, Unknown.
120+
enum:
121+
- "True"
122+
- "False"
123+
- Unknown
124+
type: string
125+
type:
126+
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)
127+
maxLength: 316
128+
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])$
129+
type: string
130+
required:
131+
- lastTransitionTime
132+
- message
133+
- reason
134+
- status
135+
- type
136+
type: object
137+
type: array
138+
x-kubernetes-list-map-keys:
139+
- type
140+
x-kubernetes-list-type: map
141+
installedBundleResource:
142+
type: string
143+
paused:
144+
description: paused indicates the current reconciliation state of this extension
145+
type: boolean
146+
resolvedBundleResource:
147+
type: string
148+
required:
149+
- paused
150+
type: object
151+
type: object
152+
served: true
153+
storage: true
154+
subresources:
155+
status: {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
name: operator-controller-controller-manager
6+
namespace: openshift-operator-controller
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: Role
4+
metadata:
5+
name: operator-controller-leader-election-role
6+
namespace: openshift-operator-controller
7+
rules:
8+
- apiGroups:
9+
- ""
10+
resources:
11+
- configmaps
12+
verbs:
13+
- get
14+
- list
15+
- watch
16+
- create
17+
- update
18+
- patch
19+
- delete
20+
- apiGroups:
21+
- coordination.k8s.io
22+
resources:
23+
- leases
24+
verbs:
25+
- get
26+
- list
27+
- watch
28+
- create
29+
- update
30+
- patch
31+
- delete
32+
- apiGroups:
33+
- ""
34+
resources:
35+
- events
36+
verbs:
37+
- create
38+
- patch
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
name: operator-controller-clusterextension-editor-role
6+
rules:
7+
- apiGroups:
8+
- olm.operatorframework.io
9+
resources:
10+
- clusterextensions
11+
verbs:
12+
- create
13+
- delete
14+
- get
15+
- list
16+
- patch
17+
- update
18+
- watch
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
name: operator-controller-clusterextension-viewer-role
6+
rules:
7+
- apiGroups:
8+
- olm.operatorframework.io
9+
resources:
10+
- clusterextensions
11+
verbs:
12+
- get
13+
- list
14+
- watch
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
name: operator-controller-extension-editor-role
6+
rules:
7+
- apiGroups:
8+
- olm.operatorframework.io
9+
resources:
10+
- extensions
11+
verbs:
12+
- create
13+
- delete
14+
- get
15+
- list
16+
- patch
17+
- update
18+
- watch

0 commit comments

Comments
 (0)