Skip to content

Commit

Permalink
Merge pull request #12 from instaclustr/issue-2
Browse files Browse the repository at this point in the history
issue-2, operator helm for v0.0.4 release version was implemented
  • Loading branch information
DoodgeMatvey authored May 11, 2023
2 parents f5974ab + fdfa8a8 commit 686a64f
Show file tree
Hide file tree
Showing 7 changed files with 190 additions and 10 deletions.
4 changes: 2 additions & 2 deletions charts/operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.0"
appVersion: "0.0.4"
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
creationTimestamp: null
name: awsencryptionkeys.clusterresources.instaclustr.com
spec:
group: clusterresources.instaclustr.com
names:
kind: AWSEncryptionKey
listKind: AWSEncryptionKeyList
plural: awsencryptionkeys
singular: awsencryptionkey
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: AWSEncryptionKey is the Schema for the awsencryptionkeys 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: AWSEncryptionKeySpec defines the desired state of AWSEncryptionKey
properties:
alias:
type: string
arn:
type: string
providerAccountName:
type: string
required:
- alias
- arn
type: object
status:
description: AWSEncryptionKeyStatus defines the observed state of AWSEncryptionKey
properties:
id:
type: string
inUse:
type: boolean
type: object
type: object
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,11 @@ spec:
status:
description: The overall status of this mirror.
type: string
required:
- connectorName
- connectors
- id
- mirroredTopics
- status
targetLatency:
description: The latency in milliseconds above which this mirror will
be considered out of sync.
format: int32
type: integer
type: object
type: object
served: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@ metadata:
creationTimestamp: null
name: {{ template "operator.fullname" . }}-mutation
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
service:
name: {{ template "operator.fullname" . }}-webhook
namespace: {{ .Release.Namespace }}
path: /mutate-clusters-instaclustr-com-v1alpha1-cadence
failurePolicy: Fail
name: mcadence.kb.io
rules:
- apiGroups:
- clusters.instaclustr.com
apiVersions:
- v1alpha1
operations:
- CREATE
- UPDATE
resources:
- cadences
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
Expand Down Expand Up @@ -141,6 +161,26 @@ metadata:
creationTimestamp: null
name: {{ template "operator.fullname" . }}-validation
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
service:
name: {{ template "operator.fullname" . }}-webhook
namespace: {{ .Release.Namespace }}
path: /validate-clusterresources-instaclustr-com-v1alpha1-awsencryptionkey
failurePolicy: Fail
name: vawsencryptionkey.kb.io
rules:
- apiGroups:
- clusterresources.instaclustr.com
apiVersions:
- v1alpha1
operations:
- CREATE
- UPDATE
resources:
- awsencryptionkeys
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
Expand Down Expand Up @@ -281,6 +321,26 @@ webhooks:
resources:
- nodereloads
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: {{ template "operator.fullname" . }}-webhook
namespace: {{ .Release.Namespace }}
path: /validate-clusters-instaclustr-com-v1alpha1-cadence
failurePolicy: Fail
name: vcadence.kb.io
rules:
- apiGroups:
- clusters.instaclustr.com
apiVersions:
- v1alpha1
operations:
- CREATE
- UPDATE
resources:
- cadences
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
Expand Down
51 changes: 51 additions & 0 deletions charts/operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,25 @@ kubeRBACProxy:
rbac:
type: ClusterRole
rules:
- apiGroups:
- ""
resources:
- endpoints
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- ""
resources:
Expand All @@ -61,6 +74,44 @@ rbac:
- patch
- update
- watch
- apiGroups:
- ""
resources:
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- clusterresources.instaclustr.com
resources:
- awsencryptionkeys
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- clusterresources.instaclustr.com
resources:
- awsencryptionkeys/finalizers
verbs:
- update
- apiGroups:
- clusterresources.instaclustr.com
resources:
- awsencryptionkeys/status
verbs:
- get
- patch
- update
- apiGroups:
- clusterresources.instaclustr.com
resources:
Expand Down
Binary file added docs/operator-0.1.1.tgz
Binary file not shown.
14 changes: 12 additions & 2 deletions index.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
apiVersion: v1
entries:
operator:
- apiVersion: v2
appVersion: 0.0.4
created: "2023-05-11T17:40:24.353848906+03:00"
description: Operator helm chart
digest: 49721fcc7021379e13bea2e970f33ac2c108aaa29a98f494d93f14f0f76bf941
name: operator
type: application
urls:
- https://instaclustr.github.io/operator-helm/docs/operator-0.1.1.tgz
version: 0.1.1
- apiVersion: v2
appVersion: 0.1.0
created: "2023-03-14T20:03:51.53054776+02:00"
created: "2023-05-10T13:37:33.808395838+03:00"
description: Operator helm chart
digest: af125d283257eff45b3ff243b7082044696a739272d4e77b11d9968b59adf186
name: operator
type: application
urls:
- https://instaclustr.github.io/operator-helm/docs/operator-0.1.0.tgz
version: 0.1.0
generated: "2023-03-14T20:03:51.522701385+02:00"
generated: "2023-05-11T17:40:24.348326243+03:00"

0 comments on commit 686a64f

Please sign in to comment.