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

Allow per cluster init #1845

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

anders-elastisys
Copy link
Contributor

Warning

This is public repository, ensure not to disclose:

  • personal data beyond what is necessary for interacting with this pull request
  • business confidential information, such as customer names

What kind of PR is this?

Required: Mark one of the following that is applicable:

  • kind/feature
  • kind/improvement
  • kind/deprecation
  • kind/documentation
  • kind/clean-up
  • kind/bug
  • kind/other

Optional: Mark one or more of the following that are applicable:

Important

Breaking changes should be marked kind/admin-change or kind/dev-change depending on type
Critical security fixes should be marked with kind/security

  • kind/admin-change
  • kind/dev-change
  • kind/security
  • kind/adr

Platform Administrator notice

The ck8s init command now requires a cluster argument which can be either of <wc|sc|both>.

What does this PR do / why do we need this PR?

Allow for running the init command per cluster. This also fixes issue with running the fix-psp-violations command which got introduced with this PR.

Additional information to reviewers

Screenshots

Checklist

  • Proper commit message prefix on all commits
  • Change checks:
    • The change is transparent
    • The change is disruptive
    • The change requires no migration steps
    • The change requires migration steps
  • Metrics checks:
    • The metrics are still exposed and present in Grafana after the change
    • The metrics names didn't change (Grafana dashboards and Prometheus alerts are not affected)
    • The metrics names did change (Grafana dashboards and Prometheus alerts were fixed)
  • Logs checks:
    • The logs do not show any errors after the change
  • Network Policy checks:
    • Any changed pod is covered by Network Policies
    • The change does not cause any dropped packages in the NetworkPolicy Dashboard
  • Pod Security Policy checks:
    • Any changed pod is covered by Pod Security Admission
    • Any changed pod is covered by Gatekeeper Pod Security Policies
    • The change does not cause any pods to be blocked by Pod Security Admission or Policies
  • Falco checks:
    • The change does not cause any alerts to be generated by Falco
  • Audit checks:
    • The change does not cause any unnecessary Kubernetes audit events
    • The change requires changes to Kubernetes audit policy
  • Bug checks:
    • The bug fix is covered by regression tests

@anders-elastisys anders-elastisys changed the title Anders elastisys/allow per cluster init Allow per cluster init Oct 27, 2023
bin/fix-psp-violations.bash Outdated Show resolved Hide resolved
bin/init.bash Outdated Show resolved Hide resolved
migration/template/prepare/50-init.sh Outdated Show resolved Hide resolved
migration/v0.34/prepare/50-init.sh Outdated Show resolved Hide resolved
pipeline/README.md Show resolved Hide resolved
scripts/migration/lib.sh Show resolved Hide resolved
bin/ck8s Outdated Show resolved Hide resolved
bin/init.bash Show resolved Hide resolved
bin/fix-psp-violations.bash Show resolved Hide resolved
bin/upgrade.bash Show resolved Hide resolved
Copy link
Contributor

@simonklb simonklb left a comment

Choose a reason for hiding this comment

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

Nice work!

Copy link
Contributor

@aarnq aarnq left a comment

Choose a reason for hiding this comment

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

LGTM.

bin/init.bash Outdated Show resolved Hide resolved
@anders-elastisys anders-elastisys force-pushed the anders-elastisys/allow-per-cluster-init branch from 5e5bc96 to 0653370 Compare November 7, 2023 14:36
@anders-elastisys anders-elastisys merged commit 0d7e99e into main Nov 7, 2023
15 checks passed
@anders-elastisys anders-elastisys deleted the anders-elastisys/allow-per-cluster-init branch November 7, 2023 14:51
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.

Allow init command to run per cluster
4 participants