Skip to content

Commit ecc4bb2

Browse files
author
Per Goncalves da Silva
committed
Update manifests
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent c19727c commit ecc4bb2

File tree

6 files changed

+761
-0
lines changed

6 files changed

+761
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
resources:
22
- olm.operatorframework.io_clusterextensions.yaml
3+
- olm.operatorframework.io_clusterextensionrevisions.yaml

internal/operator-controller/controllers/clusterextensionrevision_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build experimental
2+
13
package controllers
24

35
import (

manifests/experimental-e2e.yaml

Lines changed: 288 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,189 @@ spec:
454454
---
455455
apiVersion: apiextensions.k8s.io/v1
456456
kind: CustomResourceDefinition
457+
metadata:
458+
annotations:
459+
controller-gen.kubebuilder.io/version: v0.18.0
460+
olm.operatorframework.io/feature-set: experimental
461+
olm.operatorframework.io/generator: experimental
462+
name: clusterextensionrevisions.olm.operatorframework.io
463+
spec:
464+
group: olm.operatorframework.io
465+
names:
466+
kind: ClusterExtensionRevision
467+
listKind: ClusterExtensionRevisionList
468+
plural: clusterextensionrevisions
469+
singular: clusterextensionrevision
470+
scope: Cluster
471+
versions:
472+
- name: v1
473+
schema:
474+
openAPIV3Schema:
475+
description: ClusterExtensionRevision is the Schema for the clusterextensionrevisions
476+
API
477+
properties:
478+
apiVersion:
479+
description: |-
480+
APIVersion defines the versioned schema of this representation of an object.
481+
Servers should convert recognized schemas to the latest internal value, and
482+
may reject unrecognized values.
483+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
484+
type: string
485+
kind:
486+
description: |-
487+
Kind is a string value representing the REST resource this object represents.
488+
Servers may infer this from the endpoint the client submits requests to.
489+
Cannot be updated.
490+
In CamelCase.
491+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
492+
type: string
493+
metadata:
494+
type: object
495+
spec:
496+
description: spec is an optional field that defines the desired state
497+
of the ClusterExtension.
498+
properties:
499+
lifecycleState:
500+
default: Active
501+
description: Specifies the lifecycle state of the ClusterExtensionRevision.
502+
enum:
503+
- Active
504+
- Paused
505+
- Archived
506+
type: string
507+
x-kubernetes-validations:
508+
- message: can not un-archive
509+
rule: oldSelf == 'Active' || oldSelf == 'Paused' || oldSelf == 'Archived'
510+
&& oldSelf == self
511+
phases:
512+
items:
513+
properties:
514+
name:
515+
type: string
516+
objects:
517+
items:
518+
properties:
519+
object:
520+
type: object
521+
x-kubernetes-embedded-resource: true
522+
x-kubernetes-preserve-unknown-fields: true
523+
required:
524+
- object
525+
type: object
526+
type: array
527+
slices:
528+
items:
529+
type: string
530+
type: array
531+
required:
532+
- name
533+
- objects
534+
type: object
535+
type: array
536+
x-kubernetes-validations:
537+
- message: phases is immutable
538+
rule: self == oldSelf || oldSelf.size() == 0
539+
previous:
540+
items:
541+
properties:
542+
name:
543+
type: string
544+
uid:
545+
description: |-
546+
UID is a type that holds unique ID values, including UUIDs. Because we
547+
don't ONLY use UUIDs, this is an alias to string. Being a type captures
548+
intent and helps make sure that UIDs and names do not get conflated.
549+
type: string
550+
required:
551+
- name
552+
- uid
553+
type: object
554+
type: array
555+
x-kubernetes-validations:
556+
- message: previous is immutable
557+
rule: self == oldSelf
558+
revision:
559+
format: int64
560+
type: integer
561+
x-kubernetes-validations:
562+
- message: revision is immutable
563+
rule: self == oldSelf
564+
required:
565+
- phases
566+
- revision
567+
type: object
568+
status:
569+
description: status is an optional field that defines the observed state
570+
of the ClusterExtension.
571+
properties:
572+
conditions:
573+
items:
574+
description: Condition contains details for one aspect of the current
575+
state of this API Resource.
576+
properties:
577+
lastTransitionTime:
578+
description: |-
579+
lastTransitionTime is the last time the condition transitioned from one status to another.
580+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
581+
format: date-time
582+
type: string
583+
message:
584+
description: |-
585+
message is a human readable message indicating details about the transition.
586+
This may be an empty string.
587+
maxLength: 32768
588+
type: string
589+
observedGeneration:
590+
description: |-
591+
observedGeneration represents the .metadata.generation that the condition was set based upon.
592+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
593+
with respect to the current state of the instance.
594+
format: int64
595+
minimum: 0
596+
type: integer
597+
reason:
598+
description: |-
599+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
600+
Producers of specific condition types may define expected values and meanings for this field,
601+
and whether the values are considered a guaranteed API.
602+
The value should be a CamelCase string.
603+
This field may not be empty.
604+
maxLength: 1024
605+
minLength: 1
606+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
607+
type: string
608+
status:
609+
description: status of the condition, one of True, False, Unknown.
610+
enum:
611+
- "True"
612+
- "False"
613+
- Unknown
614+
type: string
615+
type:
616+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
617+
maxLength: 316
618+
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])$
619+
type: string
620+
required:
621+
- lastTransitionTime
622+
- message
623+
- reason
624+
- status
625+
- type
626+
type: object
627+
type: array
628+
x-kubernetes-list-map-keys:
629+
- type
630+
x-kubernetes-list-type: map
631+
type: object
632+
type: object
633+
served: true
634+
storage: true
635+
subresources:
636+
status: {}
637+
---
638+
apiVersion: apiextensions.k8s.io/v1
639+
kind: CustomResourceDefinition
457640
metadata:
458641
annotations:
459642
controller-gen.kubebuilder.io/version: v0.18.0
@@ -1125,6 +1308,36 @@ rules:
11251308
---
11261309
apiVersion: rbac.authorization.k8s.io/v1
11271310
kind: Role
1311+
metadata:
1312+
annotations:
1313+
olm.operatorframework.io/feature-set: experimental
1314+
name: manager-role
1315+
namespace: olmv1-system
1316+
rules:
1317+
- apiGroups:
1318+
- ""
1319+
resources:
1320+
- secrets
1321+
verbs:
1322+
- create
1323+
- delete
1324+
- deletecollection
1325+
- get
1326+
- list
1327+
- patch
1328+
- update
1329+
- watch
1330+
- apiGroups:
1331+
- ""
1332+
resources:
1333+
- serviceaccounts
1334+
verbs:
1335+
- get
1336+
- list
1337+
- watch
1338+
---
1339+
apiVersion: rbac.authorization.k8s.io/v1
1340+
kind: Role
11281341
metadata:
11291342
annotations:
11301343
olm.operatorframework.io/feature-set: experimental
@@ -1267,6 +1480,81 @@ rules:
12671480
---
12681481
apiVersion: rbac.authorization.k8s.io/v1
12691482
kind: ClusterRole
1483+
metadata:
1484+
annotations:
1485+
olm.operatorframework.io/feature-set: experimental
1486+
name: manager-role
1487+
rules:
1488+
- apiGroups:
1489+
- ""
1490+
resources:
1491+
- serviceaccounts/token
1492+
verbs:
1493+
- create
1494+
- apiGroups:
1495+
- apiextensions.k8s.io
1496+
resources:
1497+
- customresourcedefinitions
1498+
verbs:
1499+
- get
1500+
- apiGroups:
1501+
- olm.operatorframework.io
1502+
resources:
1503+
- clustercatalogs
1504+
verbs:
1505+
- get
1506+
- list
1507+
- watch
1508+
- apiGroups:
1509+
- olm.operatorframework.io
1510+
resources:
1511+
- clusterextensionrevisions
1512+
verbs:
1513+
- create
1514+
- delete
1515+
- get
1516+
- list
1517+
- patch
1518+
- update
1519+
- watch
1520+
- apiGroups:
1521+
- olm.operatorframework.io
1522+
resources:
1523+
- clusterextensionrevisions/finalizers
1524+
- clusterextensions/finalizers
1525+
verbs:
1526+
- update
1527+
- apiGroups:
1528+
- olm.operatorframework.io
1529+
resources:
1530+
- clusterextensionrevisions/status
1531+
- clusterextensions/status
1532+
verbs:
1533+
- patch
1534+
- update
1535+
- apiGroups:
1536+
- olm.operatorframework.io
1537+
resources:
1538+
- clusterextensions
1539+
verbs:
1540+
- get
1541+
- list
1542+
- patch
1543+
- update
1544+
- watch
1545+
- apiGroups:
1546+
- rbac.authorization.k8s.io
1547+
resources:
1548+
- clusterrolebindings
1549+
- clusterroles
1550+
- rolebindings
1551+
- roles
1552+
verbs:
1553+
- list
1554+
- watch
1555+
---
1556+
apiVersion: rbac.authorization.k8s.io/v1
1557+
kind: ClusterRole
12701558
metadata:
12711559
annotations:
12721560
olm.operatorframework.io/feature-set: experimental

0 commit comments

Comments
 (0)