Skip to content

Commit

Permalink
Merge pull request #3 from schemahero/paths
Browse files Browse the repository at this point in the history
Refactor kustomization paths for kustomize 2
  • Loading branch information
marccampbell committed May 9, 2019
2 parents 778bbe0 + e182d04 commit fafb8b3
Show file tree
Hide file tree
Showing 8 changed files with 182 additions and 7 deletions.
12 changes: 6 additions & 6 deletions config/default/kustomization.yaml
Expand Up @@ -18,15 +18,15 @@ namePrefix: schemahero-
# YAML string, with resources separated by document
# markers ("---").
resources:
- ../rbac/rbac_role.yaml
- ../rbac/rbac_role_binding.yaml
- ../manager/manager.yaml
- ./rbac/rbac_role.yaml
- ./rbac/rbac_role_binding.yaml
- ./manager/manager.yaml
# Comment the following 3 lines if you want to disable
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
# which protects your /metrics endpoint.
- ../rbac/auth_proxy_service.yaml
- ../rbac/auth_proxy_role.yaml
- ../rbac/auth_proxy_role_binding.yaml
- ./rbac/auth_proxy_service.yaml
- ./rbac/auth_proxy_role.yaml
- ./rbac/auth_proxy_role_binding.yaml

patches:
- manager_image_patch.yaml
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
163 changes: 163 additions & 0 deletions config/default/rbac/rbac_role.yaml
@@ -0,0 +1,163 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: manager-role
rules:
- apiGroups:
- apps
resources:
- deployments
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- apps
resources:
- deployments/status
verbs:
- get
- update
- patch
- apiGroups:
- databases.schemahero.io
resources:
- databases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- databases.schemahero.io
resources:
- databases/status
verbs:
- get
- update
- patch
- apiGroups:
- apps
resources:
- deployments
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- apps
resources:
- deployments/status
verbs:
- get
- update
- patch
- apiGroups:
- schemas.schemahero.io
resources:
- migrations
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- schemas.schemahero.io
resources:
- migrations/status
verbs:
- get
- update
- patch
- apiGroups:
- apps
resources:
- deployments
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- apps
resources:
- deployments/status
verbs:
- get
- update
- patch
- apiGroups:
- schemas.schemahero.io
resources:
- tables
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- schemas.schemahero.io
resources:
- tables/status
verbs:
- get
- update
- patch
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- services
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
13 changes: 13 additions & 0 deletions config/default/rbac/rbac_role_binding.yaml
@@ -0,0 +1,13 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
creationTimestamp: null
name: manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: manager-role
subjects:
- kind: ServiceAccount
name: default
namespace: system
1 change: 0 additions & 1 deletion integration/postgres/Makefile
Expand Up @@ -23,4 +23,3 @@ crd:
sed -i'' -e 's@image: .*@image: '"${MANAGER_IMAGE_NAME}"'@' ../../config/integration/manager_image_patch.yaml

KUBECONFIG=$$(kind get kubeconfig-path --name="$(CLUSTER_NAME)") kubectl apply -f ../../config/crds
kustomize build ../../config/integration | KUBECONFIG=$$(kind get kubeconfig-path --name="$(CLUSTER_NAME)") kubectl apply -f -

0 comments on commit fafb8b3

Please sign in to comment.