Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds a command to generate a helmfile.yaml from a j… #6623

Merged
merged 4 commits into from
Jan 28, 2020
Merged

feat: adds a command to generate a helmfile.yaml from a j… #6623

merged 4 commits into from
Jan 28, 2020

Conversation

rawlingsj
Copy link
Member

@rawlingsj rawlingsj commented Jan 28, 2020

…x-apps.yml

this is an experimental feature which is isolated, if the idea matures then we may want to add the application types to a jx-requirements.yaml and remove the use of jx-apps.yml. The reason that's not done here is so that we don't let the experiment affect existing core functionality.

I've also included a top level experiment command we can add these types of labs efforts to make it clear they are experimental and will likely change.

example usage:

jx step create helmfile --values ../secrets.yaml --values ../jx-requirements.values.yaml.gotmpl --outputDir ./apps

relates to the app extensions for boot enhancement and issue #6442

Signed-off-by: James Rawlings [email protected]

)

var (
create_long = templates.LongDesc(`
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't use underscores in Go names; var create_long should be createLong

ShowLogs bool `json:"showlogs"`
}

// Environment
Copy link
Collaborator

Choose a reason for hiding this comment

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

comment on exported type Environment should be of the form "Environment ..." (with optional leading article)

Environment SubhelmfileEnvironmentSpec
}

type SubhelmfileEnvironmentSpec struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

exported type SubhelmfileEnvironmentSpec should have comment or be unexported

Repositories []RepositorySpec `json:"repositories,omitempty"`
Releases []ReleaseSpec `json:"releases,omitempty"`
Selectors []string `json:"-"`
ApiVersions []string `json:"apiVersions,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

struct field ApiVersions should be APIVersions

)

var (
create_long = templates.LongDesc(`
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't use underscores in Go names; var create_long should be createLong

)

var (
create_long = templates.LongDesc(`
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't use underscores in Go names; var create_long should be createLong

ShowLogs bool `json:"showlogs"`
}

// Environment
Copy link
Collaborator

Choose a reason for hiding this comment

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

comment on exported type Environment should be of the form "Environment ..." (with optional leading article)

Environment SubhelmfileEnvironmentSpec
}

type SubhelmfileEnvironmentSpec struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

exported type SubhelmfileEnvironmentSpec should have comment or be unexported

Repositories []RepositorySpec `json:"repositories,omitempty"`
Releases []ReleaseSpec `json:"releases,omitempty"`
Selectors []string `json:"-"`
ApiVersions []string `json:"apiVersions,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

struct field ApiVersions should be APIVersions

…x-applications.yml

this is an experimenal feature which uses a seperate jx-apps.yml file to incorporate adding apps to a boot install.

relates to #6442

Signed-off-by: James Rawlings <[email protected]>
@rawlingsj rawlingsj changed the title WIP: feat: experiment, adds a command to generate a helmfile.yaml from a j… feat: experiment, adds a command to generate a helmfile.yaml from a j… Jan 28, 2020
@jstrachan
Copy link
Member

@rawlingsj I guess the primary user of this command would be the jx boot pipelines for helmfile; so I wonder if its better to move this command inside jx step create helmfile so its with all the other pipeline steps; rather than a top level jx create which end users might see via tab completion etc?

@rawlingsj
Copy link
Member Author

I guess the primary user of this command would be the jx boot pipelines for helmfile; so I wonder if its better to move this command inside jx step create helmfile so its with all the other pipeline steps; rather than a top level jx create which end users might see via tab completion etc?

yeah good call, lemme do that now

@rawlingsj rawlingsj changed the title feat: experiment, adds a command to generate a helmfile.yaml from a j… feat: adds a command to generate a helmfile.yaml from a j… Jan 28, 2020
@rawlingsj
Copy link
Member Author

/retest

Signed-off-by: James Rawlings <[email protected]>
@rawlingsj
Copy link
Member Author

/retest

@jstrachan
Copy link
Member

/lgtm - great stuff!

@jstrachan
Copy link
Member

/lgtm

@jenkins-x-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jstrachan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jenkins-x-bot jenkins-x-bot merged commit b9b04c8 into jenkins-x:master Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants