Skip to content

Commit

Permalink
fix: ✨ change default values and entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
titigmr committed Aug 14, 2024
1 parent fd0bbe3 commit dc81f29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ RUN CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
FROM gcr.io/distroless/static-debian12:nonroot AS prod

COPY --from=build /go/bin/app /
CMD ["/app"]
ENTRYPOINT ["/app"]
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ helm repo add external-dns https://kubernetes-sigs.github.io/external-dns/
1. Create the helm values file `external-dns-midaas-values.yaml`:

```yaml
# if midaas can delete records in dns zone
# -- How DNS records are synchronized between sources and providers; available values are `sync` & `upsert-only`.
policy: sync
# midaas manage all records on zone
# -- Specify the registry for storing ownership and labels.
# Valid values are `txt`, `aws-sd`, `dynamodb` & `noop`.
# If `noop` midaas manage all records on zone
registry: noop
# can restrict zone
domainFilters: ["subzone.dev.example.com"]
provider:
name: webhook
webhook:
image: ghcr.io/titigmr/external-dns-midaas-webhook
tag: v1.0.0
tag: latest
env:
- name: PROVIDER_SKIP_TLS_VERIFY
value: "true"
- name: PROVIDER_DNS_ZONE_SUFFIX
value: "dev.example.com"
- name: PROVIDER_WS_URL
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (

type Config struct {
Server struct {
Port string `envconfig:"API_SERVER_PORT" default:"6666"`
Host string `envconfig:"API_SERVER_HOST" default:"127.0.0.1"`
Port string `envconfig:"API_SERVER_PORT" default:"8888"`
Host string `envconfig:"API_SERVER_HOST" default:"0.0.0.0"`
}
Options struct {
ReadTimeout time.Duration `envconfig:"API_READ_TIMEOUT" default:"3s"`
Expand Down

0 comments on commit dc81f29

Please sign in to comment.