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

Add files for a specific stage and service #60

Open
2 tasks
christian-kreuzberger-dtx opened this issue Nov 11, 2021 · 0 comments
Open
2 tasks

Add files for a specific stage and service #60

christian-kreuzberger-dtx opened this issue Nov 11, 2021 · 0 comments
Labels
type:feature New feature or request that provides value to the stakeholders/end-users

Comments

@christian-kreuzberger-dtx
Copy link
Contributor

christian-kreuzberger-dtx commented Nov 11, 2021

Right now it is only possible to add files for pre-defined services and stages, e.g.:

        keptn.keptnInit project:"${project}", service:"${service}", stage:"dev", monitoring: "dynatrace", shipyard: ".keptn/shipyard.yaml"
        keptn.keptnAddResources('.keptn/dynatrace/sli.yaml','dynatrace/sli.yaml')
        keptn.keptnAddResources('.keptn/slo.yaml','slo.yaml')

would only add files to the specified stage dev.

However, in certain cases it makes sense to also allow adding files to other stages. Right now this would require calling keptnInit again, which is quite a heavy function (e.g., check if project exists, check if stage exists, check if service exists, ...).

It would be easier for the end-user to allow specifying a stage (and service) where files should be added to, e.g.:

        keptn.keptnAddResources('.keptn/slo.yaml','slo.yaml', stage: 'hardening', service: 'foobar-service')

Definition of Done

  • addResource function available for adding files to a specifc stage and service
  • Documentation/Example usage of this function is provided in README
@christian-kreuzberger-dtx christian-kreuzberger-dtx added the type:feature New feature or request that provides value to the stakeholders/end-users label Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request that provides value to the stakeholders/end-users
Projects
None yet
Development

No branches or pull requests

1 participant