Skip to content

Commit

Permalink
deploy source-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
frewilhelm committed Jan 16, 2025
1 parent 1b31e29 commit a39704d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
3 changes: 2 additions & 1 deletion config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ resources:
- bases/delivery.ocm.software_resourceconfigs.yaml
# +kubebuilder:scaffold:crdkustomizeresource

patches:
namePrefix: ocm-k8s-toolkit-

# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
# patches here are for enabling the conversion webhook for each CRD
# +kubebuilder:scaffold:crdkustomizewebhookpatch
Expand Down
10 changes: 3 additions & 7 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# Adds namespace to all resources.
namespace: ocm-k8s-toolkit-system

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: ocm-k8s-toolkit-

# Labels to add to all resources and selectors.
#labels:
#- includeSelectors: true
Expand All @@ -18,6 +11,9 @@ resources:
- ../crd
- ../rbac
- ../manager
- ../source-controller


# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
# crd/kustomization.yaml
#- ../webhook
Expand Down
3 changes: 1 addition & 2 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
resources:
- manager.yaml
- service.yaml
namePrefix: ocm-k8s-toolkit-
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: localhost:31000/ocm.software/ocm-controller
newTag: v0.0.1
1 change: 1 addition & 0 deletions config/prometheus/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
resources:
- monitor.yaml
namePrefix: ocm-k8s-toolkit-
4 changes: 3 additions & 1 deletion config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ resources:
- component_editor_role.yaml
- component_viewer_role.yaml
- ocmrepository_editor_role.yaml
- ocmrepository_viewer_role.yaml
- ocmrepository_viewer_role.yaml

namePrefix: ocm-k8s-toolkit-
5 changes: 5 additions & 0 deletions config/source-controller/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resources:
# - https://github.com/fluxcd/source-controller//config/default #Problem with overlapping namespace
- https://github.com/fluxcd/source-controller//config/crd
- https://github.com/fluxcd/source-controller//config/rbac
- https://github.com/fluxcd/source-controller//config/manager

0 comments on commit a39704d

Please sign in to comment.