Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20240409 policy update #366

Merged
merged 4 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
134 changes: 134 additions & 0 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3337,6 +3337,43 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboard/policy-update": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get the number of policytemplates that need to be updated",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Dashboards"
],
"summary": "Get the number of policytemplates that need to be updated",
"parameters": [
{
"type": "string",
"description": "Organization ID",
"name": "organizationId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyUpdateResponse"
}
}
}
}
},
"/organizations/{organizationId}/dashboard/resources": {
"get": {
"security": [
Expand Down Expand Up @@ -8331,6 +8368,84 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/stacks/{stackId}/statistics": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "클러스터의 정책과 정책 템플릿, 버전 등을 포함한 상태 목록을 조회한다.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"StackPolicyStatus"
],
"summary": "[ListStackPolicyStatus] 클러스터의 정책과 정책 템플릿, 버전 조회",
"parameters": [
{
"type": "string",
"description": "조직 식별자(o로 시작)",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "스택 식별자",
"name": "stackId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pageSize",
"name": "pageSize",
"in": "query"
},
{
"type": "string",
"description": "pageNumber",
"name": "pageNumber",
"in": "query"
},
{
"type": "string",
"description": "sortColumn",
"name": "sortColumn",
"in": "query"
},
{
"type": "string",
"description": "sortOrder",
"name": "sortOrder",
"in": "query"
},
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"description": "filters",
"name": "filters",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.ListStackPolicyStatusResponse"
}
}
}
}
},
"/organizations/{organizationId}/stacks/{stackId}/status": {
"get": {
"security": [
Expand Down Expand Up @@ -11703,6 +11818,17 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.DashboardPolicyUpdate": {
"type": "object",
"properties": {
"policy": {
"type": "integer"
},
"policyTemplate": {
"type": "integer"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.DashboardResource": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -12140,6 +12266,14 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyUpdateResponse": {
"type": "object",
"properties": {
"updatedResources": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.DashboardPolicyUpdate"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.GetDashboardResourcesResponse": {
"type": "object",
"properties": {
Expand Down
134 changes: 134 additions & 0 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3331,6 +3331,43 @@
}
}
},
"/organizations/{organizationId}/dashboard/policy-update": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get the number of policytemplates that need to be updated",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Dashboards"
],
"summary": "Get the number of policytemplates that need to be updated",
"parameters": [
{
"type": "string",
"description": "Organization ID",
"name": "organizationId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyUpdateResponse"
}
}
}
}
},
"/organizations/{organizationId}/dashboard/resources": {
"get": {
"security": [
Expand Down Expand Up @@ -8325,6 +8362,84 @@
}
}
},
"/organizations/{organizationId}/stacks/{stackId}/statistics": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "클러스터의 정책과 정책 템플릿, 버전 등을 포함한 상태 목록을 조회한다.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"StackPolicyStatus"
],
"summary": "[ListStackPolicyStatus] 클러스터의 정책과 정책 템플릿, 버전 조회",
"parameters": [
{
"type": "string",
"description": "조직 식별자(o로 시작)",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "스택 식별자",
"name": "stackId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pageSize",
"name": "pageSize",
"in": "query"
},
{
"type": "string",
"description": "pageNumber",
"name": "pageNumber",
"in": "query"
},
{
"type": "string",
"description": "sortColumn",
"name": "sortColumn",
"in": "query"
},
{
"type": "string",
"description": "sortOrder",
"name": "sortOrder",
"in": "query"
},
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"description": "filters",
"name": "filters",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.ListStackPolicyStatusResponse"
}
}
}
}
},
"/organizations/{organizationId}/stacks/{stackId}/status": {
"get": {
"security": [
Expand Down Expand Up @@ -11697,6 +11812,17 @@
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.DashboardPolicyUpdate": {
"type": "object",
"properties": {
"policy": {
"type": "integer"
},
"policyTemplate": {
"type": "integer"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.DashboardResource": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -12134,6 +12260,14 @@
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyUpdateResponse": {
"type": "object",
"properties": {
"updatedResources": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.DashboardPolicyUpdate"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.GetDashboardResourcesResponse": {
"type": "object",
"properties": {
Expand Down
Loading
Loading