Skip to content

Commit

Permalink
Merge pull request #2 from RedisLabs/master
Browse files Browse the repository at this point in the history
sync with redislabs master
  • Loading branch information
yuvallevy2 authored Feb 17, 2021
2 parents a445545 + 118fc4c commit c2aadf8
Show file tree
Hide file tree
Showing 54 changed files with 10,208 additions and 868 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.idea
.idea
221 changes: 182 additions & 39 deletions README.md

Large diffs are not rendered by default.

57 changes: 8 additions & 49 deletions admission.bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ kind: ServiceAccount
metadata:
name: redis-enterprise-admission
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: redis-enterprise-admission
rules:
- apiGroups: ["certificates.k8s.io"]
resources: ["certificatesigningrequests"]
verbs: ["create", "watch"]
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand All @@ -21,6 +12,10 @@ rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["*"]
- apiGroups: ["app.redislabs.com"]
resources: ["*"]
verbs: ["*"]

---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -34,19 +29,6 @@ roleRef:
name: redis-enterprise-admission
apiGroup: rbac.authorization.k8s.io
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: redis-enterprise-admission
subjects:
- kind: ServiceAccount
namespace: NAMESPACE_OF_SERVICE_ACCOUNT
name: redis-enterprise-admission
roleRef:
kind: ClusterRole
name: redis-enterprise-admission
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -75,11 +57,9 @@ spec:
serviceAccountName: redis-enterprise-admission
containers:
- name: admin
image: redislabs/operator:6.0.6-11
image: redislabs/operator:6.0.12-5
command:
- /usr/local/bin/admission
args:
- '-v=0'
imagePullPolicy: Always
ports:
- containerPort: 443
Expand All @@ -90,10 +70,10 @@ spec:
fieldPath: metadata.namespace
resources:
limits:
cpu: 100m
cpu: 1000m
memory: 512Mi
requests:
cpu: 25m
cpu: 250m
memory: 256Mi
readinessProbe:
failureThreshold: 3
Expand All @@ -106,12 +86,11 @@ spec:
scheme: HTTPS
initContainers:
- name: admin-init
image: redislabs/operator:6.0.6-11
image: redislabs/operator:6.0.12-5
command:
- /usr/local/bin/admission
args:
- '-generate-tls'
- '-v=1'
imagePullPolicy: Always
env:
- name: POD_NAME
Expand All @@ -135,23 +114,3 @@ spec:
memory: 256Mi

---
apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
name: redb-admission
webhooks:
- name: redb.admission.redislabs
failurePolicy: Fail
rules:
- apiGroups: ["app.redislabs.com"]
apiVersions: ["v1alpha1"]
operations: ["*"]
resources: ["redisenterprisedatabases"]
clientConfig:
service:
namespace: NAMESPACE_OF_SERVICE_ACCOUNT
name: admission
path: /admission
caBundle: "" # Fill in with BASE64 encoded signed cert
admissionReviewVersions: ["v1beta1"]
---
157 changes: 0 additions & 157 deletions admission.openshift.bundle.yaml

This file was deleted.

Loading

0 comments on commit c2aadf8

Please sign in to comment.