Cluster policy type

thrinadhReddy
New Contributor II

Hi guys,

I am creating a cluster policy through json. 

"runtime_engine": {

"type": "fixed"

"value": "PHOTON"

}

When I run the above code... PHOTON option is getting enabled but graying out... What would I specify in type field so that the photon option should not be grayed out.

Thank you 😊

Hi Kaniz,

Thanks for the reply.

Yes. This is exactly what I am looking for.

"It appears that you’re trying to configure the runtime_engine in Databricks cluster policy using JSON. The PHOTON option is getting enabled but greyed out, and you’d like to know how to prevent that. Let’s dive into this!"

I don't want it to be grayed out.. I just want it to be checked and accessible...

I used standard Databricks Runtime (11.3 LTS (Scala 2.12, Spark 3.3.0)).

Is there anything other than type=fixed, so that it won't gray out.

Yeshwanth
Databricks Employee
Databricks Employee

@thrinadhReddy

This section includes a reference for each of the available policy types. There are two categories of policy types: fixed policies and limiting policies.

Fixed policies prevent user configuration on an attribute. The two types of fixed policies are:

https://docs.databricks.com/en/admin/clusters/policy-definition.html#supported-policy-types

Beast regards,

Yesh

Hi Yeshwant,

I did go through that link. No combination of choices work in my scenario. I tried all type options, nothing works.

Khalil_Robinson
New Contributor II

Hey, 

If you change the type to "allowlist" and provide "PHOTON" and "STANDARD" as options that should fix your issue.

here is an example:

 

"runtime_engine": {

"type": "allowlist"

"value": ["PHOTON", "STANDARD"]

"defaultValue": "PHOTON"

}