Skip to content

Commit

Permalink
Merge pull request #491 from candita/BZ-1877693
Browse files Browse the repository at this point in the history
Bug 1877693: dnsrecords specify recordTTL as 30 but the value is nul…
  • Loading branch information
openshift-merge-robot committed Nov 19, 2020
2 parents 058274c + 9dddbce commit e20d3c9
Show file tree
Hide file tree
Showing 32 changed files with 275 additions and 61 deletions.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/imdario/mergo v0.3.10 // indirect
github.com/kevinburke/go-bindata v3.11.0+incompatible
github.com/onsi/ginkgo v1.14.0 // indirect
github.com/openshift/api v0.0.0-20200930075302-db52bc4ef99f
github.com/openshift/api v0.0.0-20201116215713-725145b8f33f
github.com/openshift/library-go v0.0.0-20200423123937-d1360419413d
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.0.0
Expand All @@ -29,9 +29,9 @@ require (
google.golang.org/appengine v1.6.6 // indirect
gopkg.in/fsnotify.v1 v1.4.7
gopkg.in/yaml.v2 v2.3.0
k8s.io/api v0.19.0
k8s.io/api v0.19.2
k8s.io/apiextensions-apiserver v0.19.0 // indirect
k8s.io/apimachinery v0.19.0
k8s.io/apimachinery v0.19.2
k8s.io/apiserver v0.19.0
k8s.io/client-go v0.19.0
sigs.k8s.io/controller-runtime v0.6.2
Expand Down
11 changes: 8 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@ github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zM
github.com/opencontainers/runc v0.0.0-20191031171055-b133feaeeb2e/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U=
github.com/openshift/api v0.0.0-20200326152221-912866ddb162/go.mod h1:RKMJ5CBnljLfnej+BJ/xnOWc3kZDvJUaIAEq2oKSPtE=
github.com/openshift/api v0.0.0-20200326160804-ecb9283fe820/go.mod h1:RKMJ5CBnljLfnej+BJ/xnOWc3kZDvJUaIAEq2oKSPtE=
github.com/openshift/api v0.0.0-20200930075302-db52bc4ef99f h1:/msM59v15x4DaAZeJnQwkVsCGTEa1mx+nSSMehZVAHs=
github.com/openshift/api v0.0.0-20200930075302-db52bc4ef99f/go.mod h1:Si/I9UGeRR3qzg01YWPmtlr0GeGk2fnuggXJRmjAZ6U=
github.com/openshift/api v0.0.0-20201116215713-725145b8f33f h1:95nOJfESnijTBj5VQR149ue+lyFI23TenYrQ+MpCqKo=
github.com/openshift/api v0.0.0-20201116215713-725145b8f33f/go.mod h1:RDvBcRQMGLa3aNuDuejVBbTEQj/2i14NXdpOLqbNBvM=
github.com/openshift/build-machinery-go v0.0.0-20200211121458-5e3d6e570160/go.mod h1:1CkcsT3aVebzRBzVTSbiKSkJMsC/CASqxesfqEMfJEc=
github.com/openshift/build-machinery-go v0.0.0-20200819073603-48aa266c95f7/go.mod h1:b1BuldmJlbA/xYtdZvKi+7j5YGB44qJUJDZ9zwiNCfE=
github.com/openshift/build-machinery-go v0.0.0-20200917070002-f171684f77ab/go.mod h1:b1BuldmJlbA/xYtdZvKi+7j5YGB44qJUJDZ9zwiNCfE=
github.com/openshift/client-go v0.0.0-20200326155132-2a6cd50aedd0/go.mod h1:uUQ4LClRO+fg5MF/P6QxjMCb1C9f7Oh4RKepftDnEJE=
github.com/openshift/library-go v0.0.0-20200423123937-d1360419413d h1:/0gGczZKJ6Ec2KXE2dj6w1eWPdXqaDWEvTp/8NKKBhA=
github.com/openshift/library-go v0.0.0-20200423123937-d1360419413d/go.mod h1:EBKL6lBhhhbzh/UwzzP17iCXrFKxEN5DbjujvNZfCjI=
Expand Down Expand Up @@ -804,6 +804,8 @@ k8s.io/api v0.18.2/go.mod h1:SJCWI7OLzhZSvbY7U8zwNl9UA4o1fizoug34OV/2r78=
k8s.io/api v0.18.6/go.mod h1:eeyxr+cwCjMdLAmr2W3RyDI0VvTawSg/3RFFBEnmZGI=
k8s.io/api v0.19.0 h1:XyrFIJqTYZJ2DU7FBE/bSPz7b1HvbVBuBf07oeo6eTc=
k8s.io/api v0.19.0/go.mod h1:I1K45XlvTrDjmj5LoM5LuP/KYrhWbjUKT/SoPG0qTjw=
k8s.io/api v0.19.2 h1:q+/krnHWKsL7OBZg/rxnycsl9569Pud76UJ77MvKXms=
k8s.io/api v0.19.2/go.mod h1:IQpK0zFQ1xc5iNIQPqzgoOwuFugaYHK4iCknlAQP9nI=
k8s.io/apiextensions-apiserver v0.18.2 h1:I4v3/jAuQC+89L3Z7dDgAiN4EOjN6sbm6iBqQwHTah8=
k8s.io/apiextensions-apiserver v0.18.2/go.mod h1:q3faSnRGmYimiocj6cHQ1I3WpLqmDgJFlKL37fC4ZvY=
k8s.io/apiextensions-apiserver v0.18.6 h1:vDlk7cyFsDyfwn2rNAO2DbmUbvXy5yT5GE3rrqOzaMo=
Expand All @@ -815,6 +817,8 @@ k8s.io/apimachinery v0.18.2/go.mod h1:9SnR/e11v5IbyPCGbvJViimtJ0SwHG4nfZFjU77ftc
k8s.io/apimachinery v0.18.6/go.mod h1:OaXp26zu/5J7p0f92ASynJa1pZo06YlV9fG7BoWbCko=
k8s.io/apimachinery v0.19.0 h1:gjKnAda/HZp5k4xQYjL0K/Yb66IvNqjthCb03QlKpaQ=
k8s.io/apimachinery v0.19.0/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA=
k8s.io/apimachinery v0.19.2 h1:5Gy9vQpAGTKHPVOh5c4plE274X8D/6cuEiTO2zve7tc=
k8s.io/apimachinery v0.19.2/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA=
k8s.io/apiserver v0.18.2 h1:fwKxdTWwwYhxvtjo0UUfX+/fsitsNtfErPNegH2x9ic=
k8s.io/apiserver v0.18.2/go.mod h1:Xbh066NqrZO8cbsoenCwyDJ1OSi8Ag8I2lezeHxzwzw=
k8s.io/apiserver v0.18.6/go.mod h1:Zt2XvTHuaZjBz6EFYzpp+X4hTmgWGy8AthNVnTdm3Wg=
Expand All @@ -830,6 +834,7 @@ k8s.io/code-generator v0.18.0/go.mod h1:+UHX5rSbxmR8kzS+FAv7um6dtYrZokQvjHpDSYRV
k8s.io/code-generator v0.18.2/go.mod h1:+UHX5rSbxmR8kzS+FAv7um6dtYrZokQvjHpDSYRVkTc=
k8s.io/code-generator v0.18.6/go.mod h1:TgNEVx9hCyPGpdtCWA34olQYLkh3ok9ar7XfSsr8b6c=
k8s.io/code-generator v0.19.0/go.mod h1:moqLn7w0t9cMs4+5CQyxnfA/HV8MF6aAVENF+WZZhgk=
k8s.io/code-generator v0.19.2/go.mod h1:moqLn7w0t9cMs4+5CQyxnfA/HV8MF6aAVENF+WZZhgk=
k8s.io/component-base v0.18.2/go.mod h1:kqLlMuhJNHQ9lz8Z7V5bxUUtjFZnrypArGl58gmDfUM=
k8s.io/component-base v0.18.6/go.mod h1:knSVsibPR5K6EW2XOjEHik6sdU5nCvKMrzMt2D4In14=
k8s.io/component-base v0.19.0/go.mod h1:dKsY8BxkA+9dZIAh2aWJLL/UdASFDNtGYTCItL4LM7Y=
Expand Down
3 changes: 2 additions & 1 deletion manifests/00-custom-resource-definition-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ spec:
minLength: 1
recordTTL:
description: recordTTL is the record TTL in seconds. If zero, the default
is 30.
is 30. RecordTTL will not be used in AWS regions Alias targets, but
will be used in CNAME targets, per AWS API contract.
type: integer
format: int64
minimum: 0
Expand Down
1 change: 1 addition & 0 deletions pkg/dns/aws/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ func (m *Provider) change(record *iov1.DNSRecord, zone configv1.DNSZone, action
// target in targetHostedZoneID. An Alias record type is used for all regions
// other than GovCloud (CNAME). See the following for additional details:
// https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-r53.html
// Note that by API contract, TTL cannot be specified for an AliasTarget.
func (m *Provider) updateRecord(domain, zoneID, target, targetHostedZoneID, action string, ttl int64) error {
input := route53.ChangeResourceRecordSetsInput{HostedZoneId: aws.String(zoneID)}
if clientEndpointIsGovCloud(&m.route53.Client.ClientInfo) {
Expand Down
8 changes: 4 additions & 4 deletions pkg/manifests/bindata.go

Large diffs are not rendered by default.

19 changes: 13 additions & 6 deletions pkg/operator/controller/ingress/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,12 @@ func TestDesiredRouterDeployment(t *testing.T) {
Container: &operatorv1.ContainerLoggingDestinationParameters{},
},
HttpLogFormat: "%ci:%cp [%t] %ft %b/%s %B %bq %HM %HU %HV",
HTTPCaptureCookies: []operatorv1.IngressControllerCaptureHTTPCookie{
{MatchType: "Prefix", NamePrefix: "foo"},
},
HTTPCaptureCookies: []operatorv1.IngressControllerCaptureHTTPCookie{{
IngressControllerCaptureHTTPCookieUnion: operatorv1.IngressControllerCaptureHTTPCookieUnion{
MatchType: "Prefix",
NamePrefix: "foo",
},
}},
},
}
ci.Spec.HTTPHeaders = &operatorv1.IngressControllerHTTPHeaders{
Expand Down Expand Up @@ -397,9 +400,13 @@ func TestDesiredRouterDeployment(t *testing.T) {
{Name: "Location", MaxLength: 15},
},
},
HTTPCaptureCookies: []operatorv1.IngressControllerCaptureHTTPCookie{
{MatchType: "Exact", Name: "foo", MaxLength: 15},
},
HTTPCaptureCookies: []operatorv1.IngressControllerCaptureHTTPCookie{{
IngressControllerCaptureHTTPCookieUnion: operatorv1.IngressControllerCaptureHTTPCookieUnion{
MatchType: "Exact",
Name: "foo",
},
MaxLength: 15,
}},
},
}
ci.Spec.HTTPHeaders = &operatorv1.IngressControllerHTTPHeaders{
Expand Down
10 changes: 7 additions & 3 deletions test/e2e/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1440,9 +1440,13 @@ func TestHTTPCookieCapture(t *testing.T) {
Type: operatorv1.ContainerLoggingDestinationType,
Container: &operatorv1.ContainerLoggingDestinationParameters{},
},
HTTPCaptureCookies: []operatorv1.IngressControllerCaptureHTTPCookie{
{MatchType: "Exact", Name: "foo", MaxLength: 9},
},
HTTPCaptureCookies: []operatorv1.IngressControllerCaptureHTTPCookie{{
IngressControllerCaptureHTTPCookieUnion: operatorv1.IngressControllerCaptureHTTPCookieUnion{
MatchType: "Exact",
Name: "foo",
},
MaxLength: 9,
}},
},
}
if err := kclient.Create(context.TODO(), ic); err != nil {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 31 additions & 2 deletions vendor/github.com/openshift/api/config/v1/types_infrastructure.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vendor/github.com/openshift/api/config/v1/types_ingress.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e20d3c9

Please sign in to comment.