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 tls_server_name kubernetes provider options. #839

Merged
merged 120 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
309967d
Add `tls_server_name` kubernetes provider options.
bartoszj Mar 12, 2022
6035291
Update .goreleaser.yml
jrhouston Mar 22, 2022
c519e12
Update helm to v3.8.1, and add OCI registry support (#837)
jrhouston Mar 25, 2022
e858cde
v2.5.0 (#842)
jrhouston Mar 28, 2022
9d162fb
Fix OCI registry login concurrency issue (#848)
jrhouston Apr 10, 2022
eeba9bf
Only run OCI login on create and update (#846)
mKeRix Apr 10, 2022
8d63749
v2.5.1 (#849)
jrhouston Apr 10, 2022
a82285b
Update go-getter to v1.5.11
jrhouston May 6, 2022
ed07d3b
[DO NOT MERGE] RelAPI Onboarding (#843)
claire-labry May 10, 2022
c560347
Add `proxy_url` configuration to kubernetes block (#834)
nsmith5 May 10, 2022
91606bd
Upgrade helm to v3.9.0 (#867)
BBBmau May 31, 2022
bea9c64
Add post renderer args (#869)
BBBmau Jun 7, 2022
94eb080
Tidy up GNUmakefile (#872)
BBBmau Jun 7, 2022
cdf8026
Enable dependabot
jrhouston Jun 7, 2022
38df19c
Add docs generation using terraform-plugin-docs (#880)
BBBmau Jun 10, 2022
83db885
Bump github.com/stretchr/testify from 1.7.1 to 1.7.2 (#877)
dependabot[bot] Jun 14, 2022
c4fb086
Bump k8s.io/client-go from 0.24.0 to 0.24.1 (#876)
dependabot[bot] Jun 14, 2022
17685cd
Bump github.com/hashicorp/terraform-plugin-docs from 0.9.0 to 0.10.0 …
dependabot[bot] Jun 14, 2022
87067c9
Don't persist the diff to state when update returns an error
imriz Jun 14, 2022
c97454e
Add support for pass_credentials attribute (#841)
toomai Jun 14, 2022
326ed12
Add go-changelog (#882)
BBBmau Jun 14, 2022
8c6a015
Tidy up go dependencies (#885)
jrhouston Jun 16, 2022
0ec52ff
Bump github.com/hashicorp/terraform-plugin-docs from 0.10.0 to 0.10.1…
dependabot[bot] Jun 16, 2022
9f630ef
Bump k8s.io/api from 0.24.1 to 0.24.2 (#887)
dependabot[bot] Jun 17, 2022
501b281
Bump k8s.io/client-go from 0.24.1 to 0.24.2 (#888)
dependabot[bot] Jun 17, 2022
6433723
Bump containerd dependency to v1.6.6 (#890)
jrhouston Jun 17, 2022
62493ed
Update CHANGELOG.md for v2.6.0 (#891)
jrhouston Jun 17, 2022
7087473
add v1alpha1 diagnostic message / updated docs (#895)
BBBmau Jun 29, 2022
6ea3560
Bump github.com/stretchr/testify from 1.7.2 to 1.7.5 (#897)
dependabot[bot] Jun 29, 2022
c151507
Update README.md (#802)
iBrandyJackson Jun 29, 2022
5264564
Bump github.com/hashicorp/terraform-plugin-docs from 0.10.1 to 0.12.0…
dependabot[bot] Jun 29, 2022
a3b2c47
Fix formatting (#902)
jrhouston Jun 30, 2022
a955c24
Update FAQ.md (#910)
iBrandyJackson Jul 6, 2022
5d32de8
Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.17.0 to 2.18…
dependabot[bot] Jul 6, 2022
362ef45
Bump github.com/stretchr/testify from 1.7.5 to 1.8.0 (#904)
dependabot[bot] Jul 7, 2022
94ae66a
Show manifest in diff when creating release (#903)
BBBmau Jul 19, 2022
91fdbdb
Fix broken stale Issue GHA workflow (#806)
iBrandyJackson Aug 24, 2022
82bc6b1
Fix Issue Opened Triage GHA (#807)
iBrandyJackson Aug 24, 2022
14cad6e
Update labelled issues GHA to new project + fix token (#941)
iBrandyJackson Aug 24, 2022
52d9465
Do dependency update in resourceDiff #771 (#855)
WarpRat Sep 11, 2022
9593bd6
Bump helm package to 3.9.4 (#945)
BBBmau Sep 22, 2022
b0dd772
Fix flaky OCI test setup (#960)
jrhouston Sep 22, 2022
8eba2e1
add nil check of showonly interface value (#950)
BBBmau Sep 22, 2022
62266a4
Ignore dependabot in changelog checker (#922)
jrhouston Sep 27, 2022
4022218
Update CHANGELOG for v2.7.0 (#963)
BBBmau Sep 28, 2022
5155c90
Add debug message for cluster unreachable at plan time (#962)
jrhouston Sep 29, 2022
390b76c
Fix Unknown Value in Manifest Diff (#966)
BBBmau Oct 11, 2022
a706c86
v2.7.1 (#969)
BBBmau Oct 12, 2022
f3dc8a4
[COMPLIANCE] Update MPL 2.0 LICENSE (#970)
hashicorp-copywrite[bot] Oct 13, 2022
2131abb
Larger diff than expected when updating helm_release "set" block valu…
adcharre Oct 18, 2022
3a62011
Add pass_credentials to docs (#980)
BBBmau Nov 1, 2022
b184e12
Updates docs for 'version' & 'set' (#927)
BBBmau Nov 14, 2022
8f396c4
Update helm_template codeblock (#995)
BBBmau Nov 17, 2022
a994218
Add CODEOWNERS file (#997)
arybolovlev Nov 18, 2022
6caf3c4
Update question issue template (#1001)
jrhouston Nov 30, 2022
d217002
Switch from k3s to kind GH action (#999)
BBBmau Nov 30, 2022
55a469c
Bump Terraform Plugin SDK Dependency (#987)
BBBmau Dec 6, 2022
3a78497
Add TF version v1.3 into version matrix (#1002)
BBBmau Dec 6, 2022
74b48cb
Add support for setting kube version on data.helm_template. (#985)
nuttmeister Dec 6, 2022
ccba08b
Add OCI registry block to provider configuration (#862)
monester Dec 13, 2022
169ff94
v2.8.0 (#1013)
jrhouston Dec 13, 2022
a43c423
Update 'helm_template' documentation (#1027)
arybolovlev Jan 13, 2023
54cfe78
.github/workflows: Switch pr-size-labeler action to upstream (#1028)
arybolovlev Jan 13, 2023
d2e20a3
Add StateMigrator for pass_credentials and wait_for_jobs (#982)
BBBmau Jan 14, 2023
09f0396
Add GCS/S3 plugin docs (#1026)
BBBmau Jan 17, 2023
e40d572
Update GitHub CodeQL workflow (#1031)
arybolovlev Jan 17, 2023
19fa52f
Add OCI repo docs (#1030)
BBBmau Jan 17, 2023
6ff0a0e
Bump github.com/containerd/containerd from 1.6.6 to 1.6.12 (#1029)
dependabot[bot] Jan 27, 2023
600dc73
Bump helm.sh/helm/v3 from 3.9.4 to 3.11.0 (#1036)
dependabot[bot] Jan 27, 2023
b97fba1
Implement burst_limit parameter #1011 (#1012)
loafoe Jan 30, 2023
3d0f01f
🤖 Update GH Actions with the pinned commit hash versions (#1042)
arybolovlev Feb 1, 2023
ef686ab
Bump github/issue-labeler from 2.5 to 2.6 (#1044)
dependabot[bot] Feb 1, 2023
ad7b95d
Bump github/codeql-action from 2.1.38 to 2.2.1 (#1045)
dependabot[bot] Feb 1, 2023
628eb5a
Bump aareet/move-labeled-or-milestoned-issue from 2.0 to 2.1 (#1046)
dependabot[bot] Feb 1, 2023
dd7e5ad
Bump k8s.io/client-go from 0.24.2 to 0.26.1 (#1037)
dependabot[bot] Feb 1, 2023
950e12a
Add `crds` attribute to `helm_template` data source (#1050)
jrhouston Feb 8, 2023
99088c8
Update FAQ.md (#1053)
iBrandyJackson Feb 8, 2023
12ad03a
Update provider docs to mention not using KUBECONFIG (#1051)
jrhouston Feb 9, 2023
2239b76
🌱 Bump helm.sh/helm/v3 from 3.11.0 to 3.11.1 (#1054)
dependabot[bot] Feb 10, 2023
a4e847e
Remove 'Automate labeled issues' workflow (#1057)
arybolovlev Feb 10, 2023
1c17e59
🌱 Bump golang.org/x/crypto from 0.5.0 to 0.6.0 (#1055)
dependabot[bot] Feb 13, 2023
02023c1
Update change log config file (#1061)
arybolovlev Feb 14, 2023
2074416
Update change log files (#1062)
arybolovlev Feb 14, 2023
f6a97b5
v2.9.0 (#1063)
arybolovlev Feb 14, 2023
733a756
🤖 Bump github/issue-labeler from 2.6 to 3.0 (#1060)
dependabot[bot] Feb 15, 2023
137e516
🌱 Bump github.com/containerd/containerd from 1.6.15 to 1.6.18 (#1067)
dependabot[bot] Feb 17, 2023
9828b81
Add HashiCorp copyright headers (#1049)
arybolovlev Mar 7, 2023
b9be5a2
[COMPLIANCE] Add Copyright and License Headers (#1047)
hashicorp-copywrite[bot] Mar 7, 2023
01a0362
🤖 Bump github/codeql-action from 2.2.1 to 2.2.5 (#1073)
dependabot[bot] Mar 10, 2023
0705214
🌱 Bump golang.org/x/net from 0.6.0 to 0.7.0 (#1069)
dependabot[bot] Mar 10, 2023
8fafa0b
🌱 Bump k8s.io/client-go from 0.26.1 to 0.26.2 (#1074)
dependabot[bot] Mar 10, 2023
151cd18
🌱 Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (#1072)
dependabot[bot] Mar 11, 2023
fed0570
🌱 Bump golang.org/x/crypto from 0.6.0 to 0.7.0 (#1081)
dependabot[bot] Mar 13, 2023
d3c7f04
🌱 Bump helm.sh/helm/v3 from 3.11.1 to 3.11.2 (#1082)
dependabot[bot] Mar 13, 2023
95249d4
🌱 Bump github.com/hashicorp/terraform-plugin-docs from 0.12.0 to 0.14…
dependabot[bot] Mar 13, 2023
87e7a49
Fix acceptance tests (#1085)
arybolovlev Mar 13, 2023
456c934
🌱 Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.22.0 to 2.…
dependabot[bot] Mar 13, 2023
d3c75a4
🤖 Bump actions/labeler from 4.0.2 to 4.0.3 (#1084)
dependabot[bot] Mar 14, 2023
9cc3377
🤖 Bump github/codeql-action from 2.2.5 to 2.2.6 (#1083)
dependabot[bot] Mar 14, 2023
2772d0f
🤖 Bump hashicorp/ghaction-terraform-provider-release from 2.2.0 to 2.…
dependabot[bot] Mar 17, 2023
1191100
Add `set_list` attribute in helm_release (#1071)
BBBmau Mar 20, 2023
9bc0ba8
🌱 Bump github.com/hashicorp/terraform-plugin-sdk/v2 (#1096)
dependabot[bot] Mar 22, 2023
6e5cc21
🤖 Bump actions/setup-go from 3.5.0 to 4.0.0 (#1092)
dependabot[bot] Mar 29, 2023
729df45
🤖 Bump actions/checkout from 3.3.0 to 3.5.0 (#1100)
dependabot[bot] Mar 30, 2023
019adab
Always recompute metadata when a release is updated (#1097)
BBBmau Apr 4, 2023
862c8b5
🌱 Bump github.com/docker/docker (#1108)
dependabot[bot] Apr 7, 2023
e0199ca
move status attribute out of metadata block support (#1109)
BBBmau Apr 13, 2023
9b224bc
🤖 Bump hashicorp/setup-copywrite from 1.0.0 to 1.1.2 (#1118)
dependabot[bot] Apr 18, 2023
61c1aeb
🤖 Bump github/codeql-action from 2.2.6 to 2.3.0 (#1126)
dependabot[bot] Apr 24, 2023
c8a2634
🌱 Bump github.com/docker/distribution (#1133)
dependabot[bot] May 22, 2023
6277f8e
update helm dependency to 3.12.0 (#1143)
jrhouston May 30, 2023
cb4f125
v2.10.0 (#1147)
jrhouston May 31, 2023
b637b70
v2.10.1 (hotfix) (#1153)
jrhouston Jun 5, 2023
6f222cb
Fix URL in Google Cloud Storage example (#1151)
chaaz Jun 7, 2023
6a33b17
bump actions/stale to v8.0.0 (#1161)
BBBmau Jun 13, 2023
d63849c
Provider docs: Add explanation for the limitation of the experimental…
davhdavh Jun 14, 2023
973afb9
Result of tsccr-helper -pin-all-workflows . (#1127)
hashicorp-tsccr[bot] Jun 14, 2023
da4c4ef
Add `tls_server_name` kubernetes provider options.
bartoszj Mar 12, 2022
631b2a0
Merge branch 'main' of github.com:bartoszj/terraform-provider-helm in…
BBBmau Jun 21, 2023
343c974
add changelog-entry
BBBmau Jun 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 7 additions & 0 deletions .changelog/1012.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:feature
`provider`: Add a new attribute `burst_limit` for client-side throttling limit configuration.
```

```release-note:doc
`provider`: Add a new attribute `burst_limit`.
```
3 changes: 3 additions & 0 deletions .changelog/1026.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:doc
`resource/helm_release`: Add usage examples for `GCS` and `S3` plugins.
```
3 changes: 3 additions & 0 deletions .changelog/1027.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:doc
`data_source/helm_template`: Correct some errors in examples.
```
3 changes: 3 additions & 0 deletions .changelog/1029.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:dependency
Bump `github.com/containerd/containerd` from `1.6.6` to `1.6.12`
```
3 changes: 3 additions & 0 deletions .changelog/1030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:doc
`resource/helm_release`: Add usage example for `OCI` repositories.
```
3 changes: 3 additions & 0 deletions .changelog/1036.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:dependency
Bump `helm.sh/helm/v3` from `3.9.4` to `3.11.0`
```
7 changes: 7 additions & 0 deletions .changelog/1037.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:dependency
Bump `k8s.io/client-go` from `0.24.2` to `0.26.1`
```

```release-note:note
`provider`: `kubernetes.exec.api_version` no longer supports `client.authentication.k8s.io/v1alpha1`. Please, switch to `client.authentication.k8s.io/v1beta1` or `client.authentication.k8s.io/v1`.
```
7 changes: 7 additions & 0 deletions .changelog/1050.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:enhancement
`data_source/helm_template`: Add a new attribute `crds` which when `include_crds` is set to `true` will be populated with a list of the manifests from the `crds/` folder of the chart.
```

```release-note:doc
`data_source/helm_template`: Add a new attribute `crds`
```
3 changes: 3 additions & 0 deletions .changelog/1051.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:doc
`provider`: Add a note regarding the `KUBECONFIG` environment variable.
```
3 changes: 3 additions & 0 deletions .changelog/1054.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:dependency
Bump `helm.sh/helm/v3` from `3.11.0` to `3.11.1`
```
3 changes: 3 additions & 0 deletions .changelog/1055.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:dependency
Bump `golang.org/x/crypto` from `0.5.0` to `0.6.0`
```
3 changes: 3 additions & 0 deletions .changelog/1071.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:feature
`helm/resource_release.go`: Add `set_list` attribute
```
3 changes: 3 additions & 0 deletions .changelog/1097.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
`helm/resource_release.go`: Always recompute metadata when a release is updated
```
3 changes: 3 additions & 0 deletions .changelog/1143.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:dependency
Bump `helm.sh/helm/v3` from `3.11.2` to `3.12.0`
```
3 changes: 3 additions & 0 deletions .changelog/1153.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
`helm/resource_release.go`: Fix: only recompute metadata if version actually changes
```
3 changes: 3 additions & 0 deletions .changelog/839.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
`kubernetes/provider.go`: Add `tls_server_name` kubernetes provider options.
```
3 changes: 3 additions & 0 deletions .changelog/862.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:feature
Add support for configuring OCI registries inside provider block
```
3 changes: 3 additions & 0 deletions .changelog/903.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:feature
Show Manifest when creating release
```
3 changes: 3 additions & 0 deletions .changelog/945.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
Upgrade Helm to v3.9.4
```
3 changes: 3 additions & 0 deletions .changelog/950.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
Crash: Fix `show_only` crash when string is empty
```
3 changes: 3 additions & 0 deletions .changelog/966.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
Crash Fix: Fix Unknown Value in Manifest Diff
```
3 changes: 3 additions & 0 deletions .changelog/982.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
`resource/helm_release`: Fix an issue when the provider crashes with the error message `Provider produced inconsistent final plan` after upgrading from `v2.5.1` to `v2.6.0` and higher. That happened due to changes in the provider schema and the introduction of a new attribute `pass_credentials` that was not properly handled.
```
71 changes: 71 additions & 0 deletions .changelog/changelog.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{{- if index .NotesByType "breaking-change" -}}
BREAKING CHANGES:

{{range index .NotesByType "breaking-change" -}}
* {{ template "note" . }}
{{ end -}}
{{- end -}}

{{- if .NotesByType.security }}
SECURITY:

{{range .NotesByType.security -}}
* {{ template "note" . }}
{{ end -}}
{{- end -}}

{{- if .NotesByType.feature }}
FEATURES:

{{range .NotesByType.feature -}}
* {{ template "note" . }}
{{ end -}}
{{- end -}}

{{- if .NotesByType.enhancement }}
ENHANCEMENT:

{{range .NotesByType.enhancement -}}
* {{ template "note" . }}
{{ end -}}
{{- end -}}

{{- if .NotesByType.deprecation }}
DEPRECATIONS:

{{range .NotesByType.deprecation -}}
* {{ template "note" . }}
{{ end -}}
{{- end -}}

{{- if .NotesByType.bug }}
BUG FIXES:

{{range .NotesByType.bug -}}
* {{ template "note" . }}
{{ end -}}
{{- end -}}

{{- if .NotesByType.doc }}
DOCS:

{{range .NotesByType.doc -}}
* {{ template "note" . }}
{{ end -}}
{{- end -}}

{{- if .NotesByType.dependency }}
DEPENDENCIES:

{{range .NotesByType.dependency -}}
* {{ template "note" . }}
{{ end -}}
{{- end -}}

{{- if .NotesByType.note }}
NOTES:

{{range .NotesByType.note -}}
* {{ template "note" . }}
{{ end -}}
{{- end -}}
3 changes: 3 additions & 0 deletions .changelog/note.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- define "note" -}}
{{.Body}}{{if not (stringHasPrefix .Issue "_")}} [[GH-{{- .Issue -}}](https://github.com/hashicorp/terraform-provider-helm/issues/{{- .Issue -}})]{{end}}
{{- end -}}
15 changes: 15 additions & 0 deletions .copywrite.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
schema_version = 1

project {
license = "MPL-2.0"
copyright_year = 2017
header_ignore = [
".changelog/**",
".github/**",
".goreleaser.yml",
".markdownlint.yml",
".release/**",
"helm/testdata/**",
"vendor/**",
]
}
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @hashicorp/terraform-ecosystem-kubernetes
9 changes: 7 additions & 2 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,22 @@ Please understand that we make a best effort attempt to address questions, but o
If you prefer, you can also ask your question in the Kubernetes community Slack channel [#terraform-providers](https://kubernetes.slack.com/messages/CJY6ATQH4). ([Sign up here](http://slack.k8s.io/))

## Terraform version, Kubernetes provider version and Kubernetes version

```
Terraform version:
Helm Provider version:
Kubernetes version:
```
## Terraform configuration

```hcl
Enter your configuration here.
```

## Question
```

<!---

Enter your question here.
```

--->
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "🌱"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "🤖"
36 changes: 36 additions & 0 deletions .github/workflows/changelog-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow checks that there is either a 'pr/no-changelog' label applied to a PR
# or there is a .changelog/<pr number>.txt file associated with a PR for a changelog entry
name: Changelog Entry

on:
pull_request:
types: [opened, synchronize, labeled]
# Runs on PRs to main and all release branches
branches:
- main

jobs:
# checks that a .changelog entry is present for a PR
changelog-check:
# If there a `pr/no-changelog` label we ignore this check
if: "!contains(github.event.pull_request.labels.*.name, 'pr/no-changelog') || github.event.pull_request.user.login == 'dependabot'"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0 # by default the checkout action doesn't checkout all branches
- name: Check for changelog entry in diff
run: |
# check if there is a diff in the .changelog directory
changelog_files=$(git --no-pager diff --name-only HEAD "$(git merge-base HEAD "origin/${{ github.event.pull_request.base.ref }}")" -- .changelog/${{ github.event.pull_request.number }}.txt)

# If we do not find a file in .changelog/, we fail the check
if [ -z "$changelog_files" ]; then
# Fail status check when no .changelog entry was found on the PR
echo "Did not find a .changelog entry and the 'pr/no-changelog' label was not applied. Reference - https://github.com/hashicorp/terraform-provider-helm/tree/main/.github/workflows/CHANGELOG_GUIDE.md"
exit 1
else
echo "Found .changelog entry in PR!"
fi
15 changes: 6 additions & 9 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,16 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@168b99b3c22180941ae7dbdd5f5c9678ede476ba # v2

with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -54,7 +50,8 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@168b99b3c22180941ae7dbdd5f5c9678ede476ba # v2


# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +65,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@168b99b3c22180941ae7dbdd5f5c9678ede476ba # v2
25 changes: 25 additions & 0 deletions .github/workflows/hc-copywrite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: HashiCorp Copywrite

on:
schedule:
- cron: '30 2 * * *'
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:

jobs:
copywrite:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

- name: Install copywrite
uses: hashicorp/setup-copywrite@867a1a2a064a0626db322392806428f7dc59cb3e # v1.1.2

- name: Validate Header Compliance
run: copywrite headers --plan
2 changes: 1 addition & 1 deletion .github/workflows/issue-comment-created.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
issue_comment_triage:
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-remove-labels@v1
- uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0
with:
labels: |
stale
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/issue-opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ jobs:
issue_triage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: github/issue-labeler@v2
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: github/issue-labeler@cd54a96bcc32e2a890e865b2eceffee3fc458b9d # v3.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler-issue-triage.yml
enable-versioned-regex: 0
14 changes: 0 additions & 14 deletions .github/workflows/labeled_issues.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
- uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836 # v4.0.0
with:
github-token: ${{ github.token }}
issue-lock-comment: >
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/prune_stale_issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v1.1.0
- uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
with:
repo-token: ${{ secrets.k8s_github_actions }}
stale-issue-message: 'This issue has been open 365 days with no activity. If this issue is reproducible with the latest version of the provider and with Terraform 0.12/0.13, please comment so we can prioritize. Otherwise this issue will be closed in 30 days.'
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you!'
days-before-stale: 365
days-before-close: 30
days-before-close: 30
Loading