Skip to content

Instantly share code, notes, and snippets.

View bmoussaud's full-sized avatar
😀

Benoit Moussaud bmoussaud

😀
View GitHub Profile
apiVersion: v1
kind: Namespace
metadata:
name: micropets-int
labels:
param.nsp.tap/pipeline: java
param.nsp.tap/database: postgres
param.nsp.tap/languages: java,golang,angular
profile: "full"
excluded_packages:
- grype.scanning.apps.tanzu.vmware.com
ceip_policy_disclosed: true
buildservice:
kp_default_repository: "harbor.mytanzu.xyz/library/build-service"
kp_default_repository_username: "administrator"
kp_default_repository_password: "yyyyyyyy"
tanzunet_username: "user@vmware.com"
#@ load("@ytt:data", "data")
#@ load("@ytt:template", "template")
#@yaml/text-templated-strings
#@ val1 = "port:(@= str(data.values.service.port) @)"
#@ val2 = "val2"
---
apiVersion: v1
kind: ConfigMap
metadata:
@bmoussaud
bmoussaud / kpack_logs.sh
Created September 1, 2021 15:48
KPack Logs script file
#!/usr/bin/env bash
#set -x
IMAGE=$1
NAMESPACE=$2
POD=$(kubectl -n ${NAMESPACE} get image ${IMAGE} -o jsonpath="{.status.latestBuildRef}")
echo "${POD}"
CONTAINERS=$(kubectl -n ${NAMESPACE} get pod ${POD}-build-pod -o jsonpath="{.spec['initContainers'][*].name}")
echo ${CONTAINERS}
@bmoussaud
bmoussaud / size.sh
Created February 17, 2021 14:50
Size of the files in a directory
du -h -d 1 | sort -hr
@bmoussaud
bmoussaud / Keybase.md
Created September 15, 2019 11:28
Keybase.md

Keybase proof

I hereby claim:

  • I am bmoussaud on github.
  • I am bmoussaud (https://keybase.io/bmoussaud) on keybase.
  • I have a public key ASDe9NsJKzWAas2IS6R7WH0YjWBUrlGzMvpjYpVcjUikago

To claim this, I am signing this object:

@bmoussaud
bmoussaud / synthetic.xml
Created June 14, 2018 14:18
wls.Domain runWithDaemon
<type-modification type="wls.Domain">
<property name="runWithDaemon" kind="boolean" hidden="false" required="false" category="Advanced" description="Set to true to execute commands with the Python daemon"/>
</type-modification>
https://github.com/xebialabs-community/xlr-jython-code-snippets
Hi all,
Ok, in case you need, key-value needs to/can be updated with this kind of jython script :
task.variableMapping = {"pythonScript. dicoPackageMapOut " : "$""{dicoPackageMap}"}
@bmoussaud
bmoussaud / gist:8dcec4e3b81976cedbc6189a528f9b95
Created May 15, 2018 16:00
control task delegate du generic plugin peut être utilisé sur des types de base…
Un control task delegate du generic plugin peut être utilisé sur des types de base…
<type type="da.GenericFileDeployed" extends="udm.BaseDeployedArtifact" deployable-type="da.GenericFile"
container-type="da.FileContainer" description="WAS CNAF J2EE Application Resources Deployment" >
<generate-deployable type="da.GenericFile" extends="udm.BaseDeployableArtifact"/>
<method name="JMM_restart" label="JMM Beautiful restart..."
description="Restart"
delegate="shellScripts"
scripts="control-tasks/test.ftl,control-task/step2.ftl"
# script script/deploy-artifact.sh.ftl
echo "Deploying file on Unix"
mkdir -p ${deployed.container.home + "/context"}
cp ${deployed.file.path} ${deployed.container.home + "/context"}
echo "Done"