Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restructure deploy contents to support using kustomize #12

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

cameronbraid
Copy link

@cameronbraid cameronbraid commented Apr 3, 2020

I have made changes to the contents of /deploy so that you can build a config using kustomize

An example to build a cluster scoped operator

kustomize build deploy/cluster

I also changed the image from REPLACE_IMAGE to redis-operator so that you can more easily use kustomize's image replacement

for example in your own project you can use the following to integrate redis-operator into your own kustomization.yaml

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: redis-operator
resources: 
- https://github.com/cameronbraid/redis-operator/deploy/cluster
images:
  - name: redis-operator
    newName: registry.drivenow.com.au/drivenow/redis-operator

the COPY args are source... dest, so "COPY go.mod ./ go.sum ./" coppies ./ to ./ which is unintended
as for "COPY pkg ./ cmd ./ version ./" the pkg and cmd args are redundant
…vice mesh

wihtout this the redis IP is identified as 127.0.0.1
@@ -272,6 +272,10 @@ func (c *client) SetCustomRedisConfig(ip string, configs map[string]string, auth
rClient := rediscli.NewClient(options)
defer rClient.Close()

if err := c.applyRedisConfig("replica-announce-ip", ip, rClient); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no replica-announce-ip configuration in redis 3.2.2, I hope the operator supports redis 3.2.2+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants