Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump dependencies #114

Closed
wants to merge 3 commits into from
Closed

bump dependencies #114

wants to merge 3 commits into from

Conversation

elenz97
Copy link
Collaborator

@elenz97 elenz97 commented Mar 7, 2023

No description provided.

@elenz97 elenz97 force-pushed the bump/goharbor-client branch from 03e2aa9 to 00d563b Compare March 7, 2023 14:47
@elenz97 elenz97 force-pushed the bump/goharbor-client branch from 00d563b to 46ce4d6 Compare March 7, 2023 14:52
@elenz97 elenz97 marked this pull request as ready for review March 7, 2023 14:59
@@ -20,7 +20,7 @@ func BuildClient(ctx context.Context, cl client.Client,
sec := &corev1.Secret{}

err := cl.Get(ctx, client.ObjectKey{
Name: harbor.Name + "-harbor-core",
Name: harbor.Name + "-core",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this breaking AF? With an existing registry, how is ensured that harbor.Name + "-harbor-core" is moved to harbor.Name + "-core"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the chart change in goharbor/harbor-helm@db7b7c1#diff-87d68c754766af8e2e930e653be7e4b75fa0c8bdb187cb1bec293f265d9159ff, the -harbor suffix is appended if the chart release name does not contain harbor as a substring. In the latest diff, i've changed the above to now respect that behaviour

@@ -19,7 +19,7 @@ func CreateInstance(name, namespace string) *v1alpha2.Instance {
Type: "manual",
InstanceURL: "https://core.harbor.domain",
GarbageCollection: &v1alpha2.GarbageCollection{
Cron: "0 * * * *",
Cron: "0 * * * * *",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's up with the new cronjob pattern? Is the sixth segment required, now? How do we handle compatibility in this case?

Copy link
Collaborator Author

@elenz97 elenz97 Mar 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With https://github.com/goharbor/harbor/blob/320c64e4335685952a76c22bcd76e88c611918d8/src/common/utils/utils.go#L299 a custom cron parser was introduced that now requires us to also use the Second parameter (Note that the parser is using Second and not SecondOptional, as suggested in the guide on how to retain the old behaviour). In the latest diff, the cron schedule used to configure Harbor garbage collection will contain a prepended * if left unspecified in helm values.

@elenz97
Copy link
Collaborator Author

elenz97 commented Apr 26, 2024

superseded by: #115

/close

@elenz97 elenz97 closed this Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants