diff --git a/.github/workflows/dev_images.yml b/.github/workflows/dev_images.yml new file mode 100644 index 000000000..f9720f7e9 --- /dev/null +++ b/.github/workflows/dev_images.yml @@ -0,0 +1,33 @@ +name: Dev Images +on: + push: + pull_request: + workflow_dispatch: +jobs: + images: + runs-on: ubuntu-latest + permissions: write-all + # not trigger on 'kosmos-io/kosmos' + if: github.repository != 'kosmos-io/kosmos' + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up qemu + uses: docker/setup-qemu-action@v2 + - name: Login registry + run: | + echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + - name: 'Get Previous tag' + id: previoustag + uses: "WyriHaximus/github-action-get-previous-tag@v1" + with: + fallback: 1.0.0 + - name: Push images + env: + ON_PLUGINS: true + REGISTRY: ghcr.io/${{ github.repository_owner }}/${{ github.repository_name }} + TAG: ${{ steps.previoustag.outputs.tag }} + run: | + make upload-images REGISTRY=${REGISTRY%?} VERSION=$TAG diff --git a/deploy/clusterlink-elector.yml b/deploy/clusterlink-elector.yml index 42840cafe..7f6201ca0 100644 --- a/deploy/clusterlink-elector.yml +++ b/deploy/clusterlink-elector.yml @@ -65,7 +65,6 @@ spec: - mountPath: /etc/clusterlink name: proxy-config readOnly: true - serviceAccount: clusterlink-elector serviceAccountName: clusterlink-elector tolerations: - effect: NoSchedule diff --git a/deploy/scheduler/deployment.yaml b/deploy/scheduler/deployment.yaml index 2959b9863..e9fdf9161 100644 --- a/deploy/scheduler/deployment.yaml +++ b/deploy/scheduler/deployment.yaml @@ -51,7 +51,6 @@ spec: restartPolicy: Always dnsPolicy: ClusterFirst serviceAccountName: kosmos-scheduler - serviceAccount: kosmos-scheduler --- apiVersion: v1 diff --git a/test/e2e/deploy/mysql-operator/mysqll-operator.yaml b/test/e2e/deploy/mysql-operator/mysqll-operator.yaml index 7f6475440..b6e696861 100644 --- a/test/e2e/deploy/mysql-operator/mysqll-operator.yaml +++ b/test/e2e/deploy/mysql-operator/mysqll-operator.yaml @@ -114,7 +114,6 @@ spec: runAsGroup: 65532 runAsNonRoot: true runAsUser: 65532 - serviceAccount: mysql-operator serviceAccountName: mysql-operator volumes: - configMap: