Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Use kedge defined containers list for init containers #189

Merged
merged 1 commit into from
Aug 2, 2017

Conversation

surajssd
Copy link
Member

@surajssd surajssd commented Jul 31, 2017

We have added some features to containers struct in kedge.
Which is being used in the podSpec containers list. But right
now init-containers are using container type from upstream.
So changed it to use our type of containers list.

Fixes #176

@kedge-bot
Copy link
Collaborator

@surajssd, thank you for the pull request! We'll ping some people to review your PR. @kadel, please review this.

@kedge-bot kedge-bot requested a review from kadel July 31, 2017 11:01
@surajssd surajssd force-pushed the change-init-containers branch 2 times, most recently from 1bc5197 to dfb4dfb Compare July 31, 2017 11:03
pkg/spec/spec.go Outdated
@@ -72,6 +72,7 @@ type ConfigMapMod struct {

type PodSpecMod struct {
Containers []Container `json:"containers,omitempty"`
InitContainers []Container `json:"initContainers,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this? Isn't initContainers already in PodSpec?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kadel but we have things in our Container struct that enhance it, like Health and envFrom that won't show up in InitContainers.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I understand now.

Shouldn't we break this PR to two? How is moving populators to separate file related to adding initContainers?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I can do that!

@surajssd
Copy link
Member Author

blocked on #190

@kedge-bot
Copy link
Collaborator

@surajssd, thank you for the pull request! We'll ping some people to review your PR. @containscafeine, please review this.

@kedge-bot kedge-bot requested a review from concaf August 1, 2017 12:40
@kadel
Copy link
Member

kadel commented Aug 1, 2017

this will probably need rebase after #190 is merged

We have added some features to containers struct in kedge.
Which is being used in the podSpec containers list. But right
now init-containers are using container type from upstream.
So changed it to use our type of containers list.
@surajssd surajssd force-pushed the change-init-containers branch from af0196c to 7048ac3 Compare August 2, 2017 06:54
@surajssd surajssd changed the title Change init containers Use kedge defined containers list for init containers Aug 2, 2017
@surajssd
Copy link
Member Author

surajssd commented Aug 2, 2017

Since #190 is merged this is not blocked anymore, also rebased and this is open for review @containscafeine @kadel

@surajssd
Copy link
Member Author

surajssd commented Aug 2, 2017

Is it necessary to add an example in examples directory for this? @kadel @containscafeine

@kadel
Copy link
Member

kadel commented Aug 2, 2017

Is it necessary to add an example in examples directory for this? @kadel @containscafeine

I don't think we need an example for this.

@surajssd
Copy link
Member Author

surajssd commented Aug 2, 2017

@kadel cool thanks!

@surajssd
Copy link
Member Author

surajssd commented Aug 2, 2017

small change so merging it!

@surajssd surajssd merged commit e53b38e into kedgeproject:master Aug 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants