Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
482e65a316 | ||
|
|
51fb12e8a0 | ||
|
|
7effe1975a | ||
|
|
e386d5d7e0 | ||
|
|
7b03727989 | ||
|
|
91a0f95107 | ||
|
|
321d7b5820 | ||
|
|
3b4636fa30 |
21
.github/workflows/smarter-org-docker-buildx.yml
vendored
Normal file
21
.github/workflows/smarter-org-docker-buildx.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Docker Image BuildX CI and Publish
|
||||
|
||||
# This workflow uses actions that are not certified by GitHub.
|
||||
# They are provided by a third-party and are governed by
|
||||
# separate terms of service, privacy policy, and support
|
||||
# documentation.
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "19 16 * * *"
|
||||
push:
|
||||
branches: ["main"]
|
||||
# Publish semver tags as releases.
|
||||
tags: ["v*.*.*"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
uses: smarter-project/reusable-workflows/.github/workflows/smarter-org-docker-buildx.yml@main
|
||||
14
.github/workflows/smarter-org-helm.yml
vendored
Normal file
14
.github/workflows/smarter-org-helm.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# release.yaml
|
||||
name: Release Charts
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
release:
|
||||
uses: smarter-project/reusable-workflows/.github/workflows/smarter-org-helm.yml@main
|
||||
secrets:
|
||||
GPG_KEYRING_BASE64: ${{ secrets.GPG_KEYRING_BASE64 }}
|
||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||
@@ -1,6 +0,0 @@
|
||||
include:
|
||||
- project: 'ericvh/gitlab-ci-arm-template'
|
||||
file: '/.gitlab-ci.yml'
|
||||
|
||||
variables:
|
||||
CI_BUILDX_ARCHS: "linux/amd64,linux/arm64"
|
||||
@@ -1,21 +1,17 @@
|
||||
apiVersion: v2
|
||||
name: smarter-device-manager
|
||||
description: smarter-device-manager chart for SMARTER edge devices
|
||||
home: https://gitlab.com/smarter-project/smarter-device-manager/helm
|
||||
version: 0.0.2
|
||||
appVersion: v1.20.11
|
||||
home: https://getsmarter.io
|
||||
version: 0.0.9
|
||||
appVersion: v1.20.12
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
keywords:
|
||||
- kubernetes
|
||||
- device
|
||||
- hardware
|
||||
sources:
|
||||
- https://gitlab.com/smarter-project/smarter-device-manager
|
||||
#dependencies:
|
||||
# - name: smarter-common
|
||||
# repository: https://gitlab.com/smarter-project/documentation
|
||||
# version: 0.0.1
|
||||
|
||||
- https://github.com/smarter-project/smarter-device-manager
|
||||
icon: https://github.com/smarter-project/documentation/raw/main/ARM1636_Project_Logo_ST2_RGB_V1.png
|
||||
annotations:
|
||||
artifacthub.io/changes: |
|
||||
- Fix template
|
||||
@@ -26,5 +22,5 @@ annotations:
|
||||
email: alexandref75@gmail.com
|
||||
artifacthub.io/prerelease: "false"
|
||||
artifacthub.io/signKey: |
|
||||
fingerprint: 82AD709FEC4ECA4C84B093889BDC9DE410CFC23B
|
||||
url: https://keybase.io/alexandref75/pgp_keys.asc
|
||||
fingerprint: 71EDA4E3D652DC73EB09E3A5387D298C169CF24E
|
||||
url: https://smarter-project.github.io/documentation/pgp_keys.asc
|
||||
@@ -6,9 +6,10 @@ For more information check out https://getsmarter.io
|
||||
|
||||
## TL;DR
|
||||
|
||||
Assumes that this repository was cloned.
|
||||
|
||||
```console
|
||||
helm repo add smarter https://smarter-project.gitlab.io/documentation/charts
|
||||
helm install my-smarter-device-manager smarter-device-manager --version 0.0.2
|
||||
helm install --nsmespace=smarter --create-namespace my-smarter-device-manager charts/smarter-device-manager
|
||||
```
|
||||
|
||||
## Overview
|
||||
@@ -2,7 +2,6 @@ apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: {{ .Values.application.appName }}
|
||||
namespace: {{ .Values.application.namespace }}
|
||||
labels:
|
||||
name: {{ .Values.application.appName }}
|
||||
role: agent
|
||||
@@ -20,7 +19,11 @@ spec:
|
||||
node.kubernetes.io/bootstrap-checkpoint: "true"
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{- toYaml .Values.configuration.nodeSelector | nindent 8 }}
|
||||
{{- if .Values.nodeSelector }}
|
||||
{{- toYaml .Values.nodeSelector | nindent 8 }}
|
||||
{{- else }}
|
||||
smarter.device-manager: enabled
|
||||
{{- end }}
|
||||
tolerations:
|
||||
- key: "smarter.type"
|
||||
operator: "Equal"
|
||||
@@ -3,7 +3,6 @@ apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Values.application.appName }}
|
||||
namespace: {{ .Values.application.namespace }}
|
||||
data:
|
||||
conf.yaml: |
|
||||
{{- toYaml .Values.config | nindent 4 }}
|
||||
@@ -1,19 +1,14 @@
|
||||
#
|
||||
|
||||
application:
|
||||
namespace: smarter
|
||||
appName: smarter-device-manager
|
||||
|
||||
image:
|
||||
repository: registry.gitlab.com/smarter-project/smarter-device-manager
|
||||
repository: ghcr.io/smarter-project/smarter-device-manager
|
||||
# @default -- chart.appVersion
|
||||
tag: ""
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
configuration:
|
||||
nodeSelector:
|
||||
smarter.device-manager: enabled
|
||||
|
||||
# If a specific configurations is used it can be provided by uncommenting this lines
|
||||
# config:
|
||||
# - devicematch: ^snd$
|
||||
@@ -36,7 +36,7 @@ function printHelp() {
|
||||
}
|
||||
|
||||
BUILD_TAG=$(date -u "+%Y%m%d%H%M%S")
|
||||
REPOSITORY_NAME="registry.gitlab.com/smarter-project/smarter-device-manager/"
|
||||
REPOSITORY_NAME="ghcr.io/smarter-project/smarter-device-manager/"
|
||||
IMAGE_NAME="smarter-device-manager"
|
||||
DIRECTORY_TO_RUN=.
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ spec:
|
||||
nodeName: smarter-jetson-xavier-4bcc2584
|
||||
containers:
|
||||
- name: smarter-device-manager
|
||||
image: registry.gitlab.com/smarter-project/smarter-device-manager:v1.20.11
|
||||
image: ghcr.io/smarter-project/smarter-device-manager:v1.20.11
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
||||
@@ -15,7 +15,7 @@ spec:
|
||||
nodeName: <replace with node to run>
|
||||
containers:
|
||||
- name: smarter-device-manager
|
||||
image: registry.gitlab.com/smarter-project/smarter-device-manager:v1.20.11
|
||||
image: ghcr.io/smarter-project/smarter-device-manager:v1.20.11
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
||||
@@ -15,7 +15,7 @@ spec:
|
||||
nodeName: <replace with node to run>
|
||||
containers:
|
||||
- name: smarter-device-manager
|
||||
image: registry.gitlab.com/smarter-project/smarter-device-manager:v1.20.11
|
||||
image: ghcr.io/smarter-project/smarter-device-manager:v1.20.11
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
||||
@@ -34,7 +34,7 @@ spec:
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
containers:
|
||||
- name: smarter-device-manager
|
||||
image: registry.gitlab.com/smarter-project/smarter-device-manager:v1.20.11
|
||||
image: ghcr.io/smarter-project/smarter-device-manager:v1.20.11
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
||||
@@ -34,7 +34,7 @@ spec:
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
containers:
|
||||
- name: smarter-device-manager
|
||||
image: registry.gitlab.com/smarter-project/smarter-device-manager:v1.20.11
|
||||
image: ghcr.io/smarter-project/smarter-device-manager:v1.20.11
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
||||
@@ -34,7 +34,7 @@ spec:
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
containers:
|
||||
- name: smarter-device-manager
|
||||
image: registry.gitlab.com/smarter-project/smarter-device-manager:v1.20.11
|
||||
image: ghcr.io/smarter-project/smarter-device-manager:v1.20.11
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
||||
@@ -34,7 +34,7 @@ spec:
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
containers:
|
||||
- name: smarter-device-manager
|
||||
image: registry.gitlab.com/smarter-project/smarter-device-manager:v1.20.11
|
||||
image: ghcr.io/smarter-project/smarter-device-manager:v1.20.11
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
||||
@@ -34,7 +34,7 @@ spec:
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
containers:
|
||||
- name: smarter-device-manager
|
||||
image: registry.gitlab.com/smarter-project/smarter-device-manager:v1.20.11
|
||||
image: ghcr.io/smarter-project/smarter-device-manager:v1.20.11
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
||||
@@ -34,7 +34,7 @@ spec:
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
containers:
|
||||
- name: smarter-device-manager
|
||||
image: registry.gitlab.com/smarter-project/smarter-device-manager:v1.20.11
|
||||
image: ghcr.io/smarter-project/smarter-device-manager:v1.20.11
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
||||
Reference in New Issue
Block a user