-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* separate docker and bundle steps workflows * update helm chart * specify version of operator-sdk as env in workflow
- Loading branch information
Showing
12 changed files
with
222 additions
and
12 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
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
14 changes: 14 additions & 0 deletions
14
deploy/charts/s3-operator/templates/clusterresourcequota-updater-binding-rbac.yaml
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,14 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "s3-operator.fullname" . }}-clusterresourcequota-updater-binding | ||
labels: | ||
{{- include "s3-operator.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: '{{ include "s3-operator.fullname" . }}-clusterresourcequota-updater' | ||
subjects: | ||
- kind: ServiceAccount | ||
name: '{{ include "s3-operator.fullname" . }}-controller-manager' | ||
namespace: '{{ .Release.Namespace }}' |
14 changes: 14 additions & 0 deletions
14
deploy/charts/s3-operator/templates/clusterresourcequota-updater-rbac.yaml
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,14 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "s3-operator.fullname" . }}-clusterresourcequota-updater | ||
labels: | ||
{{- include "s3-operator.labels" . | nindent 4 }} | ||
rules: | ||
- apiGroups: | ||
- quota.openshift.io | ||
resources: | ||
- clusterresourcequotas/status | ||
verbs: | ||
- update | ||
- patch |
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
14 changes: 14 additions & 0 deletions
14
deploy/charts/s3-operator/templates/resourcequota-status-updater-binding-rbac.yaml
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,14 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "s3-operator.fullname" . }}-resourcequota-status-updater-binding | ||
labels: | ||
{{- include "s3-operator.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: '{{ include "s3-operator.fullname" . }}-resourcequota-status-updater' | ||
subjects: | ||
- kind: ServiceAccount | ||
name: '{{ include "s3-operator.fullname" . }}-controller-manager' | ||
namespace: '{{ .Release.Namespace }}' |
14 changes: 14 additions & 0 deletions
14
deploy/charts/s3-operator/templates/resourcequota-status-updater-rbac.yaml
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,14 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "s3-operator.fullname" . }}-resourcequota-status-updater | ||
labels: | ||
{{- include "s3-operator.labels" . | nindent 4 }} | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- resourcequotas/status | ||
verbs: | ||
- update | ||
- patch |
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,93 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: s3buckets.s3.snappcloud.io | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.11.1 | ||
labels: | ||
{{- include "s3-operator.labels" . | nindent 4 }} | ||
spec: | ||
group: s3.snappcloud.io | ||
names: | ||
kind: S3Bucket | ||
listKind: S3BucketList | ||
plural: s3buckets | ||
shortNames: | ||
- s3b | ||
singular: s3bucket | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .spec.s3UserRef | ||
name: S3USERREF | ||
type: string | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: S3Bucket is the Schema for the s3buckets 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: S3BucketSpec defines the desired state of S3Bucket | ||
properties: | ||
s3DeletionPolicy: | ||
default: delete | ||
enum: | ||
- delete | ||
- retain | ||
type: string | ||
s3SubuserBinding: | ||
items: | ||
properties: | ||
access: | ||
default: read | ||
description: access of the subuser which can be read or write | ||
enum: | ||
- read | ||
- write | ||
type: string | ||
name: | ||
description: name of the subuser | ||
type: string | ||
required: | ||
- name | ||
type: object | ||
type: array | ||
s3UserRef: | ||
type: string | ||
required: | ||
- s3UserRef | ||
type: object | ||
status: | ||
description: S3BucketStatus defines the observed state of S3Bucket | ||
properties: | ||
created: | ||
default: false | ||
type: boolean | ||
policy: | ||
type: string | ||
reason: | ||
type: string | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
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