fix(): explicit object identifier
This commit is contained in:
@@ -40,7 +40,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: false
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
lerentis/canada-kaktus:${{ github.sha }}
|
lerentis/canada-kaktus:${{ github.sha }}
|
||||||
# - name: Sign the published Docker image
|
# - name: Sign the published Docker image
|
||||||
|
@@ -61,7 +61,13 @@ func RecreateIPPoolCrd(cfg *Config, name string, ips []string) error {
|
|||||||
|
|
||||||
decode := scheme.Codecs.UniversalDeserializer().Decode
|
decode := scheme.Codecs.UniversalDeserializer().Decode
|
||||||
|
|
||||||
obj, _, err := decode([]byte(body), nil, nil)
|
versionKind := schema.GroupVersionKind{
|
||||||
|
Group: "cilium.io",
|
||||||
|
Version: "v2alpha1",
|
||||||
|
Kind: "CiliumLoadBalancerIPPool",
|
||||||
|
}
|
||||||
|
|
||||||
|
obj, _, err := decode([]byte(body), &versionKind, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("could not deserialize CRD: %v", err.Error())
|
return fmt.Errorf("could not deserialize CRD: %v", err.Error())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user