-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add changelog for release v0.41.0 #2271
Conversation
It would be nice to include this fix in the |
159930c
to
23cad65
Compare
@OlleLarsson @Xartos @viktor-f Edit: Should be fixed now with help from @viktor-f |
b0b16ff
to
fc6b6ab
Compare
Could you as part of this release also fix this typo https://github.com/elastisys/compliantkubernetes-apps/blame/e5d2b971b21ff2b340911637ca76f6d366370b2e/helmfile.d/values/grafana/grafana-dashboards.yaml.gotmpl#L42 ? |
eff2b81
to
e55291a
Compare
config/schemas/config.yaml
Outdated
buckets: | ||
items: | ||
properties: | ||
destinationType: | ||
const: "swift" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will not capture the case fully, since if we have thanos with swift enabled, and we haven't set destinationType
then it should default to swift.
We could potentially rework so the condition only looks for destinationType: swift
for it to be simpler, but that is a different thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we should check, if any bucket has destinationType: swift
, or if swift for thanos is enabled and we haven't specified destinationType
for the bucket (and the same thing for harbor) - and if any of these are true, we should perform the check for networkPolicies.rclone.sync.objectStorageSwift
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And if that is the default behavior we want, then we would need to incorporate a lot into the conditional set-me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is true. Though the new schema addition is 👌 I didn't know it was possible to express it that succinct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be to expand to something like this .harbor.persistence.type == "swift" and (.objectStorage.sync.buckets[] | select(.source == "*harbor*") | .destinationType != {})
but I'm not sure we want to expand the set-mes, we should probably work towards them being expressed in the schema only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ajarmar Do you have any thoughts on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a monstrosity of a conditional set-me that seems to be working. However in making it I have found some issues with the schema changes I made that I'll have to try and sort out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ajarmar Do you have any thoughts on this?
It would be nice to only have to specify the condition in one place rather than two as we do now (config and schema), but this seems like a bigger initiative than what should be done in this PR. For instance, a schema validation failure does not halt an automatic apps upgrade, but an unset set-me does, so this is something that would be missed if we were to only express the condition in the schema right now.
56ced51
to
16e20f7
Compare
16e20f7
to
8b6eafc
Compare
8b6eafc
to
5c8eae1
Compare
Any final reviews before this is merged? |
Warning
This is a public repository, ensure not to disclose:
What kind of PR is this?
Required: Mark one of the following that is applicable:
Optional: Mark one or more of the following that are applicable:
Important
Breaking changes should be marked
kind/admin-change
orkind/dev-change
depending on typeCritical security fixes should be marked with
kind/security
What does this PR do / why do we need this PR?
...
Information to reviewers
Checklist
NetworkPolicy Dashboard