-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for new CRD and operator name parameterization
Signed-off-by: Sergio Arroutbi <[email protected]>
- Loading branch information
Showing
101 changed files
with
860 additions
and
15 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
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
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 @@ | ||
./reg_test_ori/ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
TestHelpers/reg_test_openshift_konflux/conf_test/main/daemons_v1alpha1_tangserver.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,15 @@ | ||
--- | ||
apiVersion: nbde.openshift.io/v1alpha1 | ||
kind: TangServer | ||
metadata: | ||
name: tangserver-main | ||
namespace: nbde | ||
finalizers: | ||
- finalizer.nbde.tangserver.openshift.io | ||
spec: | ||
# Add fields here | ||
replicas: 3 | ||
image: "registry.redhat.io/rhel9/tang" | ||
version: "latest" | ||
persistentVolumeClaim: "tangserver-pvc-main" | ||
serviceListenPort: 9999 |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
TestHelpers/reg_test_openshift_konflux/conf_test/minimal/daemons_v1alpha1_tangserver.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,12 @@ | ||
--- | ||
apiVersion: nbde.openshift.io/v1alpha1 | ||
kind: TangServer | ||
metadata: | ||
name: tangserver | ||
namespace: nbde | ||
finalizers: | ||
- finalizer.nbde.tangserver.openshift.io | ||
spec: | ||
image: "registry.redhat.io/rhel9/tang" | ||
version: "latest" | ||
replicas: 1 |
File renamed without changes.
28 changes: 28 additions & 0 deletions
28
...rs/reg_test_openshift_konflux/conf_test/multi_deployment/daemons_v1alpha1_tangserver.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,28 @@ | ||
--- | ||
apiVersion: nbde.openshift.io/v1alpha1 | ||
kind: TangServer | ||
metadata: | ||
name: tangserver-multi1 | ||
namespace: nbde | ||
finalizers: | ||
- finalizer.nbde.tangserver.openshift.io | ||
spec: | ||
replicas: 2 | ||
image: "registry.redhat.io/rhel9/tang" | ||
version: "latest" | ||
persistentVolumeClaim: "tangserver-pvc-multi1" | ||
serviceListenPort: 9998 | ||
--- | ||
apiVersion: nbde.openshift.io/v1alpha1 | ||
kind: TangServer | ||
metadata: | ||
name: tangserver-multi2 | ||
namespace: nbde | ||
finalizers: | ||
- finalizer.nbde.tangserver.openshift.io | ||
spec: | ||
replicas: 3 | ||
image: "registry.redhat.io/rhel9/tang" | ||
version: "latest" | ||
persistentVolumeClaim: "tangserver-pvc-multi2" | ||
serviceListenPort: 9999 |
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
...elpers/reg_test_openshift_konflux/func_test/key_rotation/daemons_v1alpha1_tangserver.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,13 @@ | ||
--- | ||
apiVersion: nbde.openshift.io/v1alpha1 | ||
kind: TangServer | ||
metadata: | ||
name: tangserver-key-rotation | ||
namespace: nbde | ||
finalizers: | ||
- finalizer.nbde.tangserver.openshift.io | ||
spec: | ||
# Add fields here | ||
replicas: 1 | ||
image: "registry.redhat.io/rhel9/tang" | ||
version: "latest" |
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions
28
...est_openshift_konflux/func_test/multiple_deployment_test/daemons_v1alpha1_tangserver.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,28 @@ | ||
--- | ||
apiVersion: nbde.openshift.io/v1alpha1 | ||
kind: TangServer | ||
metadata: | ||
name: tangserver-functional1 | ||
namespace: nbde | ||
finalizers: | ||
- finalizer.nbde.tangserver.openshift.io | ||
spec: | ||
replicas: 1 | ||
image: "registry.redhat.io/rhel9/tang" | ||
version: "latest" | ||
persistentVolumeClaim: "tangserver-pvc-functional1" | ||
serviceListenPort: 3333 | ||
--- | ||
apiVersion: nbde.openshift.io/v1alpha1 | ||
kind: TangServer | ||
metadata: | ||
name: tangserver-functional2 | ||
namespace: nbde | ||
finalizers: | ||
- finalizer.nbde.tangserver.openshift.io | ||
spec: | ||
replicas: 1 | ||
image: "registry.redhat.io/rhel9/tang" | ||
version: "latest" | ||
persistentVolumeClaim: "tangserver-pvc-functional2" | ||
serviceListenPort: 4444 |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
...ers/reg_test_openshift_konflux/func_test/none_cluster_ip/daemons_v1alpha1_tangserver.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,14 @@ | ||
--- | ||
apiVersion: nbde.openshift.io/v1alpha1 | ||
kind: TangServer | ||
metadata: | ||
name: tangserver-none-cluster-ip | ||
namespace: nbde | ||
finalizers: | ||
- finalizer.nbde.tangserver.openshift.io | ||
spec: | ||
replicas: 1 | ||
image: "registry.redhat.io/rhel9/tang" | ||
version: "latest" | ||
clusterIP: "None" | ||
serviceType: "ClusterIP" |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
..._test_openshift_konflux/func_test/unique_deployment_test/daemons_v1alpha1_tangserver.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,15 @@ | ||
--- | ||
apiVersion: nbde.openshift.io/v1alpha1 | ||
kind: TangServer | ||
metadata: | ||
name: tangserver-functional | ||
namespace: nbde | ||
finalizers: | ||
- finalizer.nbde.tangserver.openshift.io | ||
spec: | ||
# Add fields here | ||
replicas: 1 | ||
image: "registry.redhat.io/rhel9/tang" | ||
version: "latest" | ||
persistentVolumeClaim: "tangserver-pvc-main" | ||
serviceListenPort: 2222 |
54 changes: 54 additions & 0 deletions
54
TestHelpers/reg_test_openshift_konflux/key_management_test/api_key_rotate.sh
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,54 @@ | ||
#!/bin/bash -e | ||
|
||
namespace="" | ||
|
||
usage() { | ||
echo | ||
echo "Usage:" | ||
echo | ||
echo "$1 -n namespace -c openshift_client" | ||
echo | ||
exit "$2" | ||
} | ||
|
||
while getopts "n:c:hv" arg | ||
do | ||
case "${arg}" in | ||
n) namespace=${OPTARG} | ||
;; | ||
c) oc_client=${OPTARG} | ||
;; | ||
h) usage "$0" 0 | ||
;; | ||
v) set -x | ||
;; | ||
*) usage "$0" 1 | ||
;; | ||
esac | ||
done | ||
|
||
test -z "${namespace}" && namespace="default" | ||
test -z "${oc_client}" && oc_client="oc" | ||
|
||
sha1_1=$("${oc_client}" -n nbde get tangservers.nbde.openshift.io -o json | jq '.items[0].status.activeKeys[0].sha1') | ||
replicas=$("${oc_client}" -n nbde get tangservers.nbde.openshift.io -o json | jq '.items[0].spec.replicas') | ||
|
||
ftemp=$(mktemp) | ||
cat<<EOF>"${ftemp}" | ||
apiVersion: nbde.openshift.io/v1alpha1 | ||
kind: TangServer | ||
metadata: | ||
name: tangserver-mini | ||
namespace: nbde | ||
finalizers: | ||
- finalizer.daemons.tangserver.redhat.com | ||
spec: | ||
replicas: ${replicas} | ||
image: "registry.redhat.io/rhel9/tang" | ||
version: "latest" | ||
hiddenKeys: | ||
- sha1: ${sha1_1} | ||
EOF | ||
"${oc_client}" apply -f "${ftemp}" -n "${namespace}" | ||
rm "${ftemp}" |
Oops, something went wrong.