-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: vsoch <[email protected]>
- Loading branch information
Showing
5 changed files
with
42 additions
and
31 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 was deleted.
Oops, something went wrong.
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,16 +1,6 @@ | ||
apiVersion: flux-framework.org/v1alpha1 | ||
kind: MiniCluster | ||
metadata: | ||
name: flux-sample | ||
namespace: flux-operator | ||
spec: | ||
# Set to true to use volume mounts instead of volume claims | ||
localDeploy: true | ||
|
||
# Number of pods to create for MiniCluster | ||
size: 4 | ||
|
||
# This is a list because a pod can support multiple containers | ||
containers: | ||
- image: ghcr.io/flux-framework/flux-restful-api:latest | ||
command: echo hello world | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: /bin/bash ./test.sh | ||
namespaced: true | ||
timeout: 60 |
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,16 @@ | ||
apiVersion: flux-framework.org/v1alpha1 | ||
kind: MiniCluster | ||
metadata: | ||
name: flux-sample | ||
namespace: flux-operator | ||
spec: | ||
# Set to true to use volume mounts instead of volume claims | ||
localDeploy: true | ||
|
||
# Number of pods to create for MiniCluster | ||
size: 4 | ||
|
||
# This is a list because a pod can support multiple containers | ||
containers: | ||
- image: ghcr.io/flux-framework/flux-restful-api:latest | ||
command: echo hello world |
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,11 @@ | ||
#!/bin/bash | ||
|
||
kubectl get -n flux-operator pods | ||
kubectl get -n flux-operator jobs | ||
pods=$(kubectl get -n ${NAMESPACE} pod --output=jsonpath={.items..metadata.name}); | ||
echo "Pods: ${pods}" | ||
pod="${pods%% *}" | ||
echo "Namespace: ${NAMESPACE}" | ||
echo "Pod: ${pod}" | ||
|
||
kubectl logs -n ${NAMESPACE} ${pod} |