Parse the kubernetes manifest in yaml or json, don't care a manifest type.
Examples:
package main
import (
"bytes"
"context"Parse the kubernetes manifest in yaml or json, don't care a manifest type.
Examples:
package main
import (
"bytes"
"context"| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: resilio | |
| --- | |
| apiVersion: v1 | |
| kind: PersistentVolume | |
| metadata: | |
| name: resilio-pv-volume | |
| namespace: resilio |
| import SwiftUI | |
| import PlaygroundSupport | |
| extension Double { | |
| func toRadians() -> Double { | |
| return self * Double.pi / 180 | |
| } | |
| func toCGFloat() -> CGFloat { | |
| return CGFloat(self) |
| package ciphers | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/sha512" | |
| "crypto/x509" | |
| "encoding/pem" | |
| "log" | |
| ) |