Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisFrench committed Mar 1, 2022
1 parent 84f6951 commit 5609b2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions internal/api/v1beta1/app_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ type AppSpec struct {
// ServiceAccountName specifies a service account name to be used for this application.
ServiceAccountName string `json:"serviceAccountName,omitempty"`

// SecurityContext specifies security settings for a pod/app, which get applied to all containers.
SecurityContext *v1.PodSecurityContext `json:"securityContext,omitempty"`
}

Expand Down
5 changes: 3 additions & 2 deletions internal/chart/application_chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ type app struct {
MetadataAnnotations []ketchv1.MetadataItem `json:"metadataAnnotations"`
// ServiceAccountName specifies a service account name to be used for this application.
// SA should exist.
ServiceAccountName string `json:"serviceAccountName"`
SecurityContext *v1.PodSecurityContext `json:"securityContext,omitempty"`
ServiceAccountName string `json:"serviceAccountName"`
// SecurityContext specifies security settings for a pod/app, which get applied to all containers.
SecurityContext *v1.PodSecurityContext `json:"securityContext,omitempty"`
}

type deployment struct {
Expand Down
1 change: 1 addition & 0 deletions internal/chart/post_render.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type postRender struct {
}

func (p *postRender) Run(renderedManifests *bytes.Buffer) (modifiedManifests *bytes.Buffer, err error) {

var configMapList v1.ConfigMapList
opts := &client.ListOptions{Namespace: p.namespace}
if err := p.cli.List(context.Background(), &configMapList, opts); err != nil {
Expand Down

0 comments on commit 5609b2a

Please sign in to comment.