-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 15f55b7
Showing
420 changed files
with
197,286 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
```release-note:bug | ||
`resource/kubernetes_cron_job_v1`: Change the schema to include a namespace in `jobTemplate` | ||
`resource/kubernetes_stateful_set_v1`: Change the schema to include a namespace in `template` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{{- 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 -}} | ||
|
||
{{- $features := combineTypes .NotesByType.feature (index .NotesByType "new-resource" ) (index .NotesByType "new-data-source") (index .NotesByType "new-guide") }} | ||
{{- if $features }} | ||
FEATURES: | ||
|
||
{{range $features | sort -}} | ||
* {{ template "note" . }} | ||
{{ end -}} | ||
{{- end -}} | ||
|
||
{{- if .NotesByType.enhancement }} | ||
ENHANCEMENTS: | ||
|
||
{{range .NotesByType.enhancement | sort -}} | ||
* {{ 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.note }} | ||
NOTES: | ||
|
||
{{range .NotesByType.note -}} | ||
* {{ template "note" . }} | ||
{{ end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-kubernetes/issues/{{- .Issue -}})]{{end}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
name: "\U0001F41B Bug Report" | ||
about: "If something isn't working as expected \U0001F914." | ||
title: '' | ||
labels: bug | ||
|
||
--- | ||
|
||
<!--- | ||
Hi there, | ||
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html. | ||
---> | ||
|
||
|
||
### Terraform Version, Provider Version and Kubernetes Version | ||
<!--- Run `terraform -v` to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed. ---> | ||
``` | ||
Terraform version: | ||
Kubernetes provider version: | ||
Kubernetes version: | ||
``` | ||
|
||
### Affected Resource(s) | ||
<!-- Please list the resources as a list, for example: | ||
- opc_instance | ||
- opc_storage_volume | ||
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this. --> | ||
|
||
### Terraform Configuration Files | ||
```hcl | ||
# Copy-paste your Terraform configurations here - for large Terraform configs, | ||
# please use a service like Dropbox and share a link to the ZIP file. For | ||
# security, you can also encrypt the files using our GPG public key. | ||
``` | ||
|
||
### Debug Output | ||
<!--Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.--> | ||
|
||
### Panic Output | ||
<!--If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the `crash.log`.--> | ||
|
||
### Steps to Reproduce | ||
<!-- Please list the steps required to reproduce the issue, for example: | ||
1. `terraform apply` --> | ||
|
||
### Expected Behavior | ||
What should have happened? | ||
|
||
### Actual Behavior | ||
What actually happened? | ||
|
||
### Important Factoids | ||
<!-- Are there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? Custom version of OpenStack? Tight ACLs?--> | ||
|
||
### References | ||
<!--Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:--> | ||
- GH-1234 | ||
|
||
### Community Note | ||
<!--- Please keep this note for the community ---> | ||
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request | ||
* If you are interested in working on this issue or have submitted a pull request, please leave a comment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: "\U0001F680 Feature Request" | ||
about: "I have a suggestion (and might want to implement myself \U0001F642)!" | ||
title: '' | ||
labels: enhancement | ||
|
||
--- | ||
|
||
|
||
### Description | ||
|
||
<!--- Please leave a helpful description of the feature request here. ---> | ||
|
||
### Potential Terraform Configuration | ||
|
||
<!--- Information about code formatting: https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code ---> | ||
|
||
```hcl | ||
# Copy-paste your Terraform configurations here - for large Terraform configs, | ||
# please use a service like Dropbox and share a link to the ZIP file. For | ||
# security, you can also encrypt the files using our GPG public key. | ||
``` | ||
|
||
### References | ||
|
||
<!--- | ||
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests | ||
Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor blog posts or documentation? | ||
---> | ||
|
||
<!--- Please keep this note for the community ---> | ||
|
||
### Community Note | ||
|
||
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request | ||
* If you are interested in working on this issue or have submitted a pull request, please leave a comment | ||
|
||
<!--- Thank you for keeping this note for the community ---> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: "\U0001F914 Question" | ||
about: "If you need help figuring something out" | ||
title: '' | ||
labels: question | ||
|
||
--- | ||
|
||
<!--- | ||
Hi, please provide as much information as possible when asking your question. | ||
Please understand that we make a best effort attempt to address questions, but our focus is on provider development. It's still valuable to ask your question because you may receive help from the community, and help us understand common asks. | ||
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: | ||
Kubernetes Provider version: | ||
Kubernetes version: | ||
``` | ||
## Terraform configuration | ||
```hcl | ||
Enter your configuration here. | ||
``` | ||
|
||
## Question | ||
``` | ||
Enter your question here. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bug: | ||
- 'panic:' | ||
crash: | ||
- 'panic:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dependencies: | ||
- vendor/**/* | ||
documentation: | ||
- website/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
### Description | ||
|
||
<!--- Please leave a helpful description of the pull request here. ---> | ||
|
||
### Acceptance tests | ||
- [ ] Have you added an acceptance test for the functionality being added? | ||
- [ ] Have you run the acceptance tests on this branch? | ||
|
||
Output from acceptance testing: | ||
|
||
<!-- | ||
Replace TestAccXXX with a pattern that matches the tests affected by this PR. | ||
For more information on the `-run` flag, see the `go test` documentation at https://tip.golang.org/cmd/go/#hdr-Testing_flags. | ||
--> | ||
``` | ||
$ make testacc TESTARGS='-run=TestAccXXX' | ||
... | ||
``` | ||
|
||
### Release Note | ||
Release note for [CHANGELOG](https://github.com/chnsz/terraform-provider-kubernetes/blob/main/CHANGELOG.md): | ||
<!-- | ||
If change is not user facing, just write "NONE" in the release-note block below. | ||
--> | ||
|
||
```release-note | ||
... | ||
``` | ||
|
||
### References | ||
|
||
<!--- | ||
Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor blog posts or documentation? | ||
---> | ||
### Community Note | ||
<!--- Please keep this note for the community ---> | ||
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request | ||
* If you are interested in working on this issue or have submitted a pull request, please leave a comment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Essential checkers and linters | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
checkers-and-linters: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
- name: Set up Go | ||
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 | ||
with: | ||
go-version-file: 'go.mod' | ||
# Secrets are not available on pull requests. | ||
- name: Login to Docker Hub | ||
if: github.ref == 'refs/heads/main' | ||
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0 | ||
with: | ||
username: ${{ secrets.RO_DOCKERHUB_USER }} | ||
password: ${{ secrets.RO_DOCKERHUB_TOKEN }} | ||
- name: Install cookie | ||
run: scripts/gogetcookie.sh | ||
- name: Run checkers | ||
run: | | ||
make depscheck | ||
make fmtcheck | ||
make test-compile | ||
make vet | ||
- name: Run linters | ||
run: | | ||
make website-lint | ||
make tests-lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [master] | ||
schedule: | ||
- cron: '0 13 * * 0' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Override automatic language detection by changing the below list | ||
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python'] | ||
language: ['go'] | ||
# Learn more... | ||
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
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 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # codeql-bundle-v2.13.4 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# 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@cdcdbb579706841c47f7063dda365e292e5cad7a # codeql-bundle-v2.13.4 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # codeql-bundle-v2.13.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Golang Linter | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- '**/*.go' | ||
- '**/go.mod' | ||
|
||
jobs: | ||
golang_linter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
- name: Set up Go | ||
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 | ||
with: | ||
go-version-file: 'go.mod' | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0 | ||
with: | ||
version: 'v1.55.2' | ||
skip-pkg-cache: true |
Oops, something went wrong.