feat: add custom entrypoint script for additional Ruby gems #63

Merged
unkinben merged 1 commits from benvin/custom_entrypoint_scripts into main 2026-03-21 16:01:46 +11:00
3 changed files with 18 additions and 0 deletions
Showing only changes of commit b1fef210ac - Show all commits
@@ -99,6 +99,9 @@ spec:
- mountPath: /opt/vault-ca-cert.crt
name: vault-ca-cert
subPath: ca.crt
- mountPath: /container-custom-entrypoint.d/additional-ruby-gems.sh
name: additional-ruby-gems
subPath: additional-ruby-gems.sh
initContainers:
- name: copy-configmaps
image: busybox:1.35
@@ -235,5 +238,9 @@ spec:
- name: vault-ca-cert
secret:
secretName: vault-ca-cert
- name: additional-ruby-gems
configMap:
name: additional-ruby-gems
defaultMode: 0755
strategy:
type: RollingUpdate
+5
View File
@@ -54,3 +54,8 @@ configMapGenerator:
- resources/cobbler-enc
options:
disableNameSuffixHash: true
- name: additional-ruby-gems
files:
- resources/additional-ruby-gems.sh
options:
disableNameSuffixHash: true
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
set -e
echo "Installing additional Ruby gems..."
/opt/puppetlabs/puppet/bin/gem install toml
echo "Additional Ruby gems installed successfully"