Skip to content

Commit

Permalink
Adapting changes to v1.15.3 codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
taraspos committed Sep 6, 2024
1 parent cc70b87 commit 54e6eda
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
go-version-file: go.mod
cache: true
- name: Run tests
run: make test RELEASE_VERSION=0.0.0
run: make test VERSION=0.0.0
build-and-push:
name: Build and push Docker image
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions internal/apis/config/controller/v1alpha1/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func SetDefaults_ACMEDNS01Config(obj *v1alpha1.ACMEDNS01Config) {
obj.CheckRetryPeriod = sharedv1alpha1.DurationFromTime(defaultDNS01CheckRetryPeriod)
}

if obj.PropagationTime == time.Duration(0) {
obj.PropagationTime = defaultDNS01PropagationTime
if obj.PropagationTime.IsZero() {
obj.PropagationTime = sharedv1alpha1.DurationFromTime(defaultDNS01PropagationTime)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
},
"acmeDNS01Config": {
"recursiveNameserversOnly": false,
"checkRetryPeriod": "10s"
"checkRetryPeriod": "10s",
"propagationTime": "1m0s"
}
}

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

4 changes: 1 addition & 3 deletions pkg/apis/config/controller/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ limitations under the License.
package v1alpha1

import (
"time"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
logsapi "k8s.io/component-base/logs/api/v1"

Expand Down Expand Up @@ -225,5 +223,5 @@ type ACMEDNS01Config struct {

// The duration the controller should wait after determining that an ACME dns entry exists.
// This should be a valid duration string, for example 180s or 1h
PropagationTime time.Duration `json:"propagationTime,omitempty"`
PropagationTime *sharedv1alpha1.Duration `json:"propagationTime,omitempty"`
}
5 changes: 5 additions & 0 deletions pkg/apis/config/controller/v1alpha1/zz_generated.deepcopy.go

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

0 comments on commit 54e6eda

Please sign in to comment.