Skip to content

Commit

Permalink
Adding new and changed files for testing of PR_40
Browse files Browse the repository at this point in the history
  • Loading branch information
Conformitron Bot committed May 9, 2024
1 parent 1362374 commit 1e2a506
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 0 deletions.
13 changes: 13 additions & 0 deletions eks-anywhere-common/Addons/Partner/TestPartner/config-map-40.yml
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
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 eks-anywhere-common/Addons/Partner/TestPartner/namespace.yaml
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
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 eks-anywhere-common/Addons/Partner/TestPartner/perfectscale.yaml
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 eks-anywhere-common/Testers/TestPartner/perfectscale-test-job.yaml
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

0 comments on commit 1e2a506

Please sign in to comment.