diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 89fff3d..67dedc5 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -42,7 +42,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -53,7 +53,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -67,4 +67,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml index a7bdb29..59c8c1a 100644 --- a/.github/workflows/maven.yaml +++ b/.github/workflows/maven.yaml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v1 - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'zulu' java-version: 17 @@ -51,7 +51,7 @@ jobs: needs: test steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 diff --git a/src/main/java/de/koudingspawn/vault/kubernetes/event/EventNotification.java b/src/main/java/de/koudingspawn/vault/kubernetes/event/EventNotification.java index 725d270..9ff4169 100644 --- a/src/main/java/de/koudingspawn/vault/kubernetes/event/EventNotification.java +++ b/src/main/java/de/koudingspawn/vault/kubernetes/event/EventNotification.java @@ -59,7 +59,7 @@ public void storeNewEvent(EventType type, String message, Vault resource) { .build(); try { - client.v1().events().resource(evt).create(); + client.v1().events().inNamespace(resource.getMetadata().getNamespace()).resource(evt).create(); } catch (Exception ex) { log.error("Failed to store event for {} in namespace {} next to resource with error", resource.getMetadata().getName(), resource.getMetadata().getNamespace(), ex);