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

Add mop lifecycle hooks #38

Open
jackfrancis opened this issue Sep 23, 2022 · 1 comment
Open

Add mop lifecycle hooks #38

jackfrancis opened this issue Sep 23, 2022 · 1 comment

Comments

@jackfrancis
Copy link
Owner

No description provided.

@jackfrancis
Copy link
Owner Author

So far I've confirmed that using container lifecycle hooks doesn't do what we want:

      containers:
        - name: {{ .Values.mop.name }}
          lifecycle:
            preStop:
              exec:
                command:
                  - sh
                  - -c
                  - >-
                    if ! test -f /var/maintenance-in-progress; then
                      rm -f /var/maintenance-required;
                      rm -f /var/{{.Values.mop.priority}}.validation-required
                    fi;

For reference see:

I also experimented a bit with Helm Chart Hooks (post-delete) and couldn't get that to work either, but that may be the path forward. See:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

No branches or pull requests

1 participant