mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Dont require credential for Container Groups
Might want to follow up and make this only apply to Tower on Kubernetes
This commit is contained in:
parent
29ff69a774
commit
aab58f5ae7
@ -37,7 +37,7 @@ function ContainerGroupEdit({ instanceGroup }) {
|
||||
try {
|
||||
await InstanceGroupsAPI.update(instanceGroup.id, {
|
||||
name: values.name,
|
||||
credential: values.credential.id,
|
||||
credential: values.credential ? values.credential.id : null,
|
||||
pod_spec_override: values.override ? values.pod_spec_override : null,
|
||||
});
|
||||
history.push(detailsIUrl);
|
||||
|
||||
@ -25,7 +25,6 @@ function ContainerGroupFormFields({ i18n, instanceGroup }) {
|
||||
const { setFieldValue } = useFormikContext();
|
||||
const [credentialField, credentialMeta, credentialHelpers] = useField({
|
||||
name: 'credential',
|
||||
validate: required(i18n._(t`Select a value for this field`), i18n),
|
||||
});
|
||||
|
||||
const [overrideField] = useField('override');
|
||||
@ -55,9 +54,8 @@ function ContainerGroupFormFields({ i18n, instanceGroup }) {
|
||||
onBlur={() => credentialHelpers.setTouched()}
|
||||
onChange={onCredentialChange}
|
||||
value={credentialField.value}
|
||||
required
|
||||
tooltip={i18n._(
|
||||
t`Credential to authenticate with Kubernetes or OpenShift. Must be of type "Kubernetes/OpenShift API Bearer Token”.`
|
||||
t`Credential to authenticate with Kubernetes or OpenShift. Must be of type "Kubernetes/OpenShift API Bearer Token". If left blank, the underlying Pod's service account will be used.`
|
||||
)}
|
||||
autoPopulate={!instanceGroup?.id}
|
||||
/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user