-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c6acdc
commit 3248a2c
Showing
11 changed files
with
262 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
bundlebee-documentation/src/main/minisite/content/_partials/argocd.bundlebee.placeholders.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#! /bin/sh | ||
|
||
java -Dio.yupiik.bundlebee.level=WARNING -jar \ | ||
/opt/yupiik/bundlebee/lib/bundlebee.jar placeholder-extract \ | ||
--outputType ARGOCD \ | ||
--bundlebee-kube-namespace "${ARGOCD_APP_NAMESPACE}" \ | ||
--from "$ARGOCD_APP_SOURCE_PATH" --manifest "${ARGOCD_APP_SOURCE_PATH}/bundlebee/manifest.json" --alveolus "$ARGOCD_APP_NAME" |
8 changes: 8 additions & 0 deletions
8
bundlebee-documentation/src/main/minisite/content/_partials/argocd.bundlebee.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /bin/sh | ||
|
||
java -Dio.yupiik.bundlebee.level=WARNING -jar \ | ||
/opt/yupiik/bundlebee/lib/bundlebee.jar process \ | ||
--injectTimestamp false --injectBundleBeeMetadata false \ | ||
--output stdout \ | ||
--bundlebee-kube-namespace "${ARGOCD_APP_NAMESPACE}" \ | ||
--from "$ARGOCD_APP_SOURCE_PATH" --manifest "${ARGOCD_APP_SOURCE_PATH}/bundlebee/manifest.json" --alveolus "$ARGOCD_APP_NAME" |
19 changes: 19 additions & 0 deletions
19
bundlebee-documentation/src/main/minisite/content/_partials/argocd.configmanagement.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ConfigManagementPlugin | ||
metadata: | ||
name: bundlebee-plugin | ||
spec: | ||
version: v1.0 | ||
init: | ||
# if you use any kind of secret management, it can be neat to run a command there to decipher the secrets and prepare generate command | ||
command: [sh] | ||
args: [-c, 'echo "BundleBee plugin"'] | ||
generate: | ||
command: [ "/opt/yupiik/bundlebee/bin/bundlebee.sh" ] | ||
discover: | ||
find: | ||
glob: "**/bundlebee/manifest.json" | ||
parameters: | ||
dynamic: | ||
command: [ "/opt/yupiik/bundlebee/bin/bundlebee.placeholders.sh" ] | ||
preserveFileMode: false |
8 changes: 8 additions & 0 deletions
8
bundlebee-documentation/src/main/minisite/content/_partials/argocd.dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM ossyupiik/java:17.0.9.1 | ||
RUN mkdir -p /opt/yupiik/bundlebee/lib /opt/yupiik/bundlebee/bin && \ | ||
wget https://repo.maven.apache.org/maven2/io/yupiik/bundlebee-core/1.0.24/bundlebee-core-1.0.24-fat.jar -O /opt/yupiik/bundlebee/lib/bundlebee.jar <1> | ||
COPY ./bundlebee.argocd-plugin.yaml /home/argocd/cmp-server/config/plugin.yaml <2> | ||
COPY ./bundlebee.plugin.sh /opt/yupiik/bundlebee/bin/bundlebee.sh | ||
RUN chmod +x /opt/yupiik/bundlebee/bin/*.sh && chown 999:0 -R /opt/yupiik/ | ||
USER 999 | ||
ENTRYPOINT ["/opt/yupiik/bundlebee/bin/bundlebee.sh"] |
Oops, something went wrong.