Skip to content

Commit

Permalink
Merge pull request #2266 from mohamed-rafraf/controller-refactor
Browse files Browse the repository at this point in the history
Refactoring the code of Controller
  • Loading branch information
ks-ci-bot authored Feb 20, 2024
2 parents ef79bee + 4522b71 commit 4ef6750
Show file tree
Hide file tree
Showing 12 changed files with 743 additions and 730 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-TEST.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
echo ${{ github.base_ref }}
tag=${{ github.base_ref }} && sed -i "2idev_tag\: $tag" roles/download/defaults/main.yml && sed -i "/ \"version\"/s/\:.*/\: \"$tag\"/g" controller/installRunner.py
docker build . --file Dockerfile --tag ks-installer
docker build . --file Dockerfile.complete --tag ks-installer
- name: Build image (push)
if: ${{ github.event_name == 'push' }}
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.complete
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ RUN apk --no-cache add jq yq bash curl unzip openssl && \
adduser -D -g kubesphere -u 1002 kubesphere

COPY --from=0 /go/src/github.com/flant/shell-operator/shell-operator /
ADD controller/* /hooks/kubesphere/
COPY controller/ /hooks/kubesphere/

RUN chown -R kubesphere:kubesphere /shell-operator && \
chown -R kubesphere:kubesphere /hooks && \
chown -R kubesphere:kubesphere /kubesphere && \
chmod +x -R /hooks/kubesphere
chmod +x /hooks/kubesphere/installRunner.py

USER kubesphere

Expand Down
Loading

0 comments on commit 4ef6750

Please sign in to comment.