feat: rename plugin to helm-kustomize and remove rewrite
This commit is contained in:
@@ -29,7 +29,6 @@ mkdir -p base
|
|||||||
echo "helm template -n $ARGOCD_APP_NAMESPACE $PARAM_FLAGS $VALUES $ARGOCD_APP_NAME $CHART" > /tmp/$ARGOCD_APP_NAME-helm.sh
|
echo "helm template -n $ARGOCD_APP_NAMESPACE $PARAM_FLAGS $VALUES $ARGOCD_APP_NAME $CHART" > /tmp/$ARGOCD_APP_NAME-helm.sh
|
||||||
helm template -n $ARGOCD_APP_NAMESPACE $PARAM_FLAGS $VALUES $ARGOCD_APP_NAME $CHART > ./base/_manifest.yaml
|
helm template -n $ARGOCD_APP_NAMESPACE $PARAM_FLAGS $VALUES $ARGOCD_APP_NAME $CHART > ./base/_manifest.yaml
|
||||||
|
|
||||||
sed -i "$PARAM_REWRITE" ./base/_manifest.yaml
|
|
||||||
cp ./base/_manifest.yaml /tmp/$ARGOCD_APP_NAME-manifest.yaml
|
cp ./base/_manifest.yaml /tmp/$ARGOCD_APP_NAME-manifest.yaml
|
||||||
|
|
||||||
[ -d "$PARAM_ENV" ] && kubectl kustomize $PARAM_ENV > /tmp/$ARGOCD_APP_NAME-manifest.yaml
|
[ -d "$PARAM_ENV" ] && kubectl kustomize $PARAM_ENV > /tmp/$ARGOCD_APP_NAME-manifest.yaml
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: ConfigManagementPlugin
|
kind: ConfigManagementPlugin
|
||||||
metadata:
|
metadata:
|
||||||
name: kustomize-helm-with-rewrite
|
name: helm-kustomize
|
||||||
spec:
|
spec:
|
||||||
# version: v1.2
|
# version: v1.2
|
||||||
# The init command runs in the Application source directory at the beginning of each manifest generation. The init
|
# The init command runs in the Application source directory at the beginning of each manifest generation. The init
|
||||||
@@ -52,13 +52,6 @@ spec:
|
|||||||
itemType: string
|
itemType: string
|
||||||
collectionType: string
|
collectionType: string
|
||||||
string: "staging"
|
string: "staging"
|
||||||
- name: rewrite
|
|
||||||
title: Rewrite
|
|
||||||
tooltip: sed rewrite experssion
|
|
||||||
required: false
|
|
||||||
itemType: string
|
|
||||||
collectionType: string
|
|
||||||
string: ""
|
|
||||||
- name: chart
|
- name: chart
|
||||||
title: Chart
|
title: Chart
|
||||||
tooltip: Name or path of helm chart
|
tooltip: Name or path of helm chart
|
||||||
@@ -83,10 +76,10 @@ spec:
|
|||||||
# map:
|
# map:
|
||||||
# some: value
|
# some: value
|
||||||
# collectionType: map
|
# collectionType: map
|
||||||
dynamic:
|
# dynamic:
|
||||||
# The command is run in an Application's source directory. Standard output must be JSON matching the schema of the
|
# The command is run in an Application's source directory. Standard output must be JSON matching the schema of the
|
||||||
# static parameter announcements list.
|
# static parameter announcements list.
|
||||||
command: [ /bin/sh, /plugin/get-values.sh ]
|
# command: [ /bin/sh, /plugin/get-values.sh ]
|
||||||
|
|
||||||
# If set to `true` then the plugin receives repository files with original file mode. Dangerous since the repository
|
# If set to `true` then the plugin receives repository files with original file mode. Dangerous since the repository
|
||||||
# might have executable files. Set to true only if you trust the CMP plugin authors.
|
# might have executable files. Set to true only if you trust the CMP plugin authors.
|
||||||
Reference in New Issue
Block a user