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

TPF Migration #123

Merged
merged 101 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from 98 commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
b69eb2f
Adding inittial lintersin makefile and gha
rounak-adhikary Sep 29, 2023
3a61f94
Fixing wrong vendor
rounak-adhikary Sep 29, 2023
65dd2f1
Adding security checks and exclusions
rounak-adhikary Sep 29, 2023
c8e493c
Chnaging to golangci-lint
rounak-adhikary Sep 29, 2023
4575bac
Fix yaml
rounak-adhikary Sep 29, 2023
e1e0f45
Fix 2
rounak-adhikary Sep 29, 2023
09fc3cc
Fix 3
rounak-adhikary Sep 29, 2023
2c439b3
provider migration + code reorg
Krishnan-Priyanshu Oct 9, 2023
ca8c73b
Adding uppercaseconst comment
rounak-adhikary Oct 10, 2023
285c163
Pulling dev
rounak-adhikary Oct 10, 2023
10236dd
Removing vendor
rounak-adhikary Oct 10, 2023
89cb489
Adding linting and fixing some stuff
rounak-adhikary Oct 10, 2023
bb5fe5b
Adding vendor and golangci
rounak-adhikary Oct 16, 2023
f120e17
Merge pull request #103 from dell/linters
Krishnan-Priyanshu Oct 16, 2023
d8a64c2
rename ssl_insecure to validate_cert
Krishnan-Priyanshu Oct 16, 2023
7856224
moved resouce /datasource templates to template-bcks folder/
Krishnan-Priyanshu Oct 16, 2023
d10616f
fix the attribute name and removed redundant github action jobs
Krishnan-Priyanshu Oct 16, 2023
37d1285
provider model fixed
Krishnan-Priyanshu Oct 16, 2023
ebe723e
fix gen
Krishnan-Priyanshu Oct 16, 2023
1e17be9
Merge pull request #104 from dell/validate_cert
Krishnan-Priyanshu Oct 16, 2023
f33e1af
Adding simple update resource initial
rounak-adhikary Oct 16, 2023
e7f994b
power resource migration
Krishnan-Priyanshu Oct 17, 2023
29595cc
added power template
Krishnan-Priyanshu Oct 17, 2023
fae3d2a
Merge pull request #105 from dell/power_resource
Krishnan-Priyanshu Oct 18, 2023
c15c4b4
Merge branch 'dev' of github.com:dell/terraform-provider-redfish into…
rounak-adhikary Oct 18, 2023
d02aec8
Added debug messages
rounak-adhikary Oct 18, 2023
e0b8ac8
migrate idrac_attribute resource
Krishnan-Priyanshu Oct 22, 2023
c92994b
migration of idrac attribute CRUD
Krishnan-Priyanshu Oct 23, 2023
a449462
fmt fix
Krishnan-Priyanshu Oct 23, 2023
e0d00b2
migrated idrac attribute datasource
Krishnan-Priyanshu Oct 25, 2023
8127155
fix generate
Krishnan-Priyanshu Oct 25, 2023
254e97a
user resource migrated
Sakshi-dell Oct 25, 2023
6744bb5
me more changes
rounak-adhikary Oct 25, 2023
3cdcf2d
Migrated virtual media resource
prajwalpatil25 Oct 26, 2023
2c5b8e7
removed comments
prajwalpatil25 Oct 26, 2023
5f32e17
Fixing lint issues
rounak-adhikary Oct 26, 2023
1c3a999
Updating docs
rounak-adhikary Oct 26, 2023
5fbd320
Fixing linting issues
prajwalpatil25 Oct 26, 2023
f0889f1
fix lint issue
Krishnan-Priyanshu Oct 26, 2023
f2a9004
Update resource_redfish_dell_idrac_attributes.go
Krishnan-Priyanshu Oct 26, 2023
24ed365
initial bios ds
rounak-adhikary Oct 26, 2023
09b6ea8
Working bios ds
rounak-adhikary Oct 26, 2023
3794720
Generating docs
rounak-adhikary Oct 26, 2023
98ceacd
Merge pull request #108 from dell/idrac_attributes
Krishnan-Priyanshu Oct 26, 2023
2c14874
Merge branch 'dev' into su-res
rounak-adhikary Oct 26, 2023
31cacee
Merge branch 'su-res' into bios-ds
rounak-adhikary Oct 26, 2023
ccf84a8
Some cleanup
rounak-adhikary Oct 26, 2023
9a8719f
lint fix
rounak-adhikary Oct 26, 2023
fe0890d
Fixing linter issues
rounak-adhikary Oct 27, 2023
ff49fad
Relaxing checks
rounak-adhikary Oct 27, 2023
9133a10
Gnenerate
rounak-adhikary Oct 27, 2023
5a81e43
Merge branch 'su-res' into bios-ds
rounak-adhikary Oct 27, 2023
dd00c7a
Linter fix 1
rounak-adhikary Oct 27, 2023
694e967
Re-enabled linting for bios-ds
rounak-adhikary Oct 27, 2023
a103236
linting issue fixed
Sakshi-dell Oct 30, 2023
a52ef64
Merge branch 'dev' into User-resource-migration
Sakshi-dell Oct 30, 2023
bc6b47f
ran go generate
Sakshi-dell Oct 30, 2023
b63b5f8
Merge branch 'User-resource-migration' of https://github.com/dell/ter…
Sakshi-dell Oct 30, 2023
e07dddc
Removing skip entries for user and virtual media resources
rounak-adhikary Oct 30, 2023
7a99061
Merge branch 'dev' into bios-ds
rounak-adhikary Oct 30, 2023
205a94d
Removing commented entry
rounak-adhikary Oct 30, 2023
6d7873c
Merge pull request #112 from dell/su-res
Krishnan-Priyanshu Oct 30, 2023
22f91bc
Merge branch 'dev' into User-resource-migration
Krishnan-Priyanshu Oct 30, 2023
2431890
Merge branch 'dev' into virtual_media_migration
Krishnan-Priyanshu Oct 30, 2023
3b73d40
Updating comments
rounak-adhikary Oct 30, 2023
d2174b4
linting issues fixed
Sakshi-dell Oct 30, 2023
40f9f53
Merge branch 'User-resource-migration' of https://github.com/dell/ter…
Sakshi-dell Oct 30, 2023
2bd929d
minor issue fixed
Sakshi-dell Oct 30, 2023
998e96c
minor issue fixed
Sakshi-dell Oct 30, 2023
f6256a2
ran make generate
Sakshi-dell Oct 30, 2023
91f00e0
Merge pull request #109 from dell/User-resource-migration
Krishnan-Priyanshu Oct 30, 2023
6eaf182
Merge pull request #113 from dell/bios-ds
Sakshi-dell Oct 30, 2023
e785792
acceptance tests fix
prajwalpatil25 Oct 31, 2023
913ab8b
Merge branch 'virtual_media_migration' of github.com:dell/terraform-p…
prajwalpatil25 Oct 31, 2023
324033a
Merge branch 'dev' into virtual_media_migration
prajwalpatil25 Oct 31, 2023
2520357
fixed linting issues
prajwalpatil25 Oct 31, 2023
e57f4fe
split create method
prajwalpatil25 Oct 31, 2023
2c4377b
addressed review comment
prajwalpatil25 Oct 31, 2023
d9e4a41
Added doc template
prajwalpatil25 Oct 31, 2023
c58426b
changes in md
prajwalpatil25 Oct 31, 2023
7e61686
changes in md
prajwalpatil25 Oct 31, 2023
47b37f4
added constants to constants.go
prajwalpatil25 Nov 2, 2023
c4b898c
Merge pull request #111 from dell/virtual_media_migration
Krishnan-Priyanshu Nov 2, 2023
691cb16
migrated virtual media datasource
Krishnan-Priyanshu Nov 5, 2023
6af1afe
minor fix in redfish server config - power resource
Krishnan-Priyanshu Nov 5, 2023
407aba2
make generate fix
Krishnan-Priyanshu Nov 5, 2023
5b4736c
fixed liniting issues
Krishnan-Priyanshu Nov 6, 2023
0a338d7
moved 'virtual_media' definition to attributes
Krishnan-Priyanshu Nov 6, 2023
25a8e4d
refactor redfish server schema
Krishnan-Priyanshu Nov 6, 2023
8203938
removed '=' from redfish server config
Krishnan-Priyanshu Nov 7, 2023
dbd480e
remove validate check
Krishnan-Priyanshu Nov 7, 2023
f8e3ee1
Merge pull request #114 from dell/data-virtual-media
Sakshi-dell Nov 7, 2023
1d03578
Storage Datasource TPF Migration (#115)
rounak-adhikary Nov 7, 2023
46b7cc4
added back ssl_insecure & removed version from schema for backward co…
Krishnan-Priyanshu Nov 8, 2023
0f3990e
Firmware inventory datasource (#118)
Sakshi-dell Nov 9, 2023
ba3a53a
bios resource Migrated (#120)
Sakshi-dell Nov 9, 2023
9235286
System boot datasource migration to TPF (#121)
prajwalpatil25 Nov 15, 2023
00b74d9
Storage Volume resource migration to TPF (#119)
prajwalpatil25 Nov 15, 2023
1547aef
User resource minor fix (#124)
Sakshi-dell Nov 20, 2023
b1d9cc6
fixing virtual media and idrac attributes (#125)
prajwalpatil25 Nov 21, 2023
4646e57
Miscellaneous changes for migration (#126)
rounak-adhikary Nov 23, 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
  •  
  •  
  •  
108 changes: 108 additions & 0 deletions .github/workflows/terraform-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# This is a workflow with the following actions
#1. Check Go formatting, linting, vetting
#2. Check for forbidden words
#3. Build
#5. Generate
#6. Malware Scanner


name: Terraform-CI

# Controls when the workflow will run
on:
# Triggers the workflow on pull request events
pull_request:
# Runs CI on every day (at 06:00 UTC)
schedule:
- cron: '0 6 * * *'
push:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Testing only needs permissions to read the repository contents.
permissions:
contents: read
env:
# Go language version to use for building. This value should also be updated
# in the testing workflow if changed.
GO_VERSION: '1.20'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
golangci:
name: Check Go formatting, linting, vetting using golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: v1.54
sanitize:
name: Check for forbidden words
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Run the forbidden words scan
uses: dell/common-github-actions/code-sanitizer@main
with:
args: /github/workspace/redfish # TBD /github/workspace

build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3
- run: go build -v .

generate:
name: Generate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- run: go generate ./...
- name: git diff
run: |
git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit."; exit 1)

malware_security_scan:
name: Malware Scanner
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Malware Scanner
uses: dell/common-github-actions/malware-scanner@main
with:
directories: .
options: -ri
# test:
# name: Terraform Provider Unit Tests
# needs: [build, ]
# runs-on: ubuntu-latest
# timeout-minutes: 60
# steps:
# - uses: actions/setup-go@v3
# with:
# go-version: ${{ env.GO_VERSION }}
# - uses: actions/checkout@v3
# - run: go mod download
# - run: go test -v -cover ./clients/
# timeout-minutes: 60
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ override.tf.json
# Ignore CLI configuration files
.terraformrc
terraform.rc
terraform
*.terraform.lock.hcl

.idea/
Expand All @@ -65,3 +64,9 @@ website/.bundle
website/build
website/node_modules
website/vendor

redfish/provider/redfish_test.env
test

**/*debug*
**/coverage*
Loading