"title":"Roles are user defined RBAC roles associated with this project",
"title":"Roles are user defined RBAC roles associated with this project",
...
@@ -2943,6 +2948,14 @@
...
@@ -2943,6 +2948,14 @@
"title":"ApplicationTree holds nodes which belongs to the application",
"title":"ApplicationTree holds nodes which belongs to the application",
"properties":{
"properties":{
"nodes":{
"nodes":{
"description":"Nodes contains list of nodes which either directly managed by the application and children of directly managed nodes.",
"type":"array",
"items":{
"$ref":"#/definitions/v1alpha1ResourceNode"
}
},
"orphanedNodes":{
"description":"OrphanedNodes contains if or orphaned nodes: nodes which are not managed by the app but in the same namespace. List is populated only if orphaned resources enabled in app project.",
"type":"array",
"type":"array",
"items":{
"items":{
"$ref":"#/definitions/v1alpha1ResourceNode"
"$ref":"#/definitions/v1alpha1ResourceNode"
...
@@ -3205,6 +3218,17 @@
...
@@ -3205,6 +3218,17 @@
}
}
}
}
},
},
"v1alpha1OrphanedResourcesMonitorSettings":{
"type":"object",
"title":"OrphanedResourcesMonitorSettings holds settings of orphaned resources monitoring",
"properties":{
"warn":{
"type":"boolean",
"format":"boolean",
"title":"Warn indicates if warning condition should be created for apps which have orphaned resources"
}
}
},
"v1alpha1ProjectRole":{
"v1alpha1ProjectRole":{
"type":"object",
"type":"object",
"title":"ProjectRole represents a role that has access to a project",
"title":"ProjectRole represents a role that has access to a project",
@@ -734,9 +734,8 @@ type resourceInfoProvider struct {
...
@@ -734,9 +734,8 @@ type resourceInfoProvider struct {
// Infer if obj is namespaced or not from corresponding live objects list. If corresponding live object has namespace then target object is also namespaced.
// Infer if obj is namespaced or not from corresponding live objects list. If corresponding live object has namespace then target object is also namespaced.
// If live object is missing then it does not matter if target is namespaced or not.
// If live object is missing then it does not matter if target is namespaced or not.
// Ignore resource unless it is permitted in the app project. If project is not permitted then it is not controlled by the user and there is no point showing the warning.
// Application is a definition of Application resource.
// Application is a definition of Application resource.
...
@@ -248,7 +251,11 @@ message ApplicationSummary {
...
@@ -248,7 +251,11 @@ message ApplicationSummary {
// ApplicationTree holds nodes which belongs to the application
// ApplicationTree holds nodes which belongs to the application
messageApplicationTree{
messageApplicationTree{
// Nodes contains list of nodes which either directly managed by the application and children of directly managed nodes.
repeatedResourceNodenodes=1;
repeatedResourceNodenodes=1;
// OrphanedNodes contains if or orphaned nodes: nodes which are not managed by the app but in the same namespace. List is populated only if orphaned resources enabled in app project.
repeatedResourceNodeorphanedNodes=2;
}
}
// ApplicationWatchEvent contains information about application change.
// ApplicationWatchEvent contains information about application change.