Skip to content

Commit

Permalink
Refactor with provide flux api
Browse files Browse the repository at this point in the history
Signed-off-by: chengleqi <leqicheng@stu.xidian.edu.cn>
  • Loading branch information
chengleqi committed Aug 23, 2022
1 parent 0de3b98 commit 24226d2
Show file tree
Hide file tree
Showing 29 changed files with 3,473 additions and 1,373 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ deploy: manifests

# Generate manifests e.g. CRD, RBAC etc.
manifests: controller-gen
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=ks-devops webhook paths="./..." output:crd:artifacts:config=config/crd/bases
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=ks-devops webhook paths="./pkg/api/..." output:crd:artifacts:config=config/crd/bases

install-crd:
kubectl apply -f config/crd/bases
Expand Down
215 changes: 186 additions & 29 deletions config/crd/bases/gitops.kubesphere.io_applications.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ rules:
- get
- list
- update
- watch
- apiGroups:
- kustomize.toolkit.fluxcd.io
resources:
Expand All @@ -316,6 +317,7 @@ rules:
- get
- list
- update
- watch
- apiGroups:
- source.toolkit.fluxcd.io
resources:
Expand All @@ -334,3 +336,4 @@ rules:
- create
- get
- list
- watch
2 changes: 1 addition & 1 deletion config/samples/gitops/fluxcd-application-helmtemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
config:
helmRelease:
chart:
template: my-devops-projecthmhx2-chengleqi-test-helm
template: chengleqi-test-helm
deploy:
- destination:
kubeConfig:
Expand Down
Loading

0 comments on commit 24226d2

Please sign in to comment.