This commit is contained in:
parent
f11d726cfe
commit
dea7c8021d
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@ -26,9 +26,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: v3.10.0
|
version: v3.10.0
|
||||||
|
|
||||||
|
- name: Import GPG key
|
||||||
|
id: import_gpg
|
||||||
|
uses: crazy-max/ghaction-import-gpg@v5.0.0
|
||||||
|
with:
|
||||||
|
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
|
passphrase: ${{ secrets.PASSPHRASE }}
|
||||||
|
|
||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
uses: helm/chart-releaser-action@v1.4.1
|
uses: helm/chart-releaser-action@v1.4.1
|
||||||
with:
|
with:
|
||||||
charts_dir: charts
|
charts_dir: charts
|
||||||
env:
|
env:
|
||||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
CR_SIGN: "true"
|
||||||
|
CR_KEY: "FF0C2839718CAF2E"
|
||||||
|
40
Dockerfile
40
Dockerfile
@ -7,47 +7,21 @@ RUN apk add wget unzip
|
|||||||
RUN cd /tmp && wget https://github.com/bitwarden/clients/releases/download/cli-v${BW_VERSION}/bw-linux-${BW_VERSION}.zip && \
|
RUN cd /tmp && wget https://github.com/bitwarden/clients/releases/download/cli-v${BW_VERSION}/bw-linux-${BW_VERSION}.zip && \
|
||||||
unzip /tmp/bw-linux-${BW_VERSION}.zip
|
unzip /tmp/bw-linux-${BW_VERSION}.zip
|
||||||
|
|
||||||
#FROM alpine:3.18 as run
|
FROM alpine:3.17
|
||||||
#
|
|
||||||
#RUN set -eux; \
|
|
||||||
# groupadd -r bw-operator ; \
|
|
||||||
# useradd -r -g bw-operator -s /sbin/nologin bw-operator; \
|
|
||||||
# mkdir -p /home/bw-operator; \
|
|
||||||
# chown -R bw-operator /home/bw-operator; \
|
|
||||||
# chmod +x /usr/local/bin/bw; \
|
|
||||||
# apk add libstdc++ python3 py-pip
|
|
||||||
#COPY --chown=bw-operator:bw-operator bitwarden-crd-operator.py /home/bw-operator/bitwarden-crd-operator.py
|
|
||||||
#
|
|
||||||
#USER bw-operator
|
|
||||||
#
|
|
||||||
#RUN set -eux; \
|
|
||||||
# pip install -r requirements.txt --no-warn-script-location
|
|
||||||
#
|
|
||||||
#ENTRYPOINT [ "/home/bw-operator/.local/bin/kopf", "run", "--all-namespaces", "--liveness=http://0.0.0.0:8080/healthz" ]
|
|
||||||
#CMD [ "/home/bw-operator/bitwarden-crd-operator.py" ]
|
|
||||||
|
|
||||||
FROM ubuntu:jammy
|
|
||||||
|
|
||||||
COPY --from=builder /tmp/bw /usr/local/bin/bw
|
COPY --from=builder /tmp/bw /usr/local/bin/bw
|
||||||
|
COPY --chown=bw-operator:bw-operator src /home/bw-operator
|
||||||
COPY requirements.txt requirements.txt
|
COPY requirements.txt requirements.txt
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
groupadd -r bw-operator ; \
|
addgroup -S -g 1000 bw-operator; \
|
||||||
useradd -r -g bw-operator -s /sbin/nologin bw-operator; \
|
adduser -S -D -u 1000 -G bw-operator bw-operator; \
|
||||||
mkdir -p /home/bw-operator; \
|
mkdir -p /home/bw-operator; \
|
||||||
chown -R bw-operator /home/bw-operator; \
|
chown -R bw-operator /home/bw-operator; \
|
||||||
chmod +x /usr/local/bin/bw; \
|
chmod +x /usr/local/bin/bw; \
|
||||||
apt-get update; \
|
apk add gcc musl-dev libstdc++ gcompat python3 py-pip; \
|
||||||
apt-get upgrade -y; \
|
pip install -r requirements.txt --no-warn-script-location; \
|
||||||
apt-get install -y --no-install-recommends python3 python3-pip; \
|
apk del --purge gcc musl-dev libstdc++;
|
||||||
apt-get clean; \
|
|
||||||
apt-get -y autoremove; \
|
|
||||||
pip install -r requirements.txt; \
|
|
||||||
rm requirements.txt; \
|
|
||||||
pip cache purge; \
|
|
||||||
rm -rf /root/.cache;
|
|
||||||
|
|
||||||
COPY --chown=bw-operator:bw-operator src /home/bw-operator
|
|
||||||
|
|
||||||
USER bw-operator
|
USER bw-operator
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@ description: Deploy the Bitwarden CRD Operator
|
|||||||
|
|
||||||
type: application
|
type: application
|
||||||
|
|
||||||
version: "v0.3.1"
|
version: "v0.3.2"
|
||||||
|
|
||||||
appVersion: "0.2.1"
|
appVersion: "0.3.0"
|
||||||
|
|
||||||
keywords:
|
keywords:
|
||||||
- operator
|
- operator
|
||||||
@ -39,11 +39,42 @@ annotations:
|
|||||||
name: registry-credential
|
name: registry-credential
|
||||||
displayName: Regestry Credentials
|
displayName: Regestry Credentials
|
||||||
description: Management Object to create regestry secrets from bitwarden
|
description: Management Object to create regestry secrets from bitwarden
|
||||||
|
artifacthub.io/crdsExamples: |
|
||||||
|
- apiVersion: lerentis.uploadfilter24.eu/v1beta3
|
||||||
|
kind: BitwardenSecret
|
||||||
|
metadata:
|
||||||
|
name: test
|
||||||
|
spec:
|
||||||
|
content:
|
||||||
|
- element:
|
||||||
|
secretName: username
|
||||||
|
secretRef: nameofUser
|
||||||
|
- element:
|
||||||
|
secretName: password
|
||||||
|
secretRef: passwordOfUser
|
||||||
|
id: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
|
||||||
|
name: "test-secret"
|
||||||
|
namespace: "default"
|
||||||
|
- apiVersion: lerentis.uploadfilter24.eu/v1beta3
|
||||||
|
kind: RegistryCredential
|
||||||
|
metadata:
|
||||||
|
name: test
|
||||||
|
spec:
|
||||||
|
usernameRef: "username"
|
||||||
|
passwordRef: "password"
|
||||||
|
registry: "docker.io"
|
||||||
|
id: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
|
||||||
|
name: "test-regcred"
|
||||||
|
namespace: "default"
|
||||||
artifacthub.io/license: MIT
|
artifacthub.io/license: MIT
|
||||||
artifacthub.io/operator: "true"
|
artifacthub.io/operator: "true"
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: changed
|
- kind: changed
|
||||||
description: "Mainternence update and image rebuild to include upstream fixes"
|
description: "Switched to Alpine image"
|
||||||
|
- kind: added
|
||||||
|
description: "Added CRDs Example to artifactshub"
|
||||||
|
- kind: added
|
||||||
|
description: "Sign helm chart"
|
||||||
artifacthub.io/images: |
|
artifacthub.io/images: |
|
||||||
- name: bitwarden-crd-operator
|
- name: bitwarden-crd-operator
|
||||||
image: lerentis/bitwarden-crd-operator:0.2.1
|
image: lerentis/bitwarden-crd-operator:0.2.1
|
||||||
|
Loading…
Reference in New Issue
Block a user