Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1011 from flanksource/eck-manifest-update
Browse files Browse the repository at this point in the history
Eck manifest update
  • Loading branch information
moshloop committed Apr 13, 2022
2 parents 8c92c66 + 3ca00c2 commit 4f1317f
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 13 deletions.
3 changes: 0 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,9 @@ github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga
github.com/fatih/structtag v1.1.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94=
github.com/flanksource/commons v1.4.3/go.mod h1:cGrz4qFi4NrP04vjMxv6DQk0SD0u6nnYppKpgFShj0c=
github.com/flanksource/commons v1.5.1/go.mod h1:v76CUuAsGNgF6MYxQ1XJNwQ4N+WSJbsQ+fTILbP4YP0=
github.com/flanksource/commons v1.5.13/go.mod h1:TEIeK5ak2VNYgmrYHNSFoX4UjHqQuSXOYvH4waLL5os=
github.com/flanksource/commons v1.5.14 h1:XXyLQWmGTJ9re8lBEuETI5txbLItWZWepIEGJn9U/0k=
github.com/flanksource/commons v1.5.14/go.mod h1:TEIeK5ak2VNYgmrYHNSFoX4UjHqQuSXOYvH4waLL5os=
github.com/flanksource/kommons v0.10.0/go.mod h1:7tDF0fPqJeRB1dAUI71Mxmdhd0MYaF3YYHdp4XPgIzM=
github.com/flanksource/kommons v0.29.0 h1:xHAcMO0KPcOFSi+Yk3dn//BLOhrzpTb9BGao97U8OWA=
github.com/flanksource/kommons v0.29.0/go.mod h1:3PSPSJukLZhB7yDc9wmdALrj3B6Hisy02bNZoandDK0=
github.com/flanksource/kommons v0.30.0 h1:Lvth13vWU/XljAklK7h+gXADH5JNm/3DYf6pKJZWrDg=
github.com/flanksource/kommons v0.30.0/go.mod h1:MdRCes4kbzPmIo4Uc+0wiTH/eT/YnORUNOEwAWSev7U=
github.com/flanksource/konfigadm v0.11.0 h1:8x1SKKuuYQwXEpIbX9lapHxEbgwNNleyyGwNTjx+QqQ=
Expand Down
29 changes: 20 additions & 9 deletions manifests/eck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,15 +385,6 @@ metadata:
namespace: elastic-system
---
apiVersion: v1
kind: Secret
metadata:
labels:
app.kubernetes.io/version: 1.9.1
control-plane: elastic-operator
name: elastic-webhook-server-cert
namespace: elastic-system
---
apiVersion: v1
kind: Service
metadata:
labels:
Expand Down Expand Up @@ -480,6 +471,26 @@ spec:
defaultMode: 420
secretName: elastic-webhook-server-cert
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
annotations:
cert-manager.io/allow-direct-injection: "true"
name: elastic-webhook-server
namespace: elastic-system
spec:
dnsNames:
- elastic-webhook-server
- elastic-webhook-server.elastic-system.svc
- elastic-webhook-server.elastic-system.svc.cluster.local
issuerRef:
kind: ClusterIssuer
name: default-issuer
privateKey:
algorithm: RSA
size: 2048
secretName: elastic-webhook-server-cert
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
Expand Down
19 changes: 19 additions & 0 deletions manifests/upstream/eck/base/certificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
annotations:
cert-manager.io/allow-direct-injection: "true"
name: elastic-webhook-server
namespace: elastic-system
spec:
dnsNames:
- elastic-webhook-server
- elastic-webhook-server.elastic-system.svc
- elastic-webhook-server.elastic-system.svc.cluster.local
issuerRef:
kind: ClusterIssuer
name: default-issuer
privateKey:
algorithm: RSA
size: 2048
secretName: elastic-webhook-server-cert
6 changes: 6 additions & 0 deletions manifests/upstream/eck/base/delete-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$patch: delete
apiVersion: v1
kind: Secret
metadata:
name: elastic-webhook-server-cert
namespace: elastic-system
5 changes: 4 additions & 1 deletion manifests/upstream/eck/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
namespace: elastic-system
bases:
resources:
- https://download.elastic.co/downloads/eck/1.9.1/operator.yaml
- certificate.yaml
images:
- name: docker.elastic.co/eck/eck-operator
newTag: "{{.eck.version}}"
patchesStrategicMerge:
- delete-secret.yaml

0 comments on commit 4f1317f

Please sign in to comment.