summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Jones <majones@redhat.com>2024-05-28 20:05:24 +0200
committerGitHub <noreply@github.com>2024-05-28 20:05:24 +0200
commit559ab3564b8962488ea592056d6e654a22e1f980 (patch)
treeb479d14097a4918a08ad438fefb956631650285b
parentUpdate test so that DAB change can merge (#15222) (diff)
downloadawx-559ab3564b8962488ea592056d6e654a22e1f980.tar.xz
awx-559ab3564b8962488ea592056d6e654a22e1f980.zip
Include Kube credentials in the inventory source picker (#15223)
-rw-r--r--awx/ui/src/components/Lookup/CredentialLookup.js4
-rw-r--r--awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/SCMSubForm.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/awx/ui/src/components/Lookup/CredentialLookup.js b/awx/ui/src/components/Lookup/CredentialLookup.js
index 5256c20e6b..f1da6f391a 100644
--- a/awx/ui/src/components/Lookup/CredentialLookup.js
+++ b/awx/ui/src/components/Lookup/CredentialLookup.js
@@ -62,7 +62,7 @@ function CredentialLookup({
? { credential_type: credentialTypeId }
: {};
const typeKindParams = credentialTypeKind
- ? { credential_type__kind: credentialTypeKind }
+ ? { credential_type__kind__in: credentialTypeKind }
: {};
const typeNamespaceParams = credentialTypeNamespace
? { credential_type__namespace: credentialTypeNamespace }
@@ -125,7 +125,7 @@ function CredentialLookup({
? { credential_type: credentialTypeId }
: {};
const typeKindParams = credentialTypeKind
- ? { credential_type__kind: credentialTypeKind }
+ ? { credential_type__kind__in: credentialTypeKind }
: {};
const typeNamespaceParams = credentialTypeNamespace
? { credential_type__namespace: credentialTypeNamespace }
diff --git a/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/SCMSubForm.js b/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/SCMSubForm.js
index 043ddcebe7..5b772bf08a 100644
--- a/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/SCMSubForm.js
+++ b/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/SCMSubForm.js
@@ -87,7 +87,7 @@ const SCMSubForm = ({ autoPopulateProject }) => {
/>
)}
<CredentialLookup
- credentialTypeKind="cloud"
+ credentialTypeKind="cloud,kubernetes"
label={t`Credential`}
value={credentialField.value}
onChange={handleCredentialUpdate}