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

added kustomize support #15

Merged
merged 1 commit into from
Sep 9, 2020
Merged

Conversation

cameronbraid
Copy link
Contributor

Please add this file to support kustomize

This will allow people who use kustomize to deploy this operator with a single http url in their kustomise resources

- ClusterRole.yaml
- ClusterRoleBinding.yaml
- ServiceAccount.yaml
- ZZ_Deployment.yaml
Copy link

Choose a reason for hiding this comment

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

I believe you need to add a newline at the end of line 8.

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- crds/k8s_v1alpha1_redis_crd.yaml
Copy link

Choose a reason for hiding this comment

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

I've seen with other Operator implementations two behaviors different to the one used by this Operator:

  1. The Operator does inject the CRDs itself at start up
  2. The Operator does not inject the CRDs itself at start up, but you have to do manually. But you can only apply the CRD YAML once the Operator has started up and declared that it supports this CRD.

Are you sure that applying the CRD before having the Operator running will work?

Copy link

Choose a reason for hiding this comment

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

Shouldn't be a problem. I've created helm chart for this operator, which installs CRDs before applying any other resources, works like a charm.

@nrvnrvn nrvnrvn merged commit 646ec58 into amaizfinance:master Sep 9, 2020
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.

4 participants