Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,10 @@
"$ref": "#/definitions/Dapr",
"description": "Dapr configuration for the Container App."
},
"runtime": {
"$ref": "#/definitions/Runtime",
"description": "App runtime configuration for the Container App."
},
"maxInactiveRevisions": {
"format": "int32",
"description": "Optional. Max inactive revisions a Container App can have.",
Expand Down Expand Up @@ -856,6 +860,36 @@
}
}
},
"Runtime": {
"description": "Container App Runtime configuration.",
"type": "object",
"properties": {
Copy link
Contributor

@ms-zhenhua ms-zhenhua Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kind and java should not have default values, because the user may want to update only one of them.
https://github.com/Azure/azure-rest-api-specs/pull/27892/checks?check_run_id=22018340669

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, default value removed

"kind": {
"description": "Container App language runtime kind, Default is generic",
"enum": [
"generic",
"java"
],
"type": "string",
"default": "generic",
"x-ms-enum": {
"name": "kind",
"modelAsString": true
}
},
"java": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please confirm that ARM will treat this object as optional, and that we won't have to declare it if the customer didn't define it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, no "required" restriction on runtime variables

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

"description": "Java app configuration",
"type": "object",
"properties": {
"enableMetrics": {
"description": "Enable jmx core metrics for the java app",
"default": false,
"type": "boolean"
}
}
}
}
},
"Ingress": {
"description": "Container App Ingress configuration.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@
"logLevel": "debug",
"enableApiLogging": true
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
},
"maxInactiveRevisions": 10,
"service": {
"type": "redis"
Expand Down Expand Up @@ -257,6 +263,12 @@
"appPort": 3000,
"appProtocol": "http",
"httpReadBufferSize": 30
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
}
},
"template": {
Expand Down Expand Up @@ -382,6 +394,12 @@
"appPort": 3000,
"appProtocol": "http",
"httpReadBufferSize": 30
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
}
},
"template": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@
"logLevel": "debug",
"enableApiLogging": true
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
},
"maxInactiveRevisions": 10
},
"template": {
Expand Down Expand Up @@ -226,6 +232,12 @@
"appPort": 3000,
"appProtocol": "http",
"httpReadBufferSize": 30
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
}
},
"template": {
Expand Down Expand Up @@ -331,6 +343,12 @@
"appPort": 3000,
"appProtocol": "http",
"httpReadBufferSize": 30
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
}
},
"template": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@
"logLevel": "debug",
"enableApiLogging": true
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
},
"maxInactiveRevisions": 10,
"service": {
"type": "redis"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@
"logLevel": "debug",
"enableApiLogging": true
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
},
"maxInactiveRevisions": 10
},
"template": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@
"logLevel": "debug",
"enableApiLogging": true
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
},
"maxInactiveRevisions": 10,
"service": {
"type": "redis"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@
"logLevel": "debug",
"enableApiLogging": true
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
},
"maxInactiveRevisions": 10,
"service": {
"type": "redis"
Expand Down Expand Up @@ -197,6 +203,12 @@
"logLevel": "debug",
"enableApiLogging": true
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
},
"maxInactiveRevisions": 10
},
"template": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@
"logLevel": "debug",
"enableApiLogging": true
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
},
"maxInactiveRevisions": 10
},
"template": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@
"logLevel": "debug",
"enableApiLogging": true
},
"runtime": {
"kind": "java",
"java": {
"enableMetrics": true
}
},
"maxInactiveRevisions": 10
},
"template": {
Expand Down