-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Showing
5 changed files
with
67 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# load file from http | ||
|
||
Resource and patch files could be loaded from http | ||
|
||
<!-- @loadHttp --> | ||
```sh | ||
DEMO_HOME=$(mktemp -d) | ||
|
||
cat <<EOF >$DEMO_HOME/kustomization.yaml | ||
resources: | ||
- https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/examples/helloWorld/configMap.yaml | ||
EOF | ||
``` | ||
|
||
<!-- @loadHttp --> | ||
```sh | ||
test 1 == \ | ||
$(kustomize build $DEMO_HOME | grep "Good Morning!" | wc -l); \ | ||
echo $? | ||
``` | ||
|
||
Kustomize will try loading resource as a file either from local or http. If it | ||
fails, try to load it as a directory or git repository. | ||
|
||
Http load applies to patches as well. See full example in [loadHttp](loadHttp/). |
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,15 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/examples/wordpress/wordpress/deployment.yaml | ||
- https://github.com/knative/serving/releases/download/v0.12.0/serving.yaml # redirects to s3 | ||
patches: | ||
- https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/examples/wordpress/patch.yaml | ||
patchesStrategicMerge: | ||
- |- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: custom-metrics-auth-reader | ||
namespace: kube-system | ||
$patch: delete |