Skip to content

Commit

Permalink
Merge pull request #281 from MrHohn/cloud-armor-api
Browse files Browse the repository at this point in the history
Define security policy API in BackendConfig
  • Loading branch information
nicksardo authored May 25, 2018
2 parents e00e925 + 0506bf1 commit fa9447c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
11 changes: 9 additions & 2 deletions pkg/apis/backendconfig/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ type BackendConfig struct {
// BackendConfigSpec is the spec for a BackendConfig resource
// +k8s:openapi-gen=true
type BackendConfigSpec struct {
Iap *IAPConfig `json:"iap,omitempty"`
Cdn *CDNConfig `json:"cdn,omitempty"`
Iap *IAPConfig `json:"iap,omitempty"`
Cdn *CDNConfig `json:"cdn,omitempty"`
SecurityPolicy *SecurityPolicyConfig `json:"securityPolicy,omitempty"`
}

// BackendConfigStatus is the status for a BackendConfig resource
Expand Down Expand Up @@ -97,3 +98,9 @@ type CacheKeyPolicy struct {
// QueryStringWhitelist, but not both.
QueryStringWhitelist []string `json:"queryStringWhitelist,omitempty"`
}

// SecurityPolicyConfig contains configuration for CloudArmor-enabled backends.
type SecurityPolicyConfig struct {
// Name of the security policy that should be associated.
Name string `json:"name"`
}
25 changes: 25 additions & 0 deletions pkg/apis/backendconfig/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion pkg/apis/backendconfig/v1beta1/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fa9447c

Please sign in to comment.