- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for HashNameKind (0.1 sec)
-
operator/pkg/object/objects.go
} // Hash returns a unique hash for the K8sObject func (o *K8sObject) Hash() string { return Hash(o.Kind, o.Namespace, o.Name) } // HashNameKind returns a hash for the K8sObject based on the name and kind only. func (o *K8sObject) HashNameKind() string { return HashNameKind(o.Kind, o.Name) } // JSON returns a JSON representation of the K8sObject, using an internal cache. func (o *K8sObject) JSON() ([]byte, error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Sep 21 07:16:46 UTC 2023 - 15.5K bytes - Viewed (0) -
operator/pkg/object/objects_test.go
{"CalculateHashNameKindForObjectWithDot", "ConfigMap", "my.config", "ConfigMap:my.config"}, } for _, tt := range hashNameKindTests { t.Run(tt.desc, func(t *testing.T) { got := HashNameKind(tt.kind, tt.name) if got != tt.want { t.Errorf("HashNameKind(%s): got %s for kind %s, name %s, want %s", tt.desc, got, tt.kind, tt.name, tt.want) } }) } } func TestParseJSONToK8sObject(t *testing.T) { testDeploymentJSON := `{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Sep 21 07:16:46 UTC 2023 - 18.4K bytes - Viewed (0) -
operator/pkg/translate/translate.go
if err != nil { return "", err } if scope.DebugEnabled() { scope.Debugf("Manifest contains the following objects:") for _, o := range objects { scope.Debugf("%s", o.HashNameKind()) } } om = objects.ToNameKindMap() } // After brackets are removed, the remaining "kind:name" is the same format as the keys in om. pe, _ = util.RemoveBrackets(pe) oo, ok := om[pe]
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 19:43:09 UTC 2024 - 36.3K bytes - Viewed (0)