Skip to content

Commit

Permalink
add support for cors-allowed-origins
Browse files Browse the repository at this point in the history
closes kubernetes#2045

correct typo in flag attribute

run code-gen, correct field description
  • Loading branch information
etwillbefine committed Aug 29, 2020
1 parent 3f079cd commit 1b6ee2c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions k8s/crds/kops.k8s.io_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,9 @@ spec:
cloudProvider:
description: CloudProvider is the name of the cloudProvider we are using, aws, gce etcd
type: string
corsAllowedOrigins:
description: CorsAllowedOrigins enables CORS for comma separated value
type: string
cpuRequest:
description: CPURequest, cpu request compute resource for api server. Defaults to "150m"
type: string
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/kops/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ type KubeAPIServerConfig struct {

// EnableProfiling enables profiling via web interface host:port/debug/pprof/
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`

// CorsAllowedOrigins enables CORS for comma separated value
CorsAllowedOrigins string `json:"corsAllowedOrigins,omitempty" flag:"cors-allowed-origins"`
}

// KubeControllerManagerConfig is the configuration for the controller
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/kops/v1alpha2/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ type KubeAPIServerConfig struct {

// EnableProfiling enables profiling via web interface host:port/debug/pprof/
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`

// CorsAllowedOrigins enables CORS for comma separated value
CorsAllowedOrigins string `json:"corsAllowedOrigins,omitempty" flag:"cors-allowed-origins"`
}

// KubeControllerManagerConfig is the configuration for the controller
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/kops/v1alpha2/zz_generated.conversion.go

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

0 comments on commit 1b6ee2c

Please sign in to comment.