From 991465c246caee62cf32e7718c077b9ec0157fd2 Mon Sep 17 00:00:00 2001 From: DrunkBatya Date: Mon, 22 Jul 2024 12:33:16 +0300 Subject: [PATCH] Remove helm --- .github/workflows/build.yml | 16 ------- helm/.helmignore | 23 ---------- helm/Chart.yaml | 5 --- .../templates/horizontalrunnerautoscaler.yaml | 18 -------- helm/templates/runnerdeployment.yaml | 44 ------------------- helm/values.yaml | 0 6 files changed, 106 deletions(-) delete mode 100644 helm/.helmignore delete mode 100644 helm/Chart.yaml delete mode 100644 helm/templates/horizontalrunnerautoscaler.yaml delete mode 100644 helm/templates/runnerdeployment.yaml delete mode 100644 helm/values.yaml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2ff4e09..0c8d8db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,9 +18,6 @@ jobs: - name: 'Checkout code' uses: actions/checkout@v4 - - name: 'Install Helm' - uses: azure/setup-helm@v4.2.0 - - name: 'Set image tag and name' id: tag run: | @@ -79,19 +76,6 @@ jobs: cache-to: type=registry,ref=${{ steps.tag.outputs.image_name }}-fz-fw:buildcache,mode=max context: flipperzero-firmware - - name: 'Login to Docker Hub' - uses: docker/login-action@v3 - with: - registry: registry-1.docker.io - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASSWORD }} - - - name: 'Push helm chart' - if: ${{ github.event_name != 'pull_request' }} - run: | - helm package helm --version ${IMAGE_TAG}; - helm push github-actions-runner-${IMAGE_TAG}.tgz oci://registry-1.docker.io/flipperdevices; - - name: 'Trigger k8s to use new image android: prod' if: ${{ (github.event_name != 'pull_request') && (steps.tag.outputs.image_tag != '0.0.0') diff --git a/helm/.helmignore b/helm/.helmignore deleted file mode 100644 index 0e8a0eb..0000000 --- a/helm/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/helm/Chart.yaml b/helm/Chart.yaml deleted file mode 100644 index 10d7113..0000000 --- a/helm/Chart.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v2 -name: github-actions-runner -description: Github Action runners deployment -type: application -version: 0.1.0 diff --git a/helm/templates/horizontalrunnerautoscaler.yaml b/helm/templates/horizontalrunnerautoscaler.yaml deleted file mode 100644 index ccd2f89..0000000 --- a/helm/templates/horizontalrunnerautoscaler.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: actions.summerwind.dev/v1alpha1 -kind: HorizontalRunnerAutoscaler -metadata: - namespace: {{ .Release.Namespace }} - name: {{ .Release.Name }}-autoscaler -spec: - scaleDownDelaySecondsAfterScaleOut: 180 - scaleTargetRef: - kind: RunnerDeployment - name: {{ .Release.Name }} - minReplicas: {{ .Values.replicasCount }} - maxReplicas: {{ .Values.replicasCount }} - metrics: - - type: PercentageRunnersBusy - scaleUpThreshold: '0.75' - scaleDownThreshold: '0.25' - scaleUpFactor: '2' - scaleDownFactor: '0.5' diff --git a/helm/templates/runnerdeployment.yaml b/helm/templates/runnerdeployment.yaml deleted file mode 100644 index 22a566d..0000000 --- a/helm/templates/runnerdeployment.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: actions.summerwind.dev/v1alpha1 -kind: RunnerDeployment -metadata: - name: {{ .Release.Name }} - namespace: {{ .Release.Namespace }} - -spec: - template: - spec: - image: {{ .Values.repository }}:{{ .Values.tag }} - dockerdWithinRunnerContainer: {{ .Values.dockerInDocker }} - organization: {{ .Values.organization }} - labels: - {{- toYaml .Values.labels | nindent 8 }} - group: {{ .Values.runnerGroup }} - {{- if .Values.volumeMounts }} - {{- range .Values.volumeMounts }} - volumeMounts: - - mountPath: {{ .mountPath }} - name: {{ .name }} - {{- end }} - {{- range .Values.volumeMounts }} - volumes: - - name: {{ .name }} - hostPath: - path: {{ .hostPath }} - type: DirectoryOrCreate - {{- end }} - {{- end }} - dockerEnabled: false - {{- if .Values.serviceAccountName }} - serviceAccountName: {{ .Values.serviceAccountName }} - {{- else }} - serviceAccountName: default - {{- end }} - {{- if .Values.maxRunnersPerNode }} - topologySpreadConstraints: - - maxSkew: {{ .Values.maxRunnersPerNode }} - topologyKey: kubernetes.io/hostname - whenUnsatisfiable: DoNotSchedule - labelSelector: - matchLabels: - runner-deployment-name: {{ .Release.Name }} - {{- end }} diff --git a/helm/values.yaml b/helm/values.yaml deleted file mode 100644 index e69de29..0000000