Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Plural
platform
external-dns
Commits
77f082f8
Unverified
Commit
77f082f8
authored
4 years ago
by
Kubernetes Prow Robot
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1805 from porscheinformatik/infoblox-skip-zones
Infoblox skip zones not matching a given view
parents
b23151c2
3e3a9f06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
provider/infoblox/infoblox.go
+5
-1
provider/infoblox/infoblox.go
provider/infoblox/infoblox_test.go
+1
-0
provider/infoblox/infoblox_test.go
with
6 additions
and
1 deletion
+6
-1
provider/infoblox/infoblox.go
+
5
-
1
View file @
77f082f8
...
...
@@ -232,7 +232,11 @@ func (p *InfobloxProvider) ApplyChanges(ctx context.Context, changes *plan.Chang
func
(
p
*
InfobloxProvider
)
zones
()
([]
ibclient
.
ZoneAuth
,
error
)
{
var
res
,
result
[]
ibclient
.
ZoneAuth
obj
:=
ibclient
.
NewZoneAuth
(
ibclient
.
ZoneAuth
{})
obj
:=
ibclient
.
NewZoneAuth
(
ibclient
.
ZoneAuth
{
View
:
p
.
view
,
},
)
err
:=
p
.
client
.
GetObject
(
obj
,
""
,
&
res
)
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
provider/infoblox/infoblox_test.go
+
1
-
0
View file @
77f082f8
...
...
@@ -344,6 +344,7 @@ func TestInfobloxRecords(t *testing.T) {
client
:=
mockIBConnector
{
mockInfobloxZones
:
&
[]
ibclient
.
ZoneAuth
{
createMockInfobloxZone
(
"example.com"
),
createMockInfobloxZone
(
"other.com"
),
},
mockInfobloxObjects
:
&
[]
ibclient
.
IBObject
{
createMockInfobloxObject
(
"example.com"
,
endpoint
.
RecordTypeA
,
"123.123.123.122"
),
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment