Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[incubator/percona-xtradb-cluster] New Chart! #2995

Merged
merged 7 commits into from
Feb 2, 2018

Conversation

paulczar
Copy link
Collaborator

This new chart expands on the percona chart to include xtradb clustering.


Thank you for contributing to kubernetes/charts. Before you submit this PR we'd like to
make sure you are aware of our technical requirements and best practices:

For a quick overview across what we will look at reviewing your PR, please read
our review guidelines:

Following our best practices right from the start will accelerate the review process and
help get your PR merged quicker.

When updates to your PR are requested, please add new commits and do not squash the
history. This will make it easier to identify new changes. The PR will be squashed
anyways when it is merged. Thanks.


@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 11, 2017
@unguiculus unguiculus self-assigned this Dec 12, 2017
@unguiculus
Copy link
Member

unguiculus commented Dec 12, 2017

Thanks for the PR. So, why did you create a new chart instead of extending the Percona chart?

@paulczar paulczar force-pushed the percona-xtradb-cluster branch from 690c4c0 to 387aae2 Compare December 12, 2017 15:08
@paulczar
Copy link
Collaborator Author

@unguiculus I created a new chart because:

  • It starts from a different base image
  • it uses statefulset rather than deployment
  • A person who wants a single mysql may not want the extra xtradb cluster packages installed as they may add bugs/vulns.
  • The overall lifecycle is different and the charts may diverge even further.

@paulczar
Copy link
Collaborator Author

hrmmm the helm lint works fine locally, I can't replicate the error (with helm 2.7.2) shown in the circleci test above.

$ helm version
Client: &version.Version{SemVer:"v2.7.2", GitCommit:"8478fb4fc723885b155c924d1c8c410b7a9444e6", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.7.2", GitCommit:"8478fb4fc723885b155c924d1c8c410b7a9444e6", GitTreeState:"clean"}
$ helm lint incubator/percona-xtradb-cluster
==> Linting incubator/percona-xtradb-cluster
Lint OK

1 chart(s) linted, no failures

@paulczar paulczar force-pushed the percona-xtradb-cluster branch 2 times, most recently from bd07f60 to a0b99ab Compare December 12, 2017 22:46
Expand the name of the chart.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "percona.name" -}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Folow the chart name: percona-xtradb-cluster.name

metadata:
name: {{ template "percona.fullname" . }}-config-files
labels:
app: {{ template "percona.fullname" . }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app label should be {{ template "percona.name" . }}. Update everywhere.

ports:
- port: 9104
selector:
app: {{ template "percona.fullname" . }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add release label to selector.

- name: state-snap
port: 4444
selector:
app: {{ template "percona.fullname" . }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add release label to selector.

port: 3306
targetPort: mysql
selector:
app: {{ template "percona.fullname" . }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add release label to selector.

template:
metadata:
labels:
app: {{ template "percona.fullname" . }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add release label to selector.


## percona image and version
## ref: https://hub.docker.com/r/percona/percona-xtradb-cluster/tags/
imageRepo: "percona/percona-xtradb-cluster"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

User this:

image:
  repository:
  tag:
  pullPolicy:

## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
resources:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't specify defaults:

resources: {}
  # requests:
    # memory: 256Mi
    # cpu: 100m

## It's recommended to change this to 'Always' if the image tag is 'latest'
## ref: http://kubernetes.io/docs/user-guide/images/#updating-images
##
imagePullPolicy: Always
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be IfNotPresent


## Specify password for root user
##
mysqlRootPassword: not-a-secure-password
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passwords are auto-generated if not specified. However, this will never be the case, since you add a default here. Default should be auto-generated.

@paulczar paulczar force-pushed the percona-xtradb-cluster branch 2 times, most recently from cb49f35 to 536ea15 Compare January 3, 2018 19:33
@paulczar
Copy link
Collaborator Author

paulczar commented Jan 3, 2018

@unguiculus sorry for the slow response, vacation and all that. this update should address your comments.

This new chart expands on the percona chart to include xtradb clustering.
@paulczar paulczar force-pushed the percona-xtradb-cluster branch from 536ea15 to 356b237 Compare January 4, 2018 17:28
@paulczar
Copy link
Collaborator Author

paulczar commented Jan 8, 2018

ugh sorry I just realized I squashed my history... bad habits from previous projects :(

- https://github.com/kubernetes/charts
- https://github.com/percona-lab/percona-docker/
maintainers:
- name: Paul Czarkowski
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Github username

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

- https://github.com/percona-lab/percona-docker/
maintainers:
- name: Paul Czarkowski
email: username.taken@gmail.com
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup 😆

@@ -0,0 +1,21 @@
name: percona-xtradb-cluster
version: 0.0.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add appVersion

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@paulczar
Copy link
Collaborator Author

/assign @unguiculus

- name: database
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
command:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a consistent list indentation style. It looks like everywhere else you did not indent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch! fixed.

@unguiculus
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jan 27, 2018
@unguiculus
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 27, 2018
@unguiculus
Copy link
Member

/lgtm cancel

@k8s-ci-robot k8s-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jan 27, 2018
@k8s-ci-robot k8s-ci-robot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 27, 2018
@unguiculus
Copy link
Member

I'd suggest you move the chart to stable before we merge it.

@paulczar
Copy link
Collaborator Author

moved to stable 😍

@unguiculus
Copy link
Member

Fix any references to incubator.

@unguiculus
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 2, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: paulczar, unguiculus

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 2, 2018
@k8s-ci-robot k8s-ci-robot merged commit 0205ce7 into helm:master Feb 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants