Skip to content

Commit

Permalink
feat(cloud): update percona operator chart
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed Nov 30, 2021
1 parent 7a2d153 commit f1fdd88
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 7 deletions.
4 changes: 2 additions & 2 deletions charts/percona-xtradb-cluster-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ 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.
version: 1.9.0
version: 1.10.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 1.9.0
appVersion: 1.10.0
41 changes: 41 additions & 0 deletions charts/percona-xtradb-cluster-operator/crds/pxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,47 @@ spec:
statusReplicasPath: .status.pxc.ready
labelSelectorPath: .status.pxc.labelSelectorPath
- name: v1-9-0
storage: false
served: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
type: object
x-kubernetes-preserve-unknown-fields: true
additionalPrinterColumns:
- name: Endpoint
type: string
jsonPath: .status.host
- name: Status
type: string
jsonPath: .status.state
- name: PXC
type: string
description: Ready pxc nodes
jsonPath: .status.pxc.ready
- name: proxysql
type: string
description: Ready proxysql nodes
jsonPath: .status.proxysql.ready
- name: haproxy
type: string
description: Ready haproxy nodes
jsonPath: .status.haproxy.ready
- name: Age
type: date
jsonPath: .metadata.creationTimestamp
subresources:
status: {}
scale:
specReplicasPath: .spec.pxc.size
statusReplicasPath: .status.pxc.ready
labelSelectorPath: .status.pxc.labelSelectorPath
- name: v1-10-0
storage: true
served: true
schema:
Expand Down
29 changes: 24 additions & 5 deletions charts/percona-xtradb-cluster-operator/templates/03-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,29 @@ spec:
app.kubernetes.io/part-of: percona-xtradb-cluster-operator
{{ .Values.label_name }}: {{ .Values.label_value }}
spec:
terminationGracePeriodSeconds: 600
containers:
- command:
- percona-xtradb-cluster-operator
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
value: ""
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: OPERATOR_NAME
value: percona-xtradb-cluster-operator
image: percona/percona-xtradb-cluster-operator:1.9.0
image: percona/percona-xtradb-cluster-operator:1.10.0
imagePullPolicy: Always
resources:
limits:
cpu: 200m
memory: 500Mi
requests:
cpu: 100m
memory: 20Mi
livenessProbe:
failureThreshold: 3
httpGet:
Expand All @@ -55,3 +60,17 @@ spec:
name: metrics
protocol: TCP
serviceAccountName: percona-xtradb-cluster-operator

---
apiVersion: v1
kind: Service
metadata:
name: percona-xtradb-cluster-operator
labels:
name: percona-xtradb-cluster-operator
spec:
ports:
- port: 443
targetPort: 9443
selector:
app.kubernetes.io/name: percona-xtradb-cluster-operator

0 comments on commit f1fdd88

Please sign in to comment.