forked from aws-samples/eks-anywhere-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding new and changed files for testing of PR_40
- Loading branch information
Conformitron Bot
committed
May 9, 2024
1 parent
1362374
commit 1e2a506
Showing
6 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
eks-anywhere-common/Addons/Partner/TestPartner/config-map-40.yml
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 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: perfectscale-configmap | ||
namespace: perfectscale | ||
labels: | ||
bot: conformitron | ||
data: | ||
Namespace: perfectscale | ||
prNumber: "40" | ||
commitHash: 749df4b0138f7a40df5dfb2cf0e1f516f06e3a7a | ||
deployed: "1715291056" | ||
env: common |
21 changes: 21 additions & 0 deletions
21
eks-anywhere-common/Addons/Partner/TestPartner/external-secret.yaml
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,21 @@ | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: perfectscale-external-secret | ||
namespace: perfectscale | ||
spec: | ||
refreshInterval: 1m | ||
secretStoreRef: | ||
name: eksa-secret-store | ||
kind: ClusterSecretStore | ||
target: | ||
name: perfectscale-sm-secret | ||
data: | ||
- secretKey: clientId | ||
remoteRef: | ||
key: perfectscale-secrets | ||
property: clientId | ||
- secretKey: clientSecret | ||
remoteRef: | ||
key: perfectscale-secrets | ||
property: clientSecret |
8 changes: 8 additions & 0 deletions
8
eks-anywhere-common/Addons/Partner/TestPartner/namespace.yaml
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,8 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: perfectscale | ||
labels: | ||
aws.conformance.vendor: perfectscale | ||
aws.conformance.vendor-solution: perfectscale | ||
aws.conformance.vendor-solution-version: v0.0.38 |
9 changes: 9 additions & 0 deletions
9
eks-anywhere-common/Addons/Partner/TestPartner/perfectscale-source.yaml
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,9 @@ | ||
--- | ||
apiVersion: source.toolkit.fluxcd.io/v1beta2 | ||
kind: HelmRepository | ||
metadata: | ||
name: perfectscale-charts | ||
namespace: flux-system | ||
spec: | ||
interval: 30s | ||
url: https://perfectscale-io.github.io |
31 changes: 31 additions & 0 deletions
31
eks-anywhere-common/Addons/Partner/TestPartner/perfectscale.yaml
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,31 @@ | ||
--- | ||
apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
metadata: | ||
name: perfectscale | ||
namespace: perfectscale | ||
spec: | ||
chart: | ||
spec: | ||
chart: exporter | ||
reconcileStrategy: ChartVersion | ||
sourceRef: | ||
kind: HelmRepository | ||
name: perfectscale-charts | ||
namespace: flux-system | ||
version: v0.0.38 | ||
interval: 1m0s | ||
targetNamespace: perfectscale | ||
values: | ||
secret: | ||
create: | ||
true | ||
valuesFrom: | ||
- kind: Secret | ||
name: perfectscale-sm-secret | ||
valuesKey: clientId | ||
targetPath: secret.clientId | ||
- kind: Secret | ||
name: perfectscale-sm-secret | ||
valuesKey: clientSecret | ||
targetPath: secret.clientSecret |
29 changes: 29 additions & 0 deletions
29
eks-anywhere-common/Testers/TestPartner/perfectscale-test-job.yaml
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,29 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: perfectscale-test-job | ||
namespace: perfectscale | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: perfectscale-test-job | ||
image: badouralix/curl-jq:ubuntu | ||
command: ["sh", "-c"] | ||
args: | ||
- | | ||
url="http://perfectscale-perfectscale-exporter:80/status/auth" | ||
while true; do | ||
response=$(curl -s "$url") | ||
policy=$(echo "$response" | jq -r '.data.policy') | ||
if [ "$policy" = "ok" ]; then | ||
echo "Perfectscale Exporter was successfully connected to the backend" | ||
break | ||
else | ||
echo "Waiting for connection..." | ||
sleep 10 | ||
fi | ||
done | ||
restartPolicy: Never |