-
Notifications
You must be signed in to change notification settings - Fork 33
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
50 changed files
with
849 additions
and
118 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
spire-server: | ||
federation: | ||
enabled: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,3 @@ | ||
#!/bin/bash | ||
kubectl create namespace "spire-system" | ||
kubectl create namespace "spire-server" |
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,26 @@ | ||
spiffe-oidc-discovery-provider: | ||
enabled: true | ||
namespaceOverride: spire-server | ||
insecureScheme: | ||
enabled: true | ||
|
||
spire-server: | ||
namespaceOverride: spire-server | ||
nodeAttestor: | ||
k8sPsat: | ||
serviceAccountAllowList: ["spire-system:spire-agent"] | ||
notifier: | ||
k8sbundle: | ||
namespace: spire-system | ||
|
||
spiffe-csi-driver: | ||
enabled: true | ||
namespaceOverride: spire-system | ||
|
||
spire-agent: | ||
enabled: true | ||
namespaceOverride: spire-system | ||
serviceAccount: | ||
name: spire-agent | ||
server: | ||
namespaceOverride: spire-server |
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,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xe | ||
|
||
SCRIPT=$(readlink -f "$0") | ||
SCRIPTPATH=$(dirname "$SCRIPT") | ||
|
||
helm install \ | ||
--namespace spire-server \ | ||
--values "${SCRIPTPATH}/../../../examples/production/values.yaml" \ | ||
spire charts/spire --wait | ||
|
||
helm test spire --namespace spire-server |
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,51 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
|
||
SCRIPT=$(readlink -f "$0") | ||
SCRIPTPATH=$(dirname "$SCRIPT") | ||
|
||
k_wait=(kubectl wait --for condition=available --timeout 30s --namespace) | ||
k_rollout_status=(kubectl rollout status --watch --timeout 30s --namespace) | ||
|
||
function get_namespace_details { | ||
cat <<EOF >>"$GITHUB_STEP_SUMMARY" | ||
### Namespace $1 | ||
#### Events | ||
\`\`\`shell | ||
$(kubectl --request-timeout=30s get events --output wide --namespace "$1") | ||
\`\`\` | ||
#### Pods | ||
\`\`\`shell | ||
$(kubectl --request-timeout=30s describe pods --namespace "$1") | ||
\`\`\` | ||
#### Logs | ||
\`\`\`shell | ||
$(kubectl get pods -o name -n "$1" | while read -r line; do echo logs for "${line}"; kubectl logs -n "$1" "${line}" --all-containers=true --ignore-errors=true; done) | ||
\`\`\` | ||
EOF | ||
} | ||
cat <<EOF >>"$GITHUB_STEP_SUMMARY" | ||
### spire | ||
| workload | Status | | ||
| ------------------------------------ | ------ | | ||
| spire-server | "$("${k_rollout_status[@]}" spire-server statefulset spire-server)" | | ||
| spire-controller-manager | "$("${k_rollout_status[@]}" spire-server statefulset spire-controller-manager)" | | ||
| spire-spiffe-oidc-discovery-provider | "$("${k_wait[@]}" spire-server deployments.apps spire-spiffe-oidc-discovery-provider)" | | ||
| spire-spiffe-csi-driver | "$("${k_rollout_status[@]}" spire-system daemonset spire-spiffe-csi-driver)" | | ||
| spire-agent | "$("${k_rollout_status[@]}" spire-system daemonset spire-agent)" | | ||
EOF | ||
if [ $1 -ne 0 ]; then | ||
get_namespace_details spire-server | ||
get_namespace_details spire-systen | ||
fi |
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,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
kubectl create namespace spire-system | ||
kubectl label namespace spire-system pod-security.kubernetes.io/enforce=privileged | ||
kubectl create namespace spire-server | ||
kubectl label namespace spire-server pod-security.kubernetes.io/enforce=restricted |
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,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
helm install kube-prometheus-stack kube-prometheus-stack --version 45.7.1 --repo https://prometheus-community.github.io/helm-charts -n "$scenario" --wait |
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
Validating CODEOWNERS rules …
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
Oops, something went wrong.