Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- uses: actions/setup-go@v6
with:
go-version: '1.24'

- run: make

- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: latest
15 changes: 15 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build and Deploy OCI Image

on:
push:
tags:
- 'v*'

jobs:
build:
name: Build and publish
runs-on: ubuntu-latest
steps:
- uses: francois2metz/steampipe-plugin-build-push-action@v0
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
STEAMPIPE_INSTALL_DIR ?= ~/.steampipe
BUILD_TAGS = netgo
install:
go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/pdns@latest/steampipe-plugin-pdns.plugin -tags "${BUILD_TAGS}" *.go
go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/codnio/pdns@latest/steampipe-plugin-pdns.plugin -tags "${BUILD_TAGS}" *.go

dev:
go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/pdns@latest/steampipe-plugin-pdns.plugin -tags "dev ${BUILD_TAGS}" *.go
build-linux:
GOOS=linux GOARCH=amd64 go build -o build/steampipe-plugin-pdns-linux-amd64.plugin -tags "${BUILD_TAGS}" *.go

build-darwin:
GOOS=darwin GOARCH=amd64 go build -o build/steampipe-plugin-pdns-darwin-amd64.plugin -tags "${BUILD_TAGS}" *.go

build-darwin-arm64:
GOOS=darwin GOARCH=arm64 go build -o build/steampipe-plugin-pdns-darwin-arm64.plugin -tags "${BUILD_TAGS}" *.go

build-windows:
GOOS=windows GOARCH=amd64 go build -o build/steampipe-plugin-pdns-windows-amd64.plugin -tags "${BUILD_TAGS}" *.go
2 changes: 1 addition & 1 deletion config/pdns.spc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ connection "pdns" {

# PowerDNS API key (Required)
# Can also be set with PDNS_APIKEY environment variable
# api_key = "your-api-key-here"
# api_key = "ODl4Tkx2c3erZnY4W***"

# For more information about PowerDNS API configuration:
# https://doc.powerdns.com/authoritative/http-api/index.html
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
organization: Turbot
category: ["networking"]
category: ["internet"]
icon_url: "/images/plugins/codenio/pdns.svg"
brand_color: "#F48220"
display_name: "PowerDNS"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/codenio/steampipe-plugin-pdns

go 1.23.3
go 1.24

require (
github.com/joeig/go-powerdns/v3 v3.16.0
Expand Down
2 changes: 1 addition & 1 deletion pdns/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func connectUncached(ctx context.Context, d *plugin.QueryData, _ *plugin.Hydrate

// Error if the minimum config is not set
if server_url == "" || vhost == "" || api_key == "" {
return nil, errors.New("'server_url', 'username' and 'api_key' must be set in the connection configuration. Edit your connection configuration file and then restart Steampipe.")
return nil, errors.New("'server_url', 'username' and 'api_key' must be set in the connection configuration. Edit your connection configuration file and then restart Steampipe")
}

return powerdns.New(server_url, vhost, powerdns.WithAPIKey(api_key)), nil
Expand Down
78 changes: 0 additions & 78 deletions pdns/table_pdns_records.go

This file was deleted.