This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: config2 | |
data: | |
FOO_ENV: bar | |
HELLO_ENV: world | |
--- | |
apiVersion: v1 | |
kind: Pod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: simpleconfig | |
data: | |
foo: bar | |
hello: world | |
--- | |
apiVersion: v1 | |
kind: Pod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: pod2 | |
spec: | |
containers: | |
- name: nginx | |
image: nginx | |
env: | |
- name: FOO_ENV_VAR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: pod1 | |
spec: | |
containers: | |
- name: nginx | |
image: nginx | |
env: | |
- name: ENVVAR1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: azure-disk-pv | |
spec: | |
capacity: | |
storage: 2Gi | |
storageClassName: manual | |
volumeMode: Filesystem | |
accessModes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: myapp | |
labels: | |
app: myapp | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private ObjectStorage objStoreClient = null; | |
final ResourcePrincipalAuthenticationDetailsProvider provider | |
= ResourcePrincipalAuthenticationDetailsProvider.builder().build(); | |
public ObjectStoreListFunction() { | |
try { | |
objStoreClient = new ObjectStorageClient(provider); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tunnels": [ | |
{ | |
"name": "command_line", | |
"uri": "/api/tunnels/command_line", | |
"public_url": "https://b42658ec.ngrok.io", | |
"proto": "https", | |
"config": { | |
"addr": "http://nginx-service:80", | |
"inspect": true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM fnproject/go:dev as build-stage | |
WORKDIR /function | |
RUN go get -u github.com/golang/dep/cmd/dep | |
ADD . /go/src/func/ | |
RUN cd /go/src/func/ && dep ensure | |
RUN cd /go/src/func/ && go build -o func | |
FROM fnproject/go | |
WORKDIR /function | |
COPY --from=build-stage /go/src/func/func /function/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.... | |
var updateInfo UpdateInfo | |
json.NewDecoder(in).Decode(&updateInfo) | |
_, err := cc.UpdateInstance(context.Background(), core.UpdateInstanceRequest{InstanceId: common.String(updateInfo.OCID), UpdateInstanceDetails: core.UpdateInstanceDetails{DisplayName: common.String(updateInfo.NewDisplayName)}}) | |
.... |