Skip to content

Commit

Permalink
Merge pull request #418 from sangkenlee/params2parameters
Browse files Browse the repository at this point in the history
tkspolicy 필드 변경 params->parameters
  • Loading branch information
ktkfree authored Apr 23, 2024
2 parents 3bb9367 + 26b7a8c commit e06d8ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/policy-template/policy-operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func PolicyToTksPolicyCR(policy *model.Policy) *TKSPolicy {
Clusters: targetClusterIds,
Template: policy.PolicyTemplate.Kind,
Match: policy.Match,
Params: params,
Parameters: params,
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/policy-template/tkspolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type TKSPolicySpec struct {
Clusters []string `json:"clusters"`
Template string `json:"template" validate:"required"`

Params *apiextensionsv1.JSON `json:"params,omitempty"`
Parameters *apiextensionsv1.JSON `json:"parameters,omitempty"`
Match *domain.Match `json:"match,omitempty"`
EnforcementAction string `json:"enforcementAction,omitempty"`
}
Expand Down

0 comments on commit e06d8ec

Please sign in to comment.