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

feature. bug fix for stack_templates #377

Merged
merged 1 commit into from
Apr 15, 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
62 changes: 56 additions & 6 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11266,12 +11266,21 @@ const docTemplate = `{
},
"github_com_openinfradev_tks-api_pkg_domain.CreatePolicyRequest": {
"type": "object",
"required": [
"enforcementAction",
"policyName"
],
"properties": {
"description": {
"type": "string"
},
"enforcementAction": {
"type": "string",
"enum": [
"deny",
"dryrun",
"warn"
],
"example": "deny"
},
"mandatory": {
Expand Down Expand Up @@ -11333,7 +11342,9 @@ const docTemplate = `{
"type": "object",
"required": [
"kind",
"rego"
"rego",
"severity",
"templateName"
],
"properties": {
"deprecated": {
Expand Down Expand Up @@ -15068,12 +15079,22 @@ const docTemplate = `{
},
"github_com_openinfradev_tks-api_pkg_domain.UpdatePolicyRequest": {
"type": "object",
"required": [
"enforcementAction",
"policyName"
],
"properties": {
"description": {
"type": "string"
},
"enforcementAction": {
"type": "string"
"type": "string",
"enum": [
"deny",
"dryrun",
"warn"
],
"example": "deny"
},
"mandatory": {
"type": "boolean"
Expand Down Expand Up @@ -15110,6 +15131,9 @@ const docTemplate = `{
},
"github_com_openinfradev_tks-api_pkg_domain.UpdatePolicyTemplateRequest": {
"type": "object",
"required": [
"templateName"
],
"properties": {
"deprecated": {
"type": "boolean",
Expand Down Expand Up @@ -15237,11 +15261,22 @@ const docTemplate = `{
"github_com_openinfradev_tks-api_pkg_domain.UpdateStackTemplateRequest": {
"type": "object",
"required": [
"serviceIds"
"kubeType",
"kubeVersion",
"organizationIds",
"platform",
"serviceIds",
"template",
"version"
],
"properties": {
"cloudService": {
"type": "string"
"type": "string",
"enum": [
"AWS",
"AZZURE",
"GCP"
]
},
"description": {
"type": "string"
Expand All @@ -15252,6 +15287,12 @@ const docTemplate = `{
"kubeVersion": {
"type": "string"
},
"organizationIds": {
"type": "array",
"items": {
"type": "string"
}
},
"platform": {
"type": "string"
},
Expand All @@ -15265,7 +15306,11 @@ const docTemplate = `{
"type": "string"
},
"templateType": {
"type": "string"
"type": "string",
"enum": [
"STANDARD",
"MSA"
]
},
"version": {
"type": "string"
Expand Down Expand Up @@ -15633,7 +15678,9 @@ const docTemplate = `{
"type": "object",
"required": [
"kind",
"rego"
"rego",
"severity",
"templateName"
],
"properties": {
"deprecated": {
Expand Down Expand Up @@ -15987,6 +16034,9 @@ const docTemplate = `{
},
"github_com_openinfradev_tks-api_pkg_domain_admin.UpdatePolicyTemplateRequest": {
"type": "object",
"required": [
"templateName"
],
"properties": {
"deprecated": {
"type": "boolean",
Expand Down
62 changes: 56 additions & 6 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -11260,12 +11260,21 @@
},
"github_com_openinfradev_tks-api_pkg_domain.CreatePolicyRequest": {
"type": "object",
"required": [
"enforcementAction",
"policyName"
],
"properties": {
"description": {
"type": "string"
},
"enforcementAction": {
"type": "string",
"enum": [
"deny",
"dryrun",
"warn"
],
"example": "deny"
},
"mandatory": {
Expand Down Expand Up @@ -11327,7 +11336,9 @@
"type": "object",
"required": [
"kind",
"rego"
"rego",
"severity",
"templateName"
],
"properties": {
"deprecated": {
Expand Down Expand Up @@ -15062,12 +15073,22 @@
},
"github_com_openinfradev_tks-api_pkg_domain.UpdatePolicyRequest": {
"type": "object",
"required": [
"enforcementAction",
"policyName"
],
"properties": {
"description": {
"type": "string"
},
"enforcementAction": {
"type": "string"
"type": "string",
"enum": [
"deny",
"dryrun",
"warn"
],
"example": "deny"
},
"mandatory": {
"type": "boolean"
Expand Down Expand Up @@ -15104,6 +15125,9 @@
},
"github_com_openinfradev_tks-api_pkg_domain.UpdatePolicyTemplateRequest": {
"type": "object",
"required": [
"templateName"
],
"properties": {
"deprecated": {
"type": "boolean",
Expand Down Expand Up @@ -15231,11 +15255,22 @@
"github_com_openinfradev_tks-api_pkg_domain.UpdateStackTemplateRequest": {
"type": "object",
"required": [
"serviceIds"
"kubeType",
"kubeVersion",
"organizationIds",
"platform",
"serviceIds",
"template",
"version"
],
"properties": {
"cloudService": {
"type": "string"
"type": "string",
"enum": [
"AWS",
"AZZURE",
"GCP"
]
},
"description": {
"type": "string"
Expand All @@ -15246,6 +15281,12 @@
"kubeVersion": {
"type": "string"
},
"organizationIds": {
"type": "array",
"items": {
"type": "string"
}
},
"platform": {
"type": "string"
},
Expand All @@ -15259,7 +15300,11 @@
"type": "string"
},
"templateType": {
"type": "string"
"type": "string",
"enum": [
"STANDARD",
"MSA"
]
},
"version": {
"type": "string"
Expand Down Expand Up @@ -15627,7 +15672,9 @@
"type": "object",
"required": [
"kind",
"rego"
"rego",
"severity",
"templateName"
],
"properties": {
"deprecated": {
Expand Down Expand Up @@ -15981,6 +16028,9 @@
},
"github_com_openinfradev_tks-api_pkg_domain_admin.UpdatePolicyTemplateRequest": {
"type": "object",
"required": [
"templateName"
],
"properties": {
"deprecated": {
"type": "boolean",
Expand Down
40 changes: 40 additions & 0 deletions api/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,10 @@ definitions:
description:
type: string
enforcementAction:
enum:
- deny
- dryrun
- warn
example: deny
type: string
mandatory:
Expand Down Expand Up @@ -993,6 +997,9 @@ definitions:
templateId:
example: d98ef5f1-4a68-4047-a446-2207787ce3ff
type: string
required:
- enforcementAction
- policyName
type: object
github_com_openinfradev_tks-api_pkg_domain.CreatePolicyResponse:
properties:
Expand Down Expand Up @@ -1046,6 +1053,8 @@ definitions:
required:
- kind
- rego
- severity
- templateName
type: object
github_com_openinfradev_tks-api_pkg_domain.CreatePolicyTemplateVersionRequest:
properties:
Expand Down Expand Up @@ -3492,6 +3501,11 @@ definitions:
description:
type: string
enforcementAction:
enum:
- deny
- dryrun
- warn
example: deny
type: string
mandatory:
type: boolean
Expand All @@ -3515,6 +3529,9 @@ definitions:
templateId:
example: d98ef5f1-4a68-4047-a446-2207787ce3ff
type: string
required:
- enforcementAction
- policyName
type: object
github_com_openinfradev_tks-api_pkg_domain.UpdatePolicyTemplateRequest:
properties:
Expand All @@ -3537,6 +3554,8 @@ definitions:
templateName:
example: 필수 Label 검사
type: string
required:
- templateName
type: object
github_com_openinfradev_tks-api_pkg_domain.UpdatePrimaryClusterRequest:
properties:
Expand Down Expand Up @@ -3602,13 +3621,21 @@ definitions:
github_com_openinfradev_tks-api_pkg_domain.UpdateStackTemplateRequest:
properties:
cloudService:
enum:
- AWS
- AZZURE
- GCP
type: string
description:
type: string
kubeType:
type: string
kubeVersion:
type: string
organizationIds:
items:
type: string
type: array
platform:
type: string
serviceIds:
Expand All @@ -3618,11 +3645,20 @@ definitions:
template:
type: string
templateType:
enum:
- STANDARD
- MSA
type: string
version:
type: string
required:
- kubeType
- kubeVersion
- organizationIds
- platform
- serviceIds
- template
- version
type: object
github_com_openinfradev_tks-api_pkg_domain.UpdateSystemNotificationRequest:
properties:
Expand Down Expand Up @@ -3906,6 +3942,8 @@ definitions:
required:
- kind
- rego
- severity
- templateName
type: object
github_com_openinfradev_tks-api_pkg_domain_admin.CreatePolicyTemplateVersionRequest:
properties:
Expand Down Expand Up @@ -4129,6 +4167,8 @@ definitions:
templateName:
example: 필수 Label 검사
type: string
required:
- templateName
type: object
github_com_openinfradev_tks-api_pkg_httpErrors.RestError:
properties:
Expand Down
Loading
Loading