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

fix: App job documentation updates - avm/res/app/job #2074

Merged
merged 41 commits into from
Jun 5, 2024

Conversation

ReneHezser
Copy link
Contributor

@ReneHezser ReneHezser commented May 26, 2024

Description

  • changed secure parameter from an as secure decorated object to a custom type.
  • improved documentation with examples and tests

Unfortunately, there is a breaking change in this change. The secrets parameter required a secureList property, which is not required anymore

// this is the old usage
secrets: {
  secureList: [
    {
      name: 'connection-string'
      value: '<secretValue>'
    }
  ]
}

// which has now changed to a custom type and must be used like this:
secrets: [
  {
    name: 'connection-string'
    value: '<secretValue>'
  }
]

#2070
Fixes #2071

Pipeline Reference

Pipeline
avm.res.app.job

Type of Change

  • Update to CI Environment or utlities (Non-module effecting changes)
  • Azure Verified Module updates:
    • Bugfix containing backwards compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in version.json:
      • Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description.
      • The bug was found by the module author, and no one has opened an issue to report it yet.
    • Feature update backwards compatible feature updates, and I have bumped the MINOR version in version.json.
    • Breaking changes and I have bumped the MAJOR version in version.json.
    • Update to documentation

Checklist

  • I'm sure there are no other open Pull Requests for the same update/change
  • I have run Set-AVMModule locally to generate the supporting module files.
  • My corresponding pipelines / checks run clean and green without any errors or warnings

@ReneHezser ReneHezser requested review from a team as code owners May 26, 2024 16:20
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue labels May 26, 2024
@segraef segraef changed the title App job documentation updates fix: App job documentation updates May 28, 2024
@segraef segraef changed the title fix: App job documentation updates fix: App job documentation updates - avm/res/app/job May 28, 2024
@eriqua eriqua added Class: Resource Module 📦 This is a resource module Needs: Core Team 🧞 This item needs the AVM Core Team to review it and removed Needs: Triage 🔍 Maintainers need to triage still labels May 29, 2024
@AlexanderSehr
Copy link
Contributor

Hey @ReneHezser,
looks good from my side. Given @eriqua also added comment I'll leave the last word to her :)

@eriqua eriqua enabled auto-merge (squash) June 5, 2024 23:20
Copy link
Contributor

@eriqua eriqua left a comment

Choose a reason for hiding this comment

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

🆗

@eriqua eriqua merged commit d5ba296 into Azure:main Jun 5, 2024
4 of 5 checks passed
hundredacres pushed a commit to hundredacres/bicep-registry-modules that referenced this pull request Jun 19, 2024
## Description

- changed secure parameter from an as secure decorated object to a
custom type.
- improved documentation with examples and tests

Unfortunately, there is a breaking change in this change. The secrets
parameter required a `secureList` property, which is not required
anymore

```
// this is the old usage
secrets: {
  secureList: [
    {
      name: 'connection-string'
      value: '<secretValue>'
    }
  ]
}

// which has now changed to a custom type and must be used like this:
secrets: [
  {
    name: 'connection-string'
    value: '<secretValue>'
  }
]
```

Azure#2070 
Fixes Azure#2071 

## Pipeline Reference

<!-- Insert your Pipeline Status Badge below -->

| Pipeline |
| -------- |
|
[![avm.res.app.job](https://github.com/ReneHezser/bicep-registry-modules/actions/workflows/avm.res.app.job.yml/badge.svg?branch=app-job-documentation-updates)](https://github.com/ReneHezser/bicep-registry-modules/actions/workflows/avm.res.app.job.yml)
|

## Type of Change

<!-- Use the check-boxes [x] on the options that are relevant. -->

- [ ] Update to CI Environment or utlities (Non-module effecting
changes)
- [x] Azure Verified Module updates:
- [ ] Bugfix containing backwards compatible bug fixes, and I have NOT
bumped the MAJOR or MINOR version in `version.json`:
- [ ] Someone has opened a bug report issue, and I have included "Closes
#{bug_report_issue_number}" in the PR description.
- [ ] The bug was found by the module author, and no one has opened an
issue to report it yet.
- [ ] Feature update backwards compatible feature updates, and I have
bumped the MINOR version in `version.json`.
- [x] Breaking changes and I have bumped the MAJOR version in
`version.json`.
  - [x] Update to documentation

## Checklist

- [x] I'm sure there are no other open Pull Requests for the same
update/change
- [x] I have run `Set-AVMModule` locally to generate the supporting
module files.
- [x] My corresponding pipelines / checks run clean and green without
any errors or warnings

---------

Co-authored-by: Alexander Sehr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: Resource Module 📦 This is a resource module Needs: Core Team 🧞 This item needs the AVM Core Team to review it Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[app/job]: change secure parameter to a custom type
3 participants