Skip to content

Commit

Permalink
Merge uninstall script into the voyager.sh script (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Feb 9, 2018
1 parent f973e22 commit 96a7967
Show file tree
Hide file tree
Showing 10 changed files with 190 additions and 341 deletions.
6 changes: 3 additions & 3 deletions docs/setup/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ options:
--image-pull-secret name of secret used to pull voyager operator images
--restrict-to-namespace restrict voyager to its own namespace
--run-on-master run voyager operator on master
--enable-apiserver configure admission webhook for Voyager CRDs
--enable-admission-webhook configure admission webhook for Voyager CRDs
--template-cfgmap=CONFIGMAP name of configmap with custom templates

# install without RBAC roles
Expand Down Expand Up @@ -89,11 +89,11 @@ $ curl -fsSL https://raw.githubusercontent.com/appscode/voyager/6.0.0-alpha.0/ha
| bash -s -- --provider=$provider --docker-registry=MY_REGISTRY [--image-pull-secret=SECRET_NAME] [--rbac]
```

Voyager implements a [validating admission webhook](https://kubernetes.io/docs/admin/admission-controllers/#validatingadmissionwebhook-alpha-in-18-beta-in-19) to validate Voyager CRDs. To enable this feature, pass the `--enable-apiserver` flag. _Please note that, this works with Kubernetes 1.9.0 or later releases_.
Voyager implements a [validating admission webhook](https://kubernetes.io/docs/admin/admission-controllers/#validatingadmissionwebhook-alpha-in-18-beta-in-19) to validate Voyager CRDs. To enable this feature, pass the `--enable-admission-webhook` flag. _Please note that, this works with Kubernetes 1.9.0 or later releases_.

```console
$ curl -fsSL https://raw.githubusercontent.com/appscode/voyager/6.0.0-alpha.0/hack/deploy/voyager.sh \
| bash -s -- --provider=$provider --enable-apiserver [--rbac]
| bash -s -- --provider=$provider --enable-admission-webhook [--rbac]
```

__N.B.__
Expand Down
3 changes: 2 additions & 1 deletion docs/setup/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ Please follow the steps below to uninstall Voyager:
- Delete the deployment and service used for Voyager operator.

```console
$ curl -fsSL https://raw.githubusercontent.com/appscode/voyager/6.0.0-alpha.0/hack/deploy/uninstall.sh | bash
$ curl -fsSL https://raw.githubusercontent.com/appscode/voyager/6.0.0-alpha.0/hack/deploy/voyager.sh \
| bash -s -- --uninstall [--namespace=NAMESPACE]

+ kubectl delete deployment -l app=voyager -n kube-system
deployment "voyager-operator" deleted
Expand Down
35 changes: 35 additions & 0 deletions hack/deploy/admission.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# register to intercept voyager CRD creates / updates
apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
name: admission.voyager.appscode.com
labels:
app: voyager
webhooks:
- name: admission.voyager.appscode.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/admission.voyager.appscode.com/v1beta1/admissionreviews
caBundle: $KUBE_CA
rules:
- operations:
- CREATE
- UPDATE
apiGroups:
- voyager.appscode.com
apiVersions:
- "*"
resources:
- "*"
- operations:
- CREATE
- UPDATE
apiGroups:
- extensions
apiVersions:
- v1beta1
resources:
- ingresses
failurePolicy: Fail
163 changes: 0 additions & 163 deletions hack/deploy/admission/operator.yaml

This file was deleted.

42 changes: 0 additions & 42 deletions hack/deploy/admission/rbac-list.yaml

This file was deleted.

76 changes: 0 additions & 76 deletions hack/deploy/operator-with-custom-tpl.yaml

This file was deleted.

Loading

0 comments on commit 96a7967

Please sign in to comment.