Skip to content

Commit

Permalink
fix(k8s): add missing handler for Secret resource
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed Aug 14, 2023
1 parent 5ebc25e commit d370df6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/plugins/kubernetes/status/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
V1Pod,
V1ReplicaSet,
V1ReplicationController,
V1Secret,
V1Service,
} from "@kubernetes/client-node"
import { getPods, getResourceKey, hashManifest } from "../util"
Expand Down Expand Up @@ -101,6 +102,12 @@ const objHandlers: { [kind: string]: StatusHandler } = {
return checkWorkloadPodStatus(resource, await getPods(api, namespace, resource.spec!.selector!))
},

Secret: async (params: StatusHandlerParams<V1Secret>) => {
const { api, namespace, resource } = params
// TODO: compare the `resource` against the manifest generated from the action?
return { state: "ready", resource }
},

Service: async ({ resource }: StatusHandlerParams<V1Service>) => {
if (resource.spec.type === "ExternalName") {
return { state: "ready", resource }
Expand Down

0 comments on commit d370df6

Please sign in to comment.