Skip to content

Commit 2b28133

Browse files
Merge pull request #336 from kstrenkova/fix-ansible-test-inconsistencies
Fix naming inconsistency in AnsibleTest
2 parents db6f360 + 16614a6 commit 2b28133

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

api/v1beta1/ansibletest_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type AnsibleTestSpec struct {
3838
// +kubebuilder:default:="dataplane-ansible-ssh-private-key-secret"
3939
// ComputeSSHKeySecretName is the name of the k8s secret that contains an ssh key for computes.
4040
// The key is mounted to ~/.ssh/id_ecdsa in the ansible pod
41-
ComputesSSHKeySecretName string `json:"computeSSHKeySecretName"`
41+
ComputeSSHKeySecretName string `json:"computeSSHKeySecretName"`
4242

4343
// +kubebuilder:validation:Optional
4444
// +kubebuilder:validation:MaxLength=253
@@ -119,7 +119,7 @@ type AnsibleTestWorkflowSpec struct {
119119
// +operator-sdk:csv:customresourcedefinitions:type=spec
120120
// ComputeSSHKeySecretName is the name of the k8s secret that contains an ssh key for computes.
121121
// The key is mounted to ~/.ssh/id_ecdsa in the ansible pod
122-
ComputesSSHKeySecretName string `json:"computeSSHKeySecretName"`
122+
ComputeSSHKeySecretName string `json:"computeSSHKeySecretName"`
123123

124124
// +kubebuilder:validation:Optional
125125
// +kubebuilder:validation:MaxLength=253

controllers/ansibletest_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func (r *AnsibleTestReconciler) PrepareAnsibleEnv(
274274

275275
// volumes workflow override
276276
workflowOverrideParams["WorkloadSSHKeySecretName"] = instance.Spec.WorkloadSSHKeySecretName
277-
workflowOverrideParams["ComputesSSHKeySecretName"] = instance.Spec.ComputesSSHKeySecretName
277+
workflowOverrideParams["ComputeSSHKeySecretName"] = instance.Spec.ComputeSSHKeySecretName
278278
workflowOverrideParams["ContainerImage"] = instance.Spec.ContainerImage
279279

280280
// bool

pkg/ansibletest/volumes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func GetVolumes(
8585
Name: "compute-ssh-secret",
8686
VolumeSource: corev1.VolumeSource{
8787
Secret: &corev1.SecretVolumeSource{
88-
SecretName: workflowOverrideParams["ComputesSSHKeySecretName"],
88+
SecretName: workflowOverrideParams["ComputeSSHKeySecretName"],
8989
DefaultMode: &privateKeyMode,
9090
},
9191
},

0 commit comments

Comments
 (0)