-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* oauthclient.yml * Corrects apiVersion as current causes error * package.json * kube-apply.sh * Since the patches directory has been introduced in the deploy directory, the kustomize install falls foul of the restricted root limit. By scripting the kube apply, the kustomize call can be relaxed with the load-restrictor switch. This is already used in the deploy directory Makefile
- Loading branch information
1 parent
622c7f5
commit f18ad32
Showing
3 changed files
with
22 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: v1 | ||
apiVersion: oauth.openshift.io/v1 | ||
kind: OAuthClient | ||
metadata: | ||
name: hawtio-online-dev | ||
|
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,17 @@ | ||
#!/bin/bash | ||
|
||
set -e -o pipefail | ||
|
||
if [ -z "${1}" ]; then | ||
echo "Error: no directory specified" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -d "${1}" ]; then | ||
echo "Error: directory does not exist" | ||
exit 1 | ||
fi | ||
|
||
kubectl \ | ||
kustomize --load-restrictor LoadRestrictionsNone "${1}" | \ | ||
kubectl apply -f - |