Skip to content

Commit

Permalink
feat: enable SecurityContext option for eventbus pods. Closes #903 (#904
Browse files Browse the repository at this point in the history
)
  • Loading branch information
whynowy committed Oct 11, 2020
1 parent 9d23043 commit 1eee338
Show file tree
Hide file tree
Showing 9 changed files with 253 additions and 125 deletions.
15 changes: 15 additions & 0 deletions api/event-bus.html

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

26 changes: 26 additions & 0 deletions api/event-bus.md

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

4 changes: 4 additions & 0 deletions api/openapi-spec/swagger.json

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

109 changes: 58 additions & 51 deletions controllers/eventbus/installer/nats.go

Large diffs are not rendered by default.

202 changes: 129 additions & 73 deletions pkg/apis/eventbus/v1alpha1/generated.pb.go

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions pkg/apis/eventbus/v1alpha1/generated.proto

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

8 changes: 7 additions & 1 deletion pkg/apis/eventbus/v1alpha1/openapi_generated.go

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

4 changes: 4 additions & 0 deletions pkg/apis/eventbus/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ type NativeStrategy struct {
Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,8,rep,name=tolerations"`
// Metadata sets the pods's metadata, i.e. annotations and labels
Metadata *common.Metadata `json:"metadata,omitempty" protobuf:"bytes,9,opt,name=metadata"`
// SecurityContext holds pod-level security attributes and common container settings.
// Optional: Defaults to empty. See type description for default values of each field.
// +optional
SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,10,opt,name=securityContext"`
}

// ContainerTemplate defines customized spec for a container
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go

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

0 comments on commit 1eee338

Please sign in to comment.