mirror of
https://github.com/rancher/types.git
synced 2025-07-31 04:49:37 +00:00
Merge pull request #82 from moelsayed/move_psp
Move PodSecurityPolicy to KubeAPI
This commit is contained in:
commit
0d582f634e
@ -19,8 +19,6 @@ type RancherKubernetesEngineConfig struct {
|
||||
Authorization AuthzConfig `yaml:"authorization" json:"authorization,omitempty"`
|
||||
// Enable/disable strict docker version checking
|
||||
IgnoreDockerVersion bool `yaml:"ignore_docker_version" json:"ignoreDockerVersion"`
|
||||
// Enable/disable Pod Security Policy
|
||||
DisablePSP bool `yaml:"disable_psp" json:"disablePSP,omitempty"`
|
||||
}
|
||||
|
||||
type RKEConfigNode struct {
|
||||
@ -69,6 +67,8 @@ type KubeAPIService struct {
|
||||
BaseService `yaml:",inline" json:",inline"`
|
||||
// Virtual IP range that will be used by Kubernetes services
|
||||
ServiceClusterIPRange string `yaml:"service_cluster_ip_range" json:"serviceClusterIpRange,omitempty"`
|
||||
// Enabled/Disable PodSecurityPolicy
|
||||
PodSecurityPolicy bool `yaml:"pod_security_policy" json:"podSecurityPolicy,omitempty"`
|
||||
}
|
||||
|
||||
type KubeControllerService struct {
|
||||
|
@ -4,11 +4,13 @@ const (
|
||||
KubeAPIServiceType = "kubeAPIService"
|
||||
KubeAPIServiceFieldExtraArgs = "extraArgs"
|
||||
KubeAPIServiceFieldImage = "image"
|
||||
KubeAPIServiceFieldPodSecurityPolicy = "podSecurityPolicy"
|
||||
KubeAPIServiceFieldServiceClusterIPRange = "serviceClusterIpRange"
|
||||
)
|
||||
|
||||
type KubeAPIService struct {
|
||||
ExtraArgs map[string]string `json:"extraArgs,omitempty"`
|
||||
Image string `json:"image,omitempty"`
|
||||
PodSecurityPolicy *bool `json:"podSecurityPolicy,omitempty"`
|
||||
ServiceClusterIPRange string `json:"serviceClusterIpRange,omitempty"`
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ const (
|
||||
RancherKubernetesEngineConfigFieldAddons = "addons"
|
||||
RancherKubernetesEngineConfigFieldAuthentication = "authentication"
|
||||
RancherKubernetesEngineConfigFieldAuthorization = "authorization"
|
||||
RancherKubernetesEngineConfigFieldDisablePSP = "disablePSP"
|
||||
RancherKubernetesEngineConfigFieldIgnoreDockerVersion = "ignoreDockerVersion"
|
||||
RancherKubernetesEngineConfigFieldNetwork = "network"
|
||||
RancherKubernetesEngineConfigFieldNodes = "nodes"
|
||||
@ -18,7 +17,6 @@ type RancherKubernetesEngineConfig struct {
|
||||
Addons string `json:"addons,omitempty"`
|
||||
Authentication *AuthnConfig `json:"authentication,omitempty"`
|
||||
Authorization *AuthzConfig `json:"authorization,omitempty"`
|
||||
DisablePSP *bool `json:"disablePSP,omitempty"`
|
||||
IgnoreDockerVersion *bool `json:"ignoreDockerVersion,omitempty"`
|
||||
Network *NetworkConfig `json:"network,omitempty"`
|
||||
Nodes []RKEConfigNode `json:"nodes,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user