Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
4c1cb692
Commit
4c1cb692
authored
Mar 05, 2018
by
Slava Semushin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PSP: godoc fixes and improvements.
parent
0207a090
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
15 deletions
+16
-15
types.go
pkg/apis/extensions/types.go
+16
-15
types.go
staging/src/k8s.io/api/extensions/v1beta1/types.go
+0
-0
types.go
staging/src/k8s.io/api/policy/v1beta1/types.go
+0
-0
No files found.
pkg/apis/extensions/types.go
View file @
4c1cb692
...
...
@@ -818,8 +818,8 @@ type PodSecurityPolicySpec struct {
// To allow all capabilities you may use '*'.
// +optional
AllowedCapabilities
[]
api
.
Capability
// Volumes is a white list of allowed volume plugins.
Empty indicates that all plugins
//
may be used
.
// Volumes is a white list of allowed volume plugins.
Empty indicates that
//
no volumes may be used. To allow all volumes you may use '*'
.
// +optional
Volumes
[]
FSType
// HostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
...
...
@@ -938,7 +938,7 @@ type AllowedFlexVolume struct {
type
SELinuxStrategyOptions
struct
{
// Rule is the strategy that will dictate the allowable labels that may be set.
Rule
SELinuxStrategy
//
se
LinuxOptions required to run as; required for MustRunAs
//
SE
LinuxOptions required to run as; required for MustRunAs
// More info: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#selinux
// +optional
SELinuxOptions
*
api
.
SELinuxOptions
...
...
@@ -949,9 +949,9 @@ type SELinuxStrategyOptions struct {
type
SELinuxStrategy
string
const
(
// container must have SELinux labels of X applied.
//
SELinuxStrategyMustRunAs means that
container must have SELinux labels of X applied.
SELinuxStrategyMustRunAs
SELinuxStrategy
=
"MustRunAs"
// container may make requests for any SELinux context labels.
//
SELinuxStrategyRunAsAny means that
container may make requests for any SELinux context labels.
SELinuxStrategyRunAsAny
SELinuxStrategy
=
"RunAsAny"
)
...
...
@@ -959,7 +959,8 @@ const (
type
RunAsUserStrategyOptions
struct
{
// Rule is the strategy that will dictate the allowable RunAsUser values that may be set.
Rule
RunAsUserStrategy
// Ranges are the allowed ranges of uids that may be used.
// Ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
// then supply a single range with the same start and end. Required for MustRunAs.
// +optional
Ranges
[]
UserIDRange
}
...
...
@@ -985,11 +986,11 @@ type GroupIDRange struct {
type
RunAsUserStrategy
string
const
(
// container must run as a particular uid.
//
RunAsUserStrategyMustRunAs means that
container must run as a particular uid.
RunAsUserStrategyMustRunAs
RunAsUserStrategy
=
"MustRunAs"
// container must run as a non-root uid
//
RunAsUserStrategyMustRunAsNonRoot means that
container must run as a non-root uid
RunAsUserStrategyMustRunAsNonRoot
RunAsUserStrategy
=
"MustRunAsNonRoot"
// container may make requests for any uid.
//
RunAsUserStrategyRunAsAny means that
container may make requests for any uid.
RunAsUserStrategyRunAsAny
RunAsUserStrategy
=
"RunAsAny"
)
...
...
@@ -999,7 +1000,7 @@ type FSGroupStrategyOptions struct {
// +optional
Rule
FSGroupStrategyType
// Ranges are the allowed ranges of fs groups. If you would like to force a single
// fs group then supply a single range with the same start and end.
// fs group then supply a single range with the same start and end.
Required for MustRunAs.
// +optional
Ranges
[]
GroupIDRange
}
...
...
@@ -1009,9 +1010,9 @@ type FSGroupStrategyOptions struct {
type
FSGroupStrategyType
string
const
(
// container must have FSGroup of X applied.
//
FSGroupStrategyMustRunAs means that
container must have FSGroup of X applied.
FSGroupStrategyMustRunAs
FSGroupStrategyType
=
"MustRunAs"
// container may make requests for any FSGroup labels.
//
FSGroupStrategyRunAsAny means that
container may make requests for any FSGroup labels.
FSGroupStrategyRunAsAny
FSGroupStrategyType
=
"RunAsAny"
)
...
...
@@ -1021,7 +1022,7 @@ type SupplementalGroupsStrategyOptions struct {
// +optional
Rule
SupplementalGroupsStrategyType
// Ranges are the allowed ranges of supplemental groups. If you would like to force a single
// supplemental group then supply a single range with the same start and end.
// supplemental group then supply a single range with the same start and end.
Required for MustRunAs.
// +optional
Ranges
[]
GroupIDRange
}
...
...
@@ -1031,9 +1032,9 @@ type SupplementalGroupsStrategyOptions struct {
type
SupplementalGroupsStrategyType
string
const
(
// container must run as a particular gid.
//
SupplementalGroupsStrategyMustRunAs means that
container must run as a particular gid.
SupplementalGroupsStrategyMustRunAs
SupplementalGroupsStrategyType
=
"MustRunAs"
// container may make requests for any gid.
//
SupplementalGroupsStrategyRunAsAny means that
container may make requests for any gid.
SupplementalGroupsStrategyRunAsAny
SupplementalGroupsStrategyType
=
"RunAsAny"
)
...
...
staging/src/k8s.io/api/extensions/v1beta1/types.go
View file @
4c1cb692
This diff is collapsed.
Click to expand it.
staging/src/k8s.io/api/policy/v1beta1/types.go
View file @
4c1cb692
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment