|
|
@ -24,25 +24,25 @@ var createKsCmd = &cobra.Command{
|
|
|
|
The kustomization source command generates a kustomization.kustomize.fluxcd.io resource for a given GitRepository source.
|
|
|
|
The kustomization source command generates a kustomization.kustomize.fluxcd.io resource for a given GitRepository source.
|
|
|
|
API spec: https://github.com/fluxcd/kustomize-controller/tree/master/docs/spec/v1alpha1`,
|
|
|
|
API spec: https://github.com/fluxcd/kustomize-controller/tree/master/docs/spec/v1alpha1`,
|
|
|
|
Example: ` # Create a kustomization from a source at a given path
|
|
|
|
Example: ` # Create a kustomization from a source at a given path
|
|
|
|
create kustomization backend \
|
|
|
|
create kustomization contour \
|
|
|
|
--source=webapp \
|
|
|
|
--source=contour \
|
|
|
|
--path="./overlays/backend/" \
|
|
|
|
--path="./examples/contour/" \
|
|
|
|
--prune="app=backend" \
|
|
|
|
--prune="instance=contour" \
|
|
|
|
|
|
|
|
--generate=true \
|
|
|
|
--interval=10m \
|
|
|
|
--interval=10m \
|
|
|
|
--validate=client \
|
|
|
|
--validate=client \
|
|
|
|
--health-check="StatefulSet/backend.test" \
|
|
|
|
--health-check="Deployment/contour.projectcontour" \
|
|
|
|
|
|
|
|
--health-check="DaemonSet/envoy.projectcontour" \
|
|
|
|
--health-check-timeout=3m
|
|
|
|
--health-check-timeout=3m
|
|
|
|
|
|
|
|
|
|
|
|
# Create a kustomization that depends on another
|
|
|
|
# Create a kustomization that depends on the previous one
|
|
|
|
create kustomization frontend \
|
|
|
|
create kustomization webapp \
|
|
|
|
--depends-on=backend \
|
|
|
|
--depends-on=contour \
|
|
|
|
--source=webapp \
|
|
|
|
--source=webapp \
|
|
|
|
--path="./overlays/frontend/" \
|
|
|
|
--path="./deploy/overlays/dev" \
|
|
|
|
--prune="app=frontend" \
|
|
|
|
--prune="env=dev,instance=webapp" \
|
|
|
|
--interval=5m \
|
|
|
|
--interval=5m \
|
|
|
|
--validate=client \
|
|
|
|
--validate=client
|
|
|
|
--health-check="Deployment/frontend.test" \
|
|
|
|
|
|
|
|
--health-check-timeout=2m
|
|
|
|
|
|
|
|
`,
|
|
|
|
`,
|
|
|
|
RunE: createKsCmdRun,
|
|
|
|
RunE: createKsCmdRun,
|
|
|
|
}
|
|
|
|
}
|
|
|
|